:root {
    --bg-primary: #fdfcfa;
    --bg-secondary: #f7f5f2;
    --bg-accent: #fff9f0;
    --text-primary: #1a1614;
    --text-secondary: #5a5654;
    --text-muted: #8a8784;
    --accent-primary: #d97706;
    --accent-dark: #b45309;
    --accent-light: #fef3c7;
    --border: #e7e5e0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Header */
header {
    padding: 1.5rem 2rem;
    background: rgba(253, 252, 250, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-dark);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.btn-secondary {
    padding: 0.625rem 1.25rem;
    background: transparent;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    background: var(--accent-light);
}

/* Hero Section */
.hero {
    max-width: 1400px;
    margin: 0 auto;
    padding: 5rem 2rem 3rem;
    text-align: center;
}

.hero h1 {
    font-family: 'Fraunces', serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    animation: fadeInUp 0.6s ease-out;
}

.hero h1 .highlight {
    color: var(--accent-primary);
    font-style: italic;
    display: inline-block;
    animation: fadeInUp 0.6s ease-out 0.1s backwards;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 2.5rem;
    animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

/* Filter Section */
.filter-section {
    max-width: 1400px;
    margin: 0 auto 3rem;
    padding: 0 2rem;
    animation: fadeInUp 0.6s ease-out 0.3s backwards;
}

.filter-tabs {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-tab {
    padding: 0.75rem 1.5rem;
    background: white;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-tab:hover {
    border-color: var(--accent-primary);
    background: var(--accent-light);
}

.filter-tab.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

/* Guides Grid */
.guides-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem 5rem;
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

.guide-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.6s ease-out backwards;
}

.guide-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.guide-image {
    aspect-ratio: 16 / 9;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

.guide-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(0, 0, 0, 0.05) 100%);
}

.guide-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.guide-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--accent-light);
    color: var(--accent-dark);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    width: fit-content;
}

.guide-title {
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.guide-description {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.guide-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

/* Featured Guide */
.featured-guide {
    max-width: 1400px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
}

.featured-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.featured-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.featured-image {
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #fff0f3 0%, #ffe3e7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    position: relative;
}

.featured-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(217, 119, 6, 0.08) 1px, transparent 1px);
    background-size: 30px 30px;
}

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

.featured-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: var(--accent-primary);
    color: white;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    width: fit-content;
}

.featured-title {
    font-family: 'Fraunces', serif;
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.featured-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.featured-meta {
    display: flex;
    gap: 2rem;
    font-size: 0.9375rem;
    color: var(--text-muted);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Footer */
footer {
    background: var(--text-primary);
    color: var(--bg-primary);
    padding: 3rem 2rem 2rem;
    margin-top: 5rem;
}

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

.footer-content p {
    opacity: 0.7;
    font-size: 0.9375rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .featured-card {
        grid-template-columns: 1fr;
    }

    .featured-image {
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 3rem 1.5rem 2rem;
    }

    .guides-grid {
        grid-template-columns: 1fr;
    }

    .featured-content {
        padding: 2rem 1.5rem;
    }

    .featured-title {
        font-size: 1.875rem;
    }

    .filter-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
    }
}
