:root {
    --bg-dark: #0a0b10;
    --bg-card: rgba(20, 22, 30, 0.4);
    --border-card: rgba(255, 255, 255, 0.08);
    --text-main: #f0f2f5;
    --text-muted: #9ba1a6;
    --accent: #5e6ad2;
    --gradient-1: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
    --gradient-2: linear-gradient(135deg, #ff00cc 0%, #333399 100%);
    --gradient-hero: linear-gradient(135deg, #FF3366 0%, #FF9933 100%);
    --glass-blur: blur(16px);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Noto Sans KR', 'Inter', -apple-system, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Effects */
.glow-bg {
    position: fixed;
    top: -20vh;
    left: -10vw;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(94, 106, 210, 0.15) 0%, rgba(10, 11, 16, 0) 70%);
    z-index: -1;
    pointer-events: none;
}
.glow-bg-2 {
    top: 40vh;
    left: 50vw;
    background: radial-gradient(circle, rgba(255, 51, 102, 0.08) 0%, rgba(10, 11, 16, 0) 70%);
}

/* Typography Utilities */
.text-gradient {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    backdrop-filter: var(--glass-blur);
    background: rgba(10, 11, 16, 0.6);
    border-bottom: 1px solid var(--border-card);
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.logo-aiba {
    color: var(--text-main);
}

.logo-digest {
    color: transparent;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

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

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

.btn-primary {
    background: var(--text-main);
    color: var(--bg-dark);
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 8rem auto 4rem auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin-bottom: 6rem;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-card);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
}

/* Featured Card */
.featured-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 24px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    transition: transform 0.3s ease, border-color 0.3s ease;
    backdrop-filter: var(--glass-blur);
}

.featured-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.placeholder-img-1 {
    background: url('ai_hero.png') center/cover no-repeat;
    min-height: 400px;
}

.card-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #3a7bd5;
    margin-bottom: 1rem;
}

.featured-card h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.featured-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.author-text {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.post-date {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Grid Section */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-card);
    padding-bottom: 1rem;
}

.section-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
}

.view-all {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.view-all:hover {
    color: var(--text-main);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
    backdrop-filter: var(--glass-blur);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.news-card .card-content {
    padding: 1.5rem;
}

.news-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.news-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.placeholder-img-2 {
    height: 200px;
    background: linear-gradient(135deg, rgba(88,86,214,0.3) 0%, rgba(20,22,30,1) 100%);
}
.placeholder-img-3 {
    height: 200px;
    background: linear-gradient(135deg, rgba(255,45,85,0.3) 0%, rgba(20,22,30,1) 100%);
}
.placeholder-img-4 {
    height: 200px;
    background: linear-gradient(135deg, rgba(52,199,89,0.3) 0%, rgba(20,22,30,1) 100%);
}

.tag-blue { color: #5ac8fa; }
.tag-purple { color: #af52de; }
.tag-green { color: #34c759; }

/* News List */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.list-item {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    backdrop-filter: var(--glass-blur);
}

.list-item:hover {
    transform: translateX(5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.list-item-image {
    width: 100%;
    height: 160px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
}

.placeholder-img-5 { background: linear-gradient(135deg, rgba(88,86,214,0.4) 0%, rgba(10,11,16,1) 100%); }
.placeholder-img-6 { background: linear-gradient(135deg, rgba(175,82,222,0.4) 0%, rgba(10,11,16,1) 100%); }
.placeholder-img-7 { background: linear-gradient(135deg, rgba(52,199,89,0.4) 0%, rgba(10,11,16,1) 100%); }
.placeholder-img-8 { background: linear-gradient(135deg, rgba(90,200,250,0.4) 0%, rgba(10,11,16,1) 100%); }

.list-item-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.item-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.list-item h3 {
    font-size: 1.35rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.list-item h3 a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s ease;
}

.list-item h3 a:hover {
    color: #5ac8fa;
}

.list-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-card);
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Footer */
footer {
    border-top: 1px solid var(--border-card);
    padding: 4rem 2rem 2rem 2rem;
    margin-top: 6rem;
    background: rgba(10, 11, 16, 0.8);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 1rem;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--text-main);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-card);
}

/* Responsive */
@media (max-width: 900px) {
    .featured-card {
        grid-template-columns: 1fr;
    }
    .placeholder-img-1 {
        min-height: 250px;
    }
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    .nav-links {
        display: flex;
        overflow-x: auto;
        width: 100%;
        gap: 1.5rem;
        padding-bottom: 0.5rem;
        justify-content: flex-start;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .nav-links::-webkit-scrollbar {
        display: none;
    }
    .nav-actions {
        display: none;
    }
    .container {
        margin-top: 10rem;
        padding: 0 1rem;
    }
    .hero {
        gap: 2rem;
        margin-bottom: 3rem;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .featured-card .card-content {
        padding: 1.5rem;
    }
    .featured-card h2 {
        font-size: 1.5rem;
    }
    .news-grid {
        grid-template-columns: 1fr;
    }
    .list-item {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }
    .list-item-image {
        height: 200px;
    }
    .footer-container {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
        text-align: center;
    }
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}
