/* ============================================
   NYC Culture - Modern & Elegant Redesign
   Beautiful Custom & Culture Website
   ============================================ */

/* CSS Variables - Modern Color Palette */
:root {
    /* Primary Colors */
    --color-primary: #2d3748;
    --color-primary-light: #4a5568;
    --color-secondary: #3182ce;
    --color-accent: #ed8936;
    --color-accent-warm: #dd6b20;
    
    /* Background Colors */
    --color-background: #f7fafc;
    --color-surface: #ffffff;
    --color-surface-elevated: #ffffff;
    
    /* Text Colors */
    --color-text: #1a202c;
    --color-text-secondary: #4a5568;
    --color-text-muted: #a0aec0;
    
    /* Accent Colors */
    --color-success: #38a169;
    --color-info: #3182ce;
    --color-warning: #d69e2e;
    
    /* Borders & Shadows */
    --color-border: #e2e8f0;
    --color-border-light: #edf2f7;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Lato', 'Segoe UI', Tahoma, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms all;
    --transition-base: 300ms all;
    --transition-slow: 500ms all;
    --transition-bounce: 300ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: linear-gradient(135deg, var(--color-background) 0%, #edf2f7 100%);
    color: var(--color-text);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

main {
    flex: 1;
    padding-top: var(--space-4);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-primary);
    margin-bottom: var(--space-4);
    letter-spacing: -0.025em;
}

h1 { font-size: var(--font-size-5xl); }
h2 { font-size: var(--font-size-4xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }

p {
    margin-bottom: var(--space-4);
    line-height: 1.8;
    color: var(--color-text-secondary);
}

a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
    position: relative;
}

a:hover {
    color: var(--color-accent);
}

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* ============================================
   Header & Navigation - Modern Glass Effect
   ============================================ */

.site-header {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--color-border-light);
    transition: var(--transition-base);
}

.main-nav {
    padding: var(--space-4) 0;
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: var(--font-size-2xl);
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    transition: var(--transition-fast);
}

.logo:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-3);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.menu-toggle:hover {
    background: var(--color-background);
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-accent));
    border-radius: var(--radius-full);
    transition: var(--transition-base);
}

.nav-links {
    display: flex;
    gap: var(--space-8);
    list-style: none;
    align-items: center;
}

/* 移动端菜单遮罩层 */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    backdrop-filter: blur(2px);
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    display: block;
}

.nav-links li a {
    font-weight: 600;
    color: var(--color-text);
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-xl);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.nav-links li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-accent));
    transition: var(--transition-base);
    transform: translateX(-50%);
    border-radius: var(--radius-full);
}

.nav-links li a:hover::before,
.nav-links li a.active::before {
    width: 70%;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--color-secondary);
    background: rgba(49, 130, 206, 0.08);
}

/* ============================================
   Hero Section - Stunning Gradient & Shapes
   ============================================ */

.hero {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 50%, #3182ce 100%);
    color: var(--color-surface);
    padding: var(--space-20) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
    animation: float 15s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, var(--color-background), transparent);
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    color: var(--color-surface);
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: var(--space-6);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    animation: fadeInUp 0.8s ease-out;
}

.hero p {
    color: rgba(255, 255, 255, 0.95);
    font-size: var(--font-size-xl);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

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

/* ============================================
   Category Section - Modern Card Design
   ============================================ */

.category-section {
    padding: var(--space-16) 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-12);
}

.section-title h2 {
    font-size: var(--font-size-4xl);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-4);
}

.section-title p {
    color: var(--color-text-muted);
    font-size: var(--font-size-lg);
    max-width: 600px;
    margin: 0 auto;
}

.articles-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-8);
    margin-bottom: var(--space-8);
}

.article-card {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-base);
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-border-light);
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-base);
}

.article-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-2xl);
}

.article-card:hover::before {
    transform: scaleX(1);
}

.article-card a {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.article-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
}

.article-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
    opacity: 0;
    transition: var(--transition-base);
}

.article-card:hover .article-image::after {
    opacity: 1;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.article-card:hover .article-image img {
    transform: scale(1.08);
}

.article-info {
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.article-info h3 {
    font-size: var(--font-size-xl);
    color: var(--color-primary);
    margin-bottom: var(--space-3);
    line-height: 1.3;
    transition: var(--transition-fast);
}

.article-card:hover .article-info h3 {
    color: var(--color-secondary);
}

.article-info p {
    color: var(--color-text-muted);
    font-size: var(--font-size-base);
    line-height: 1.7;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* View More Button */
.view-more {
    text-align: center;
    margin-top: var(--space-10);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-8);
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-accent) 100%);
    color: var(--color-surface);
    font-weight: 600;
    font-size: var(--font-size-base);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: var(--transition-slow);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    color: var(--color-surface);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(-2px);
}

/* ============================================
   Footer - Modern & Clean
   ============================================ */

.site-footer {
    background: linear-gradient(135deg, var(--color-primary) 0%, #1a365d 100%);
    color: var(--color-surface);
    padding: var(--space-16) 0 var(--space-8);
    margin-top: auto;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-accent), var(--color-secondary));
}

.site-footer .container {
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-10);
    margin-bottom: var(--space-10);
}

.footer-section h3 {
    color: var(--color-surface);
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-4);
    position: relative;
    padding-bottom: var(--space-3);
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-accent));
    border-radius: var(--radius-full);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.8;
    margin-bottom: var(--space-3);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--space-3);
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.82);
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.footer-section ul li a::before {
    content: '→';
    color: var(--color-accent);
    transition: var(--transition-fast);
}

.footer-section ul li a:hover {
    color: var(--color-surface);
    padding-left: var(--space-2);
}

.footer-section ul li a:hover::before {
    transform: translateX(3px);
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-accent);
    font-weight: 600;
    margin-top: var(--space-2);
    transition: var(--transition-fast);
}

.footer-link:hover {
    color: var(--color-surface);
    gap: var(--space-3);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-8);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--font-size-sm);
    margin: 0;
}

/* ============================================
   Responsive Design - Mobile First
   ============================================ */

@media (max-width: 1024px) {
    .articles-preview {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-4);
    }
    
    .menu-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--color-surface);
        flex-direction: column;
        align-items: stretch;
        padding: var(--space-20) var(--space-6) var(--space-6);
        box-shadow: var(--shadow-2xl);
        transition: var(--transition-base);
        z-index: 1000;
        gap: var(--space-2);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        border-bottom: 1px solid var(--color-border-light);
        padding-bottom: var(--space-2);
    }
    
    .nav-links li a {
        display: block;
        padding: var(--space-3) 0;
        font-size: var(--font-size-lg);
    }
    
    .nav-links li a::before {
        display: none;
    }
    
    .hero {
        padding: var(--space-12) 0;
    }
    
    .hero h1 {
        font-size: var(--font-size-3xl);
    }
    
    .hero p {
        font-size: var(--font-size-base);
    }
    
    .category-section {
        padding: var(--space-10) 0;
    }
    
    .section-title h2 {
        font-size: var(--font-size-3xl);
    }
    
    .articles-preview {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .article-image {
        height: 200px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: var(--font-size-xl);
    }
    
    .hero h1 {
        font-size: var(--font-size-2xl);
    }
    
    .section-title h2 {
        font-size: var(--font-size-2xl);
    }
    
    h1 { font-size: var(--font-size-3xl); }
    h2 { font-size: var(--font-size-2xl); }
    h3 { font-size: var(--font-size-xl); }
    
    .article-info {
        padding: var(--space-4);
    }
    
    .btn-primary {
        padding: var(--space-3) var(--space-6);
        font-size: var(--font-size-sm);
    }
}

/* ============================================
   Footer Pages - Modern Card Design
   ============================================ */

.footer-page {
    background: linear-gradient(135deg, var(--color-background) 0%, #edf2f7 100%);
    min-height: 80vh;
    padding: var(--space-16) 0;
}

.footer-page .container {
    max-width: 900px;
}

.footer-page h1 {
    font-size: var(--font-size-4xl);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-10);
    text-align: center;
}

.content-section {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    margin-bottom: var(--space-8);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border-light);
    transition: var(--transition-base);
}

.content-section:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.content-section h2 {
    font-size: var(--font-size-2xl);
    color: var(--color-primary);
    margin-bottom: var(--space-4);
    position: relative;
    padding-bottom: var(--space-3);
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-accent));
    border-radius: var(--radius-full);
}

.content-section p {
    color: var(--color-text-secondary);
    line-height: 1.9;
    margin-bottom: var(--space-4);
    font-size: var(--font-size-base);
}

.content-section ul {
    list-style: none;
    margin: var(--space-4) 0;
}

.content-section ul li {
    padding: var(--space-3) 0;
    padding-left: var(--space-6);
    position: relative;
    color: var(--color-text-secondary);
}

.content-section ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
}

.content-section ul li strong {
    color: var(--color-primary);
}

@media (max-width: 768px) {
    .footer-page {
        padding: var(--space-10) 0;
    }
    
    .footer-page h1 {
        font-size: var(--font-size-3xl);
    }
    
    .content-section {
        padding: var(--space-6);
        margin-bottom: var(--space-6);
    }
    
    .content-section h2 {
        font-size: var(--font-size-xl);
    }
    
    .content-section p {
        font-size: var(--font-size-sm);
    }
}

/* ============================================
   Utility Classes
   ============================================ */

.text-center { text-align: center; }
.text-gradient {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animation Classes */
.animate-fade-in {
    animation: fadeInUp 0.6s ease-out;
}

.animate-delay-100 { animation-delay: 0.1s; }
.animate-delay-200 { animation-delay: 0.2s; }
.animate-delay-300 { animation-delay: 0.3s; }

/* Smooth Scroll Offset for Fixed Header */
html {
    scroll-padding-top: 80px;
}
