/* Design System: Linear / Modern */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Strategy: Deep Space with Ambient Light */
    --background-deep: #020203;
    --background-base: #050506;
    --background-elevated: #0a0a0c;
    
    --surface: rgba(255, 255, 255, 0.05);
    --surface-hover: rgba(255, 255, 255, 0.08);
    --surface-active: rgba(255, 255, 255, 0.12);
    
    --foreground: #EDEDEF;
    --foreground-muted: #8A8F98;
    --foreground-subtle: rgba(255, 255, 255, 0.60);
    
    --accent: #5E6AD2;
    --accent-bright: #6872D9;
    --accent-glow: rgba(94, 106, 210, 0.3);
    
    --border-default: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    
    /* Spacing & Layout */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 24px;
    
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-xxl: 64px;
    
    /* Animation */
    --transition-fast: 150ms cubic-bezier(0.25, 0.1, 0.25, 1);
    --transition-normal: 250ms cubic-bezier(0.25, 0.1, 0.25, 1);
    --transition-bounce: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--background-deep);
    color: var(--foreground);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Ambient Background System */
.ambient-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: radial-gradient(circle at 50% 0%, #1a1b26 0%, var(--background-deep) 70%);
}

.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out alternate;
}

.orb-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    animation-delay: 0s;
}

.orb-2 {
    bottom: -10%;
    right: -10%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, #4338ca 0%, transparent 70%);
    animation-delay: -5s;
}

.orb-3 {
    top: 40%;
    left: 30%;
    width: 30vw;
    height: 30vw;
    background: radial-gradient(circle, #312e81 0%, transparent 70%);
    opacity: 0.2;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(20px, 40px) scale(1.1); }
}

/* Navbar */
.main-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(2, 2, 3, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-default);
    padding: var(--space-md) 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--foreground);
    text-decoration: none;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, #fff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: var(--space-lg);
}

.nav-links a {
    color: var(--foreground-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--foreground);
}

/* Layout */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-md);
    position: relative;
    z-index: 1;
    flex: 1;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: var(--space-xxl) 0;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin: 0 0 var(--space-lg);
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--foreground-muted);
    max-width: 600px;
    margin: 0 auto var(--space-xl);
    font-weight: 400;
}

/* Navigation Cards (Glassmorphism) */
.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    padding: var(--space-md) 0;
}

.nav-card {
    background: var(--surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    text-align: left;
    transition: all var(--transition-normal);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.nav-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: 1;
}

.nav-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    background: var(--surface-hover);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.nav-card:hover::before {
    opacity: 1;
}

.nav-card h2 {
    margin-top: 0;
    color: var(--foreground);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.nav-card p {
    color: var(--foreground-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* Coming Soon Page */
.coming-soon-container {
    text-align: center;
    padding: var(--space-xxl) var(--space-xl);
    max-width: 600px;
    margin: 0 auto;
}

.icon-pulse {
    font-size: 4rem;
    margin-bottom: var(--space-lg);
    display: inline-block;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.progress-bar {
    height: 6px;
    background: var(--surface-active);
    border-radius: 3px;
    margin: var(--space-xl) auto;
    width: 200px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 30%;
    background: var(--accent);
    border-radius: 3px;
    animation: loading 2s infinite ease-in-out;
}

@keyframes loading {
    0% { left: -30%; width: 30%; }
    50% { width: 60%; }
    100% { left: 100%; width: 30%; }
}

/* Footer */
footer {
    border-top: 1px solid var(--border-default);
    padding: var(--space-xl) 0;
    text-align: center;
    color: var(--foreground-subtle);
    font-size: 0.9rem;
    background: rgba(2, 2, 3, 0.5);
    margin-top: auto;
}

footer p {
    margin: 0;
}

/* Forms */
.form-group {
    margin-bottom: var(--space-lg);
}

label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 500;
    color: var(--foreground-muted);
    font-size: 0.9rem;
    letter-spacing: 0.01em;
}

input[type="text"],
textarea {
    width: 100%;
    padding: var(--space-md);
    background: var(--background-elevated);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    color: var(--foreground);
    box-sizing: border-box;
    transition: all var(--transition-fast);
    font-family: inherit;
}

input[type="text"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
    background: var(--background-base);
}

textarea {
    min-height: 150px;
    resize: vertical;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: white;
    border: 1px solid rgba(255,255,255,0.1);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    text-decoration: none;
    box-shadow: 0 4px 12px var(--accent-glow);
}

.btn:hover {
    background: var(--accent-bright);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px var(--accent-glow);
}

.btn:active {
    transform: translateY(0);
}

a.back-link {
    display: inline-flex;
    align-items: center;
    margin-bottom: var(--space-lg);
    color: var(--foreground-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

a.back-link:hover {
    color: var(--foreground);
}

/* Post List */
.post-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.post-item {
    background: var(--surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    transition: all var(--transition-fast);
}

.post-item:hover {
    background: var(--surface-hover);
    border-color: var(--border-hover);
}

.post-title {
    font-size: 1.25rem;
    margin: 0 0 var(--space-xs) 0;
    font-weight: 600;
}

.post-title a {
    text-decoration: none;
    color: var(--foreground);
    transition: color var(--transition-fast);
}

.post-title a:hover {
    color: var(--accent-bright);
}

.post-meta {
    font-size: 0.85rem;
    color: var(--foreground-subtle);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.post-excerpt {
    margin-top: var(--space-md);
    color: var(--foreground-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Comments */
.comments-section {
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-default);
}

.comment {
    background: var(--background-elevated);
    padding: var(--space-md);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-md);
    border: 1px solid var(--border-default);
}

.comment-meta {
    font-size: 0.85rem;
    color: var(--foreground-subtle);
    margin-bottom: var(--space-xs);
    display: flex;
    justify-content: space-between;
}

.comment-meta strong {
    color: var(--accent-bright);
}

.comment-body {
    color: var(--foreground-muted);
    font-size: 0.95rem;
}

.post-content {
    background: var(--surface);
    padding: var(--space-xl);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-default);
    margin-bottom: var(--space-xl);
    color: var(--foreground);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Utility */
.glass-panel {
    background: var(--surface);
    border: 1px solid var(--border-default);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
}

.empty-state {
    text-align: center;
    padding: var(--space-xxl);
    color: var(--foreground-subtle);
    background: var(--surface);
    border-radius: var(--radius-md);
    border: 1px dashed var(--border-default);
}

/* Override header style for non-home pages to be smaller */
.page-header {
    text-align: center;
    padding: var(--space-xl) 0;
    margin-bottom: var(--space-lg);
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: var(--space-xs);
}
