/* 
Theme Name: FengHuo Light
Description: Modern, airy, and high-performance light theme for Fenghuo.tv
Version: 4.0 (Light Mode)
*/

:root {
    /* --- Airy Tech Color Palette (Light Mode) --- */

    /* Backgrounds */
    --bg-body: #f7f9fc;
    /* Ultra-light cool grey/blue tint */
    --bg-card: #ffffff;
    /* Pure white for content */
    --bg-header: rgba(255, 255, 255, 0.85);
    /* Frosted glass white */
    --bg-input: #f3f4f6;
    /* Light grey for inputs */

    /* Brand Colors (Fenghuo Red/Orange Gradient) */
    --primary: #ff2442;
    /* Vibrant Fenghuo Red */
    --primary-gradient: linear-gradient(135deg, #ff2442 0%, #ff5e3a 100%);
    --primary-glow: rgba(255, 36, 66, 0.2);
    --secondary: #7c3aed;
    /* Deep Purple (Accent) */

    /* Text Colors */
    --text-main: #1f2937;
    /* Soft Black / Dark Charcoal */
    --text-muted: #6b7280;
    /* Medium Grey */
    --text-light: #9ca3af;
    /* Light Grey */

    /* Borders & UI Details */
    --border-light: #e5e7eb;
    /* Very subtle border */
    --border-hover: #ff2442;
    /* Active Red Border */

    /* Shadows (Soft & Diffused) */
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-float: 0 10px 30px rgba(255, 36, 66, 0.15);

    /* Fonts */
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-heading);
    line-height: 1.6;
    overflow-x: hidden;
    /* Clean background, optional subtle pattern */
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* Header (Frosted Light) */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    z-index: 1000;
    background: var(--bg-header);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    transition: 0.3s;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.app-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.logo-icon {
    font-size: 24px;
    filter: drop-shadow(0 2px 4px rgba(255, 36, 66, 0.3));
}

.app-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 32px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-list li a {
    color: var(--text-main);
    font-size: 15px;
    font-weight: 500;
    position: relative;
    padding: 8px 0;
}

.nav-list li a:hover,
.nav-list li.current-menu-item a {
    color: var(--primary);
}

/* Auth Buttons */
.app-auth .btn-text {
    color: var(--text-main);
    font-size: 14px;
    font-weight: 500;
    margin-right: 20px;
}

.app-auth .btn-text:hover {
    color: var(--primary);
}

.app-auth .btn-solid {
    background: var(--primary-gradient);
    color: #fff;
    padding: 10px 24px;
    border-radius: 50px;
    /* Pill shape */
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(255, 36, 66, 0.3);
    border: none;
}

.app-auth .btn-solid:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(255, 36, 66, 0.4);
    color: #fff;
}

/* Hero Section (Clean & Airy) */
.hero-section {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    background: radial-gradient(circle at 50% 30%, rgba(255, 36, 66, 0.05), transparent 60%);
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 24px;
    color: var(--text-main);
    letter-spacing: -2px;
}

.hero-title span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 48px;
    font-weight: 400;
}

/* Search Form (Floating) */
.search-form-hero {
    max-width: 560px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.search-wrapper {
    position: relative;
    display: flex;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 60px;
    padding: 6px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
    /* Soft float shadow */
    transition: 0.3s;
}

.search-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 20px 40px -5px rgba(255, 36, 66, 0.15);
    transform: translateY(-2px);
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-main);
    padding: 14px 24px;
    font-size: 16px;
    outline: none;
}

.search-input::placeholder {
    color: var(--text-light);
}

.search-btn {
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    font-size: 14px;
}

.search-btn:hover {
    transform: scale(1.03);
}

/* Gallery Grid (Clean Slate) */
.gallery-section {
    padding: 60px 0 100px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header-tech {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 0 24px;
    border-bottom: none;
    /* Removed line */
}

.tech-title {
    font-size: 28px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 12px;
}

.tech-title::before {
    content: '';
    width: 6px;
    height: 28px;
    background: var(--primary);
    border-radius: 4px;
}

/* Grid Layout */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 0 24px;
}

/* The Card (White, Shadowed, Rounded) */
.tech-card {
    background: var(--bg-card);
    border-radius: 16px;
    /* Softer rounds */
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    box-shadow: var(--shadow-card);
    border: 1px solid transparent;
    /* Prepare for hover */
}

.tech-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    /* No border color change, keep it clean */
}

.card-thumb {
    position: relative;
    width: 100%;
    padding-bottom: 120%;
    /* Taller vertical aspect */
    overflow: hidden;
    display: block;
    background: var(--bg-input);
    /* Placeholder color */
}

.card-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.tech-card:hover .card-thumb img {
    transform: scale(1.05);
}

/* Overlay Styles - Updated for Light Theme Compatibility */
/* We will move text OUT of overlay or make overlay distinct */

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    /* Keep dark overlay for readability on image */
    transform: translateY(10px);
    opacity: 0;
    transition: 0.3s;
}

.tech-card:hover .card-overlay {
    transform: translateY(0);
    opacity: 1;
}

.card-title {
    font-size: 18px;
    color: #fff;
    /* Always white on overlay */
    margin-bottom: 6px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.card-meta {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: space-between;
}

/* Button override */
.btn-solid {
    display: inline-block;
    text-decoration: none;
}

/* Mobile Responsive */
.menu-toggle {
    display: none;
}

@media(max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-section {
        min-height: 40vh;
        padding-top: 80px;
        padding-bottom: 40px;
    }

    .hero-subtitle {
        margin-bottom: 24px;
    }

    .gallery-section {
        padding-top: 30px;
        padding-bottom: 60px;
    }

    .section-header-tech {
        margin-bottom: 20px;
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .nav-list,
    .app-auth {
        display: none;
    }

    /* Simplified */
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 24px;
        color: var(--text-main);
    }
}

/* Pagination */
.page-numbers {
    display: flex;
    justify-content: center;
    gap: 10px;
    list-style: none !important;
    padding: 0;
    margin: 0;
}

.page-numbers li {
    display: inline-block;
    margin: 0;
}

.page-numbers li a,
.page-numbers li span {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 4px;
    background: var(--bg-input);
    color: var(--text-muted);
    font-size: 14px;
    text-decoration: none;
    transition: 0.2s;
}

.page-numbers li span.current,
.page-numbers li a:hover {
    background: var(--primary);
    color: #fff;
    font-weight: bold;
}

/* Sidebar Filters */
.filter-btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    font-size: 14px;
    transition: 0.2s;
    text-decoration: none;
    line-height: normal;
    margin-right: 4px;
    margin-bottom: 4px;
}

.filter-btn:hover {
    border-color: var(--text-light);
    color: var(--text-main);
}

.filter-btn.active {
    background: #fff;
    /* Keep white background for outline style */
    color: var(--primary);
    border-color: var(--primary);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255, 36, 66, 0.15);
}

.filter-header {
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 16px;
    font-weight: bold;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 90px 20px 40px;
        align-items: flex-start;
    }

    .hero-content {
        padding-top: 20px;
        width: 100%;
    }

    .hero-title,
    .hero-subtitle {
        display: none;
    }

    .search-form-hero {
        max-width: 100%;
        margin-top: 30px !important;
    }

    .search-wrapper {
        padding: 4px;
    }

    .search-input {
        padding: 10px 16px;
        font-size: 14px;
    }

    .search-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}