/* ===== CSS Variables ===== */
:root {
    --primary: #DF3301;
    --secondary: #007aff;
    --dark: #0a0a0a;
    --darker: #050505;
    --light: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, #ff5722 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary) 0%, #00c6ff 100%);
    --gradient-mixed: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    --shadow-glow-primary: 0 0 30px rgba(223, 51, 1, 0.3);
    --shadow-glow-secondary: 0 0 30px rgba(0, 122, 255, 0.3);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--dark);
    color: var(--light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* ===== Header ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(180deg, rgba(5, 5, 5, 0.95) 0%, rgba(10, 10, 10, 0.9) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 16px 32px;
}

.header-content {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    padding: 14px 36px;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.logo-container {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.logo {
    height: 38px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.03);
    filter: brightness(1.15);
}

.ledcraft-logo {
    filter: brightness(1.05);
}

.ankamall-logo {
    height: 34px;
    filter: invert(1) brightness(1.1);
}

.header-separator {
    width: 1px;
    height: 28px;
    background: linear-gradient(180deg,
            transparent 0%,
            rgba(223, 51, 1, 0.6) 30%,
            var(--primary) 50%,
            rgba(223, 51, 1, 0.6) 70%,
            transparent 100%);
    position: relative;
}

.header-separator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--primary), 0 0 20px rgba(223, 51, 1, 0.4);
}

/* ===== Main Title ===== */
.main-title {
    text-align: center;
    margin-bottom: 32px;
    position: relative;
}

.main-title h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--light);
    letter-spacing: -1px;
    position: relative;
    display: inline-block;
}

.main-title h1::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.main-title p {
    font-size: 1.05rem;
    color: var(--gray-400);
    font-weight: 400;
    letter-spacing: 0.3px;
    margin-top: 8px;
}

.main-title p strong {
    color: var(--light);
    font-weight: 600;
}

/* ===== Main Content ===== */
.main-content {
    flex: 1;
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    padding: 24px;
}

/* ===== Section Tabs ===== */
.section-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    color: var(--gray-400);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn i {
    font-size: 1.1rem;
}

.tab-btn .count {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--light);
}

.tab-btn.active {
    background: var(--primary);
    border-color: transparent;
    color: var(--light);
    box-shadow: var(--shadow-md), var(--shadow-glow-primary);
}

.tab-btn.active .count {
    background: rgba(255, 255, 255, 0.25);
}

/* ===== Media Sections ===== */
.media-section {
    display: none;
    animation: fadeIn 0.4s ease;
}

.media-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Media Grid ===== */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

/* ===== Media Card ===== */
.media-card {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    background: var(--gray-900);
    transition: var(--transition);
}

.media-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            transparent 0%,
            transparent 50%,
            rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
    opacity: 0;
    transition: var(--transition);
}

.media-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(223, 51, 1, 0.15);
}

.media-card:hover::before {
    opacity: 1;
}

.media-card img,
.media-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.media-card:hover img,
.media-card:hover video {
    transform: scale(1.05);
}

/* Video Thumbnail - Lazy Loading */
.video-thumbnail {
    width: 100%;
    height: 100%;
    background: var(--gray-800);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.media-card:hover .video-thumbnail {
    transform: scale(1.05);
}

.thumbnail-placeholder {
    color: var(--gray-600);
    font-size: 2.5rem;
    opacity: 0.5;
}

/* Video Play Button */
.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.play-btn {
    width: 70px;
    height: 70px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg), var(--shadow-glow-primary);
    transition: var(--transition);
    padding-left: 5px;
}

.media-card:hover .play-btn {
    transform: scale(1.15);
    box-shadow: 0 0 50px rgba(223, 51, 1, 0.5);
}

/* Photo overlay icon */
.photo-overlay {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 2;
    opacity: 0;
    transition: var(--transition);
}

.media-card:hover .photo-overlay {
    opacity: 1;
}

.expand-icon {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    font-size: 0.9rem;
}

/* ===== Modal ===== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(20px);
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    z-index: 1;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-close {
    position: absolute;
    top: -45px;
    right: 0;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--light);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: rotate(90deg);
}

/* Video Modal */
.video-modal-content video {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* Image Modal */
.image-modal-content img {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    object-fit: contain;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    left: -60px;
    right: -60px;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.nav-btn {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--light);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
}

.nav-btn:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    transform: scale(1.1);
}

/* ===== Footer ===== */
.footer {
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.5) 100%);
    padding: 20px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    max-width: 1600px;
    margin: 0 auto;
    text-align: center;
}

.footer-text {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-500);
    font-size: 0.85rem;
    font-weight: 400;
}

.footer-text i {
    color: var(--primary);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .header {
        padding: 12px 16px;
    }

    .logo-wrapper {
        padding: 10px 20px;
        gap: 20px;
    }

    .logo {
        height: 28px;
    }

    .ankamall-logo {
        height: 24px;
    }

    .header-separator {
        height: 22px;
    }

    .header-separator::before {
        width: 5px;
        height: 5px;
    }

    .main-content {
        padding: 16px;
    }

    .section-tabs {
        gap: 8px;
        margin-bottom: 16px;
    }

    .tab-btn {
        padding: 12px 18px;
        font-size: 0.85rem;
        gap: 8px;
    }

    .tab-btn span:not(.count) {
        display: none;
    }

    .tab-btn i {
        font-size: 1.2rem;
    }

    .media-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .media-card {
        border-radius: var(--radius-sm);
    }

    .play-btn {
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
    }

    .modal-content {
        max-width: 95vw;
    }

    .modal-close {
        top: -40px;
        right: 0;
    }

    .lightbox-nav {
        left: 10px;
        right: 10px;
    }

    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .footer {
        padding: 16px;
    }

    .footer-text {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .media-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .tab-btn {
        padding: 10px 14px;
    }
}

/* Large screens - fit more content */
@media (min-width: 1200px) {
    .media-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 20px;
    }
}

@media (min-width: 1600px) {
    .media-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--darker);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-700);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-600);
}

/* ===== Loading State ===== */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}