/* ========================================
   CSS Variables & Design Tokens
   ======================================== */
:root {
    /* Colors */
    --bg-primary: #0a0a1a;
    --bg-secondary: #111128;
    --bg-card: rgba(20, 20, 50, 0.6);
    --bg-card-hover: rgba(30, 30, 70, 0.8);
    --bg-glass: rgba(255, 255, 255, 0.03);
    --bg-glass-hover: rgba(255, 255, 255, 0.06);

    --text-primary: #f0f0f8;
    --text-secondary: #9898b8;
    --text-muted: #6060a0;

    --accent-primary: #7c6ff7;
    --accent-secondary: #5a8dee;
    --accent-gradient: linear-gradient(135deg, #7c6ff7 0%, #5a8dee 50%, #43c6db 100%);
    --accent-glow: rgba(124, 111, 247, 0.3);

    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.1);

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px var(--accent-glow);

    /* Layout */
    --max-width: 1100px;
    --nav-height: 64px;
    --mobile-nav-height: 72px;
}

/* ========================================
   Reset & Base
   ======================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--nav-height) + 20px);
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
}

/* ========================================
   Scrollbar
   ======================================== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

/* ========================================
   Ambient Background
   ======================================== */
.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    animation: float 20s ease-in-out infinite;
}

.ambient-orb-1 {
    width: 600px;
    height: 600px;
    background: var(--accent-primary);
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.ambient-orb-2 {
    width: 500px;
    height: 500px;
    background: var(--accent-secondary);
    bottom: -150px;
    left: -150px;
    animation-delay: -7s;
}

.ambient-orb-3 {
    width: 400px;
    height: 400px;
    background: #43c6db;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -30px) scale(1.05);
    }

    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }

    75% {
        transform: translate(10px, -10px) scale(1.02);
    }
}

/* ========================================
   Navigation - Top
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    transition: var(--transition-smooth);
    backdrop-filter: blur(0px);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    background: rgba(10, 10, 26, 0.85);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    z-index: 10;
}

.nav-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid var(--accent-primary);
    transition: var(--transition-smooth);
}

.nav-logo:hover .nav-avatar {
    border-color: var(--accent-secondary);
    transform: scale(1.05);
}

.nav-brand {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
    border-radius: var(--radius-full);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: var(--bg-glass-hover);
}

.nav-link.active::after {
    width: 60%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-sm);
    z-index: 10;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: var(--radius-full);
    transition: var(--transition-smooth);
}

/* ========================================
   Mobile Bottom Navigation
   ======================================== */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--mobile-nav-height);
    z-index: 1000;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    background: rgba(10, 10, 26, 0.9);
    border-top: 1px solid var(--border-subtle);
    padding: 0 var(--space-md);
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex: 1;
    padding: var(--space-sm) 0;
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
}

.mobile-nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 0 0 var(--radius-full) var(--radius-full);
    transition: var(--transition-spring);
}

.mobile-nav-item.active {
    color: var(--accent-primary);
}

.mobile-nav-item.active::before {
    width: 32px;
}

.mobile-nav-item svg {
    transition: var(--transition-spring);
}

.mobile-nav-item.active svg {
    transform: translateY(-2px);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}

.hero-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-cover-gradient {
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(124, 111, 247, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(90, 141, 238, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(67, 198, 219, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, #060614 0%, #0a0a1a 100%);
}

.hero-cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            transparent 0%,
            rgba(10, 10, 26, 0.4) 70%,
            var(--bg-primary) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: var(--space-3xl) var(--space-lg) var(--space-2xl);
    max-width: 600px;
    animation: fadeUp 1s ease-out;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-avatar-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: var(--space-lg);
}

.hero-avatar {
    width: 110px;
    height: 110px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 4px solid rgba(124, 111, 247, 0.5);
    box-shadow: var(--shadow-glow);
    position: relative;
    z-index: 2;
}

.hero-avatar-ring {
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border-radius: var(--radius-full);
    background: var(--accent-gradient);
    opacity: 0.3;
    animation: pulse-ring 3s ease-in-out infinite;
}

@keyframes pulse-ring {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.08);
        opacity: 0.15;
    }
}

.hero-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--space-sm);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: var(--space-xl);
    font-weight: 400;
}

/* Digital Clock */
.digital-clock {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.clock-time {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-family: var(--font-display);
    margin-bottom: var(--space-md);
}

.clock-digit {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--accent-primary);
    background: rgba(124, 111, 247, 0.08);
    border: 1px solid rgba(124, 111, 247, 0.15);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-md);
    min-width: 72px;
    display: inline-block;
    text-align: center;
    letter-spacing: 0.05em;
    text-shadow: 0 0 20px rgba(124, 111, 247, 0.4);
    transition: color 0.3s ease;
}

.clock-sep {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--accent-primary);
    opacity: 1;
    animation: blink-colon 1s step-end infinite;
}

@keyframes blink-colon {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.clock-date {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.05em;
    background: rgba(124, 111, 247, 0.08);
    padding: var(--space-xs) var(--space-lg);
    border-radius: var(--radius-full);
    display: inline-block;
    border: 1px solid rgba(124, 111, 247, 0.15);
}

@media (max-width: 480px) {
    .clock-digit {
        font-size: 2.2rem;
        min-width: 54px;
        padding: var(--space-xs) var(--space-sm);
    }

    .clock-sep {
        font-size: 2rem;
    }
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    background: var(--accent-gradient);
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-full);
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-glow);
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px var(--accent-glow);
}

.hero-cta svg {
    transition: var(--transition-smooth);
}

.hero-cta:hover svg {
    transform: translateX(4px);
}

/* ========================================
   Filter / Category Chips
   ======================================== */
.filter-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-lg) var(--space-lg);
}

.section-header {
    margin-bottom: var(--space-lg);
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-primary);
}

.section-title svg {
    color: var(--accent-primary);
}

.section-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: var(--space-xs);
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    justify-content: center;
    padding-bottom: var(--space-sm);
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 500;
    white-space: nowrap;
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    background: var(--bg-glass);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.chip:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
    background: var(--bg-glass-hover);
}

.chip.active {
    background: var(--accent-gradient);
    border-color: transparent;
    color: white;
    box-shadow: var(--shadow-glow);
}

.chip svg {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

.chip.active svg {
    opacity: 1;
}

/* ========================================
   Posts List (Minimal)
   ======================================== */
.posts-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg) var(--space-3xl);
}

.posts-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Desktop: grid tiles */
@media (min-width: 769px) {
    .posts-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (min-width: 1100px) {
    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.post-item-row {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.25s ease;
    animation: listFadeIn 0.4s ease-out both;
    position: relative;
    overflow: hidden;
}

/* Desktop: taller tiles */
@media (min-width: 769px) {
    .post-item-row {
        flex-direction: column;
        align-items: flex-start;
        padding: 22px 20px 18px;
        gap: 10px;
        border-radius: var(--radius-lg);
    }
}

.post-item-row::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    opacity: 0;
    transition: opacity 0.25s;
}

.post-item-row:hover {
    background: var(--bg-card-hover);
    border-color: rgba(124, 111, 247, 0.3);
    box-shadow: 0 4px 20px rgba(124, 111, 247, 0.1);
}

@media (max-width: 768px) {
    .post-item-row:hover {
        transform: translateX(4px);
    }
}

@media (min-width: 769px) {
    .post-item-row:hover {
        transform: translateY(-3px);
    }

    .post-item-row:hover::before {
        opacity: 1;
    }
}

@keyframes listFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-item-icon {
    font-size: 1.2rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 111, 247, 0.08);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

@media (min-width: 769px) {
    .post-item-icon {
        width: 44px;
        height: 44px;
        font-size: 1.4rem;
        border-radius: var(--radius-md);
    }
}

.post-item-info {
    flex: 1;
    min-width: 0;
}

.post-item-name {
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s;
}

@media (min-width: 769px) {
    .post-item-name {
        font-size: 0.95rem;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        line-clamp: 2;
        line-height: 1.4;
    }
}

.post-item-row:hover .post-item-name {
    color: var(--accent-primary);
}

.post-item-tag {
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-top: 2px;
}

@media (min-width: 769px) {
    .post-item-tag {
        font-size: 0.72rem;
        margin-top: 4px;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 2px 8px;
        background: rgba(124, 111, 247, 0.06);
        border-radius: var(--radius-full);
    }
}

.post-item-arrow {
    color: var(--text-muted);
    flex-shrink: 0;
    transition: all 0.25s;
    opacity: 0;
}

.post-item-row:hover .post-item-arrow {
    opacity: 1;
    color: var(--accent-primary);
    transform: translateX(3px);
}

@media (min-width: 769px) {
    .post-item-arrow {
        position: absolute;
        top: 14px;
        right: 14px;
    }

    .post-item-row:hover .post-item-arrow {
        transform: translate(2px, -2px);
    }
}

.empty-state {
    text-align: center;
    padding: var(--space-3xl) var(--space-lg);
    color: var(--text-muted);
    grid-column: 1 / -1;
}

.empty-state svg {
    margin-bottom: var(--space-md);
    opacity: 0.3;
}

/* ========================================
   Modal
   ======================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    padding: var(--space-md);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: #050510;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: var(--transition-spring);
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) transparent;
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: sticky;
    top: var(--space-md);
    float: right;
    margin: var(--space-md);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    transition: var(--transition-smooth);
    z-index: 10;
    backdrop-filter: blur(10px);
}

.modal-close:hover {
    background: rgba(255, 80, 80, 0.2);
    color: #ff5050;
    border-color: rgba(255, 80, 80, 0.3);
}

.modal-content {
    padding: var(--space-2xl);
    padding-top: var(--space-lg);
}

.modal-header-image {
    width: calc(100% + var(--space-2xl) * 2);
    margin-left: calc(var(--space-2xl) * -1);
    margin-top: calc(var(--space-lg) * -1);
    margin-bottom: var(--space-xl);
    height: 220px;
    overflow: hidden;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.modal-header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(124, 111, 247, 0.1);
    border: 1px solid rgba(124, 111, 247, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: var(--space-md);
}

.modal-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    line-height: 1.3;
}

.modal-date {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: var(--space-xl);
    display: flex;
    align-items: center;
    gap: 6px;
}

.modal-body {
    color: #e8e8f0;
    font-size: 0.95rem;
    line-height: 1.8;
}

.modal-body p {
    margin-bottom: var(--space-md);
}

.modal-body a {
    color: #6db3f2;
    text-decoration: underline;
    word-break: break-all;
    transition: color 0.2s;
}

.modal-body a:hover {
    color: #a8d4ff;
}

.modal-body img {
    width: 100%;
    border-radius: var(--radius-md);
    margin: var(--space-md) 0;
}

.modal-links {
    margin-top: var(--space-xl);
}

.modal-links-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.modal-link-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
    transition: var(--transition-smooth);
    text-decoration: none;
}

.modal-link-item:hover {
    background: var(--bg-glass-hover);
    border-color: var(--accent-primary);
    transform: translateX(4px);
}

.modal-link-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.modal-link-icon svg {
    color: white;
}

.modal-link-info {
    flex: 1;
    min-width: 0;
}

.modal-link-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.modal-link-url {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.modal-link-arrow {
    color: var(--text-muted);
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.modal-link-item:hover .modal-link-arrow {
    color: var(--accent-primary);
    transform: translateX(4px);
}

/* ========================================
   About Section
   ======================================== */
.about-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-lg) var(--space-3xl);
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gradient);
}

.about-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.about-avatar {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 3px solid var(--accent-primary);
}

.about-name {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
}

.about-role {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.about-bio {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

.about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.about-tag {
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    color: var(--text-secondary);
}

/* ========================================
   Scroll to Top
   ======================================== */
.scroll-top {
    position: fixed;
    bottom: 90px;
    right: var(--space-md);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: var(--accent-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-smooth);
    z-index: 900;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: translateY(-4px);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    text-align: center;
    padding: var(--space-xl) var(--space-lg);
    padding-bottom: calc(var(--space-xl) + var(--mobile-nav-height) + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* ========================================
   Empty State
   ======================================== */
.empty-state {
    text-align: center;
    padding: var(--space-3xl) var(--space-lg);
    color: var(--text-muted);
    grid-column: 1 / -1;
}

.empty-state svg {
    margin-bottom: var(--space-md);
    opacity: 0.4;
}

.empty-state p {
    font-size: 0.95rem;
}

/* ========================================
   Responsive - Tablet
   ======================================== */
@media (max-width: 768px) {
    :root {
        --nav-height: 56px;
    }

    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: none;
    }

    .mobile-nav {
        display: flex;
    }

    .hero {
        min-height: 420px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.92rem;
    }

    .hero-avatar {
        width: 90px;
        height: 90px;
    }

    .hero-stats {
        gap: var(--space-md);
        padding: var(--space-sm) var(--space-md);
    }

    .stat-number {
        font-size: 1.3rem;
    }

    .posts-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .modal {
        max-height: 92vh;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        align-self: flex-end;
    }

    .modal-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .modal-content {
        padding: var(--space-lg);
        padding-top: var(--space-md);
    }

    .modal-header-image {
        width: calc(100% + var(--space-lg) * 2);
        margin-left: calc(var(--space-lg) * -1);
        margin-top: calc(var(--space-md) * -1);
        height: 180px;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }

    .modal-title {
        font-size: 1.3rem;
    }

    .footer {
        padding-bottom: calc(var(--space-xl) + var(--mobile-nav-height) + 10px);
    }

    .scroll-top {
        bottom: calc(var(--mobile-nav-height) + var(--space-md));
    }

    .section-title {
        font-size: 1.3rem;
    }

    .post-card-thumb {
        height: 160px;
    }
}

/* ========================================
   Responsive - Small Mobile
   ======================================== */
@media (max-width: 400px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-avatar {
        width: 80px;
        height: 80px;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: var(--space-sm);
    }

    .stat-divider {
        display: none;
    }

    .filter-section {
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }

    .posts-section {
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }
}

/* ========================================
   Animations & Utilities
   ======================================== */
.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Touch feedback for mobile */
@media (hover: none) {
    .post-card:active {
        transform: scale(0.98);
    }

    .chip:active {
        transform: scale(0.95);
    }

    .modal-link-item:active {
        background: var(--bg-glass-hover);
        transform: translateX(4px);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Print styles */
@media print {

    .navbar,
    .mobile-nav,
    .scroll-top,
    .ambient-bg,
    .filter-section {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .post-card {
        break-inside: avoid;
    }
}