/* * Kobie.dev Hub Styles (Vanilla CSS - No Tailwind)
 * Theme: Dark Terminal x Glassmorphism
 */

:root {
    --bg-color: #050505;
    --text-main: #e0e0e0;
    --text-muted: #9ca3af;
    
    --terminal-green: #00ff9d;
    --terminal-cyan: #00f3ff;
    
    --glass-bg: rgba(20, 20, 25, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.03);
    
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    --container-width: 1200px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

/* Reset & Base */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-color);
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    font-family: var(--font-sans);
    color: var(--text-main);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { text-decoration: none; color: inherit; }

/* Layout Utilities */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hidden { display: none !important; }

/* Components: Glass Panel */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    border-radius: var(--radius-xl);
}

/* Header */
header { margin-top: 2rem; margin-bottom: 2rem; }

.header-content {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgba(0, 255, 157, 0.2);
}

.brand-block { display: flex; flex-direction: column; }

.prompt-text {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--terminal-green);
    margin-bottom: 0.25rem;
}

.brand-title {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 0 10px rgba(0, 255, 157, 0.4);
    letter-spacing: -0.02em;
}

.system-status { display: none; }
@media(min-width: 768px) { .system-status { display: block; } }

.status-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0,0,0,0.4);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.1);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.status-dot { width: 8px; height: 8px; border-radius: 50%; background-color: #22c55e; }
.status-dot.pulse { animation: pulse 2s infinite; }

/* Main Content */
main { flex-grow: 1; padding-bottom: 5rem; }

section { margin-bottom: 4rem; }

.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 0.5rem;
}

.section-header h2 {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
}

.icon { width: 24px; height: 24px; }
.icon-green { color: var(--terminal-green); }
.icon-cyan { color: var(--terminal-cyan); }
.comment { font-size: 0.875rem; color: #6b7280; font-weight: normal; margin-left: 0.5rem; }

/* Grid Layout */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Service Tile */
.service-tile {
    position: relative;
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.service-tile:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 255, 157, 0.3);
    box-shadow: 0 10px 40px -10px rgba(0, 255, 157, 0.15);
}

.tile-header { display: flex; justify-content: space-between; align-items: start; z-index: 2; }

.tile-icon-box {
    padding: 0.5rem;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
}
.tile-icon-box img { width: 32px; height: 32px; opacity: 0.8; }
.service-tile:hover .tile-icon-box img { opacity: 1; }

.external-link-btn {
    padding: 0.5rem;
    border-radius: 9999px;
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.5);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.external-link-btn:hover {
    background-color: var(--terminal-green);
    color: black;
    transform: scale(1.1);
}

.tile-body { z-index: 2; margin-top: 1rem; }
.tile-title-row { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.tile-title { font-family: var(--font-mono); font-size: 1.125rem; font-weight: 700; color: #f3f4f6; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.service-tile:hover .tile-title { color: #6ee7b7; }
.tile-desc { font-size: 0.875rem; color: #9ca3af; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 300; }

.tile-bg-deco {
    position: absolute;
    bottom: -1rem;
    right: -1rem;
    font-family: var(--font-mono);
    font-size: 5rem;
    font-weight: 700;
    opacity: 0.03;
    pointer-events: none;
    user-select: none;
    transition: opacity 0.3s;
}
.service-tile:hover .tile-bg-deco { opacity: 0.06; }

/* Footer */
.footer { text-align: center; color: #4b5563; font-family: var(--font-mono); font-size: 0.875rem; margin-bottom: 2rem; }

/* Modal */
.modal {
    position: fixed; inset: 0; z-index: 50;
    display: flex; align-items: center; justify-content: center;
    padding: 1rem;
}

.modal-overlay {
    position: absolute; inset: 0;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}

.modal-panel {
    position: relative; z-index: 10;
    width: 100%; max-width: 700px;
    background: #0a0a0a;
    border: 1px solid #333;
    animation: modalSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-header {
    background: rgba(255,255,255,0.03);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex; justify-content: space-between; align-items: center;
    border-top-left-radius: var(--radius-xl);
    border-top-right-radius: var(--radius-xl);
}

.window-controls { display: flex; gap: 0.5rem; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ef4444; }
.dot.yellow { background: #eab308; }
.dot.green { background: #22c55e; }

.close-btn { background: none; border: none; color: #9ca3af; cursor: pointer; transition: color 0.2s; }
.close-btn:hover { color: white; }

.modal-body { padding: 2rem; }

/* Modal Inner Layout */
.modal-layout { display: flex; flex-direction: column; gap: 1.5rem; }
@media(min-width: 768px) {
    .modal-layout { flex-direction: row; }
}

.modal-image-box {
    width: 100px; height: 100px;
    background: rgba(255,255,255,0.05);
    border-radius: 1rem;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.modal-image-box img { width: 60px; height: 60px; }

.modal-content-box { flex: 1; }

.modal-status-row { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.modal-title { font-size: 2rem; font-weight: 700; font-family: var(--font-mono); color: white; margin-bottom: 1rem; }
.modal-desc {
    color: #d1d5db; font-size: 1.125rem; line-height: 1.6;
    padding-left: 1rem; border-left: 2px solid rgba(16, 185, 129, 0.3);
    margin-bottom: 1.5rem;
}

.tags-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.tag { font-family: var(--font-mono); font-size: 0.75rem; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 0.25rem 0.5rem; border-radius: 4px; color: #d1d5db; }

.launch-btn {
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    width: 100%;
    background-color: #10b981;
    color: black;
    font-weight: 700;
    padding: 0.75rem;
    border-radius: 0.5rem;
    transition: transform 0.2s, background-color 0.2s;
}
.launch-btn:hover { background-color: #34d399; transform: scale(1.02); }

/* Keyframes */
@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Colors for dynamic JS injection */
.bg-green { background-color: #22c55e; }
.bg-yellow { background-color: #eab308; }
.bg-red { background-color: #ef4444; }
.text-green { color: #4ade80; }
.text-yellow { color: #facc15; }
.text-red { color: #f87171; }