/* 
   Insiders Official Store - Core Design System
   Colors: White (Primary), Black (Secondary)
*/

:root {
    --primary-color: #ffffff;
    --secondary-color: #000000;
    --accent-color: #ff0000;
    /* Optional accent for highlights */
    --text-color-main: #000000;
    --text-color-light: #ffffff;
    --text-color-muted: #666666;
    --bg-light: #ffffff;
    --bg-dark: #0a0a0a;
    --border-color: #e0e0e0;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 80px;
    --max-width: 1200px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color-main);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

body.loading {
    overflow: hidden;
}

h1,
h2,
h3,
h4,
.logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

img {
    max-width: 100%;
    display: block;
}

/* Layout Helpers */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

.text-white {
    color: var(--text-color-light);
}

.text-gray {
    color: var(--text-color-muted);
}

.bg-black {
    background-color: var(--bg-dark);
}

.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

/* Section Headers */
.section-header {
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background-color: var(--secondary-color);
}

.section-subtitle {
    margin-top: 20px;
    font-size: 1.1rem;
    color: var(--text-color-muted);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 35px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 0;
    /* Modern sharp look */
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-light);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.logo-loader {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.loader-text {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 5px;
    color: var(--secondary-color);
    text-transform: uppercase;
}

.loader-text span {
    color: var(--text-color-muted);
}

.loader-logo-img {
    height: 120px;
    width: auto;
    animation: pulse 1.5s infinite;
}

.progress-bar {
    width: 200px;
    height: 2px;
    background-color: #333;
    margin: 0 auto;
    overflow: hidden;
}

.progress-fill {
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    transform: translateX(-100%);
    animation: loading 2s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
        transform: scale(0.95);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0.5;
        transform: scale(0.95);
    }
}

@keyframes loading {
    0% {
        transform: translateX(-100%);
    }

    50% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Header */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: transparent;
    z-index: 1000;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
}

#main-header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    height: 70px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
}

.header-logo {
    height: 45px;
    width: auto;
    transition: var(--transition-smooth);
    filter: invert(0);
}

#main-header:not(.scrolled) .header-logo {
    filter: invert(1) brightness(2);
}

#main-header.scrolled .header-logo {
    height: 35px;
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--text-color-muted);
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color);
}

#main-header:not(.scrolled) .nav-link {
    color: rgba(255, 255, 255, 0.8);
}

#main-header:not(.scrolled) .nav-link:hover,
#main-header:not(.scrolled) .nav-link.active {
    color: var(--primary-color);
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 30px;
    height: 3px;
    background-color: var(--secondary-color);
    transition: var(--transition-smooth);
}

#main-header:not(.scrolled) .nav-toggle span {
    background-color: var(--primary-color);
}

/* Dropdown Menu */
.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-light);
    min-width: 150px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-smooth);
    padding: 10px 0;
    list-style: none;
    z-index: 1001;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-color-main);
}

.dropdown-menu li a:hover {
    background-color: #f5f5f5;
    color: var(--accent-color);
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#main-header:not(.scrolled) .dropdown-menu {
    background-color: rgba(0, 0, 0, 0.9);
}

#main-header:not(.scrolled) .dropdown-menu li a {
    color: var(--text-color-light);
}

.nav-link i {
    font-size: 0.7rem;
    margin-left: 5px;
    transition: transform 0.3s;
}

.has-dropdown:hover .nav-link i {
    transform: rotate(180deg);
}

/* Mobile Nav */
@media (max-width: 992px) {
    .nav-toggle {
        display: flex;
    }

    #nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background-color: var(--bg-light);
        padding: 100px 40px;
        transition: var(--transition-smooth);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    }

    #nav-menu.open {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 20px;
    }

    .nav-link {
        font-size: 1.5rem;
        color: var(--text-color-main) !important;
    }

    .nav-toggle.open span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.open span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Hero Slider */
.hero-slider {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.slider-wrapper {
    height: 100%;
    width: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-content {
    color: var(--text-color-light);
}

.slide-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    margin-bottom: 20px;
    transform: translateY(30px);
    transition: transform 0.8s ease-out 0.2s, opacity 0.8s ease-out 0.2s;
    opacity: 0;
}

.slide-desc {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 600px;
    transform: translateY(30px);
    transition: transform 0.8s ease-out 0.4s, opacity 0.8s ease-out 0.4s;
    opacity: 0;
}

.slide.active .slide-title,
.slide.active .slide-desc {
    transform: translateY(0);
    opacity: 1;
}

.slider-controls {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 30px;
    z-index: 10;
}

.control-btn {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-smooth);
}

.control-btn:hover {
    background: white;
    color: black;
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background-color: white;
    transform: scale(1.3);
}

/* Footer Implementation */
#main-footer {
    background-color: var(--bg-dark);
    color: var(--primary-color);
    padding: 80px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
}

.footer-logo {
    font-size: 2rem;
    margin-bottom: 20px;
}

.footer-nav h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
    position: relative;
}

.footer-nav ul li {
    margin-bottom: 10px;
}

.footer-nav ul a {
    color: var(--text-color-muted);
}

.footer-nav ul a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border: 1px solid #333;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
}

.social-links a:hover {
    background-color: white;
    color: black;
    border-color: white;
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid #222;
    color: #444;
    font-size: 0.9rem;
}

/* VOD Cards */
.vod-card {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.vod-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.vod-thumb {
    position: relative;
    overflow: hidden;
}

.vod-thumb img {
    transition: var(--transition-smooth);
}

.vod-card:hover .vod-thumb img {
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition-smooth);
}

.play-overlay i {
    color: white;
    font-size: 3rem;
}

.vod-card:hover .play-overlay {
    opacity: 1;
}

.vod-info {
    padding: 20px;
}

.vod-info h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vod-info p {
    color: var(--text-color-muted);
    font-size: 0.9rem;
}

/* Twitch Live */
.live-player-area {
    margin-top: 50px;
    background-color: #111;
    min-height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #222;
}

.no-live-msg {
    text-align: center;
    color: #444;
}

.no-live-msg i {
    font-size: 4rem;
    margin-bottom: 20px;
}

.twitch-embed-wrapper {
    width: 100%;
}

/* Instagram Grid */
.insta-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.insta-post {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
}

.insta-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.insta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    opacity: 0;
    transition: var(--transition-smooth);
}

.insta-post:hover .insta-overlay {
    opacity: 1;
}

.insta-post:hover img {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Masonry Mosaic Gallery */
.gallery-grid {
    column-count: 3;
    column-gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    background-color: #000;
    break-inside: avoid;
    display: inline-block;
    width: 100%;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
    opacity: 0.8;
}

.gallery-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: white;
    transition: bottom 0.4s ease;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    pointer-events: none;
}

.gallery-item:hover img {
    transform: scale(1.1);
    opacity: 1;
}

.gallery-item:hover .gallery-overlay {
    bottom: 0;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .hero-slider {
        height: 80vh;
    }
}

/* Partners Section */
.partners-section {
    padding-bottom: 60px;
    margin-bottom: 60px;
    border-bottom: 1px solid #1a1a1a;
    text-align: center;
}

.partners-title {
    font-size: 0.9rem;
    color: #444;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.partners-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.partner-logo {
    max-width: 120px;
    height: auto;
    filter: grayscale(1) opacity(0.5);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.partner-logo:hover {
    filter: grayscale(0) opacity(1);
    transform: scale(1.1);
}

/* Maintenance Page */
.maintenance-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: var(--bg-light);
    padding: var(--header-height) 20px 40px;
}

.maintenance-content {
    max-width: 600px;
    width: 100%;
}

.maintenance-icon {
    font-size: 5rem;
    color: var(--text-color-muted);
    margin-bottom: 30px;
}

.maintenance-text {
    margin: 20px 0 40px;
    font-size: 1.2rem;
    color: var(--text-color-muted);
}

@media (max-width: 768px) {
    .partners-logos {
        gap: 20px;
    }

    .partner-logo {
        max-width: 80px;
    }

    .maintenance-icon {
        font-size: 3.5rem;
    }
}