/**
 * Bad Bunny - Layout Styles
 * Class prefix: wc94b-
 * Color palette: #DEB887 | #5D5D5D | #36454F | #1E1E1E | #4A4A4A
 */

/* ==================== CSS Variables ==================== */
:root {
    --wc94b-primary: #DEB887;
    --wc94b-secondary: #5D5D5D;
    --wc94b-dark: #36454F;
    --wc94b-darker: #1E1E1E;
    --wc94b-medium: #4A4A4A;
    --wc94b-white: #FFFFFF;
    --wc94b-black: #000000;
    --wc94b-light: #F5F5F5;
    --wc94b-gray: #888888;
    --wc94b-success: #4CAF50;
    --wc94b-warning: #FF9800;
    --wc94b-danger: #F44336;
    --wc94b-border: rgba(222, 184, 135, 0.3);
    --wc94b-shadow: rgba(0, 0, 0, 0.3);
    --wc94b-transition: all 0.3s ease;
    --wc94b-font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --wc94b-font-display: 'Georgia', serif;
}

/* ==================== Reset & Base ==================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--wc94b-font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--wc94b-white);
    background-color: var(--wc94b-darker);
    overflow-x: hidden;
    min-height: 100vh;
}

body.wc94b-menu-open {
    overflow: hidden;
}

a {
    color: var(--wc94b-primary);
    text-decoration: none;
    transition: var(--wc94b-transition);
}

a:hover {
    color: var(--wc94b-white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* ==================== Utility Classes ==================== */
.wc94b-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.wc94b-text-center {
    text-align: center;
}

.wc94b-text-left {
    text-align: left;
}

.wc94b-text-right {
    text-align: right;
}

.wc94b-clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* ==================== Header Styles ==================== */
.wc94b-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--wc94b-darker) 0%, rgba(30, 30, 30, 0.95) 100%);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    transition: var(--wc94b-transition);
    border-bottom: 1px solid var(--wc94b-border);
}

.wc94b-header.wc94b-scrolled {
    padding: 10px 0;
    background: rgba(30, 30, 30, 0.98);
    box-shadow: 0 4px 20px var(--wc94b-shadow);
}

.wc94b-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.wc94b-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wc94b-logo-img {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid var(--wc94b-primary);
}

.wc94b-logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--wc94b-primary);
    font-family: var(--wc94b-font-display);
    letter-spacing: 1px;
}

.wc94b-nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.wc94b-nav-link {
    color: var(--wc94b-white);
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 6px;
    transition: var(--wc94b-transition);
    font-size: 14px;
}

.wc94b-nav-link:hover {
    color: var(--wc94b-primary);
    background: rgba(222, 184, 135, 0.1);
}

.wc94b-header-actions {
    display: flex;
    gap: 12px;
}

.wc94b-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--wc94b-transition);
    border: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wc94b-btn-primary {
    background: linear-gradient(135deg, var(--wc94b-primary) 0%, #C4A06A 100%);
    color: var(--wc94b-darker);
}

.wc94b-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(222, 184, 135, 0.4);
}

.wc94b-btn-secondary {
    background: transparent;
    color: var(--wc94b-white);
    border: 2px solid var(--wc94b-primary);
}

.wc94b-btn-secondary:hover {
    background: var(--wc94b-primary);
    color: var(--wc94b-darker);
}

.wc94b-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--wc94b-white);
    font-size: 28px;
    cursor: pointer;
    padding: 5px;
}

/* ==================== Mobile Menu ==================== */
.wc94b-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 350px;
    height: 100vh;
    background: var(--wc94b-darker);
    z-index: 9999;
    transition: right 0.4s ease;
    overflow-y: auto;
    padding: 80px 25px 30px;
    border-left: 2px solid var(--wc94b-primary);
}

.wc94b-mobile-menu.wc94b-active {
    right: 0;
}

.wc94b-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--wc94b-white);
    font-size: 32px;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
}

.wc94b-mobile-nav-link {
    display: block;
    color: var(--wc94b-white);
    padding: 15px 0;
    border-bottom: 1px solid var(--wc94b-border);
    font-weight: 500;
    font-size: 16px;
}

.wc94b-mobile-nav-link:hover {
    color: var(--wc94b-primary);
    padding-left: 10px;
}

.wc94b-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: var(--wc94b-transition);
}

.wc94b-menu-overlay.wc94b-active {
    opacity: 1;
    visibility: visible;
}

/* ==================== Mobile Bottom Navigation ==================== */
.wc94b-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    background: linear-gradient(180deg, var(--wc94b-darker) 0%, #151515 100%);
    border-top: 2px solid var(--wc94b-primary);
    z-index: 1000;
    padding: 0 10px;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.5);
}

.wc94b-bottom-nav-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100%;
}

.wc94b-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 55px;
    padding: 5px 10px;
    color: var(--wc94b-gray);
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--wc94b-transition);
    text-decoration: none;
}

.wc94b-bottom-nav-item i {
    font-size: 22px;
    margin-bottom: 3px;
}

.wc94b-bottom-nav-item span {
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
}

.wc94b-bottom-nav-item:hover,
.wc94b-bottom-nav-item.wc94b-active {
    color: var(--wc94b-primary);
}

.wc94b-bottom-nav-item:hover i,
.wc94b-bottom-nav-item.wc94b-active i {
    transform: scale(1.1);
}

/* ==================== Hero Section ==================== */
.wc94b-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--wc94b-darker) 0%, var(--wc94b-dark) 50%, var(--wc94b-darker) 100%);
    padding: 120px 20px 80px;
    overflow: hidden;
}

.wc94b-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(222, 184, 135, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(222, 184, 135, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.wc94b-hero-content {
    position: relative;
    text-align: center;
    max-width: 800px;
    z-index: 1;
}

.wc94b-hero-title {
    font-size: 52px;
    font-weight: 800;
    color: var(--wc94b-primary);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 4px 30px rgba(222, 184, 135, 0.3);
}

.wc94b-hero-subtitle {
    font-size: 20px;
    color: var(--wc94b-white);
    margin-bottom: 35px;
    opacity: 0.9;
}

.wc94b-hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.wc94b-hero-btn {
    padding: 15px 40px;
    font-size: 16px;
}

/* ==================== Section Styles ==================== */
.wc94b-section {
    padding: 80px 20px;
    background: var(--wc94b-darker);
}

.wc94b-section-alt {
    background: var(--wc94b-dark);
}

.wc94b-section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--wc94b-primary);
    text-align: center;
    margin-bottom: 15px;
}

.wc94b-section-subtitle {
    font-size: 16px;
    color: var(--wc94b-gray);
    text-align: center;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ==================== Game Filter ==================== */
.wc94b-game-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.wc94b-filter-btn {
    padding: 12px 25px;
    background: transparent;
    border: 2px solid var(--wc94b-border);
    color: var(--wc94b-white);
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: var(--wc94b-transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wc94b-filter-btn:hover,
.wc94b-filter-btn.wc94b-active {
    background: var(--wc94b-primary);
    border-color: var(--wc94b-primary);
    color: var(--wc94b-darker);
}

/* ==================== Game Grid ==================== */
.wc94b-game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.wc94b-game-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--wc94b-dark);
    transition: var(--wc94b-transition);
    cursor: pointer;
    aspect-ratio: 3/4;
}

.wc94b-game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.wc94b-game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.wc94b-game-card:hover img {
    transform: scale(1.08);
}

.wc94b-game-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 15px 15px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.wc94b-game-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--wc94b-white);
    margin-bottom: 5px;
}

.wc94b-game-category {
    font-size: 11px;
    color: var(--wc94b-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.wc94b-game-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 55px;
    height: 55px;
    background: var(--wc94b-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wc94b-darker);
    font-size: 22px;
    transition: transform 0.3s ease;
    opacity: 0;
}

.wc94b-game-card:hover .wc94b-game-play-btn {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* ==================== Search Box ==================== */
.wc94b-search-box {
    max-width: 500px;
    margin: 0 auto 40px;
    position: relative;
}

.wc94b-search-input {
    width: 100%;
    padding: 15px 50px 15px 25px;
    background: var(--wc94b-dark);
    border: 2px solid var(--wc94b-border);
    border-radius: 50px;
    color: var(--wc94b-white);
    font-size: 15px;
    transition: var(--wc94b-transition);
}

.wc94b-search-input:focus {
    outline: none;
    border-color: var(--wc94b-primary);
    box-shadow: 0 0 20px rgba(222, 184, 135, 0.2);
}

.wc94b-search-input::placeholder {
    color: var(--wc94b-gray);
}

.wc94b-search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--wc94b-gray);
    font-size: 20px;
    pointer-events: none;
}

/* ==================== Features Section ==================== */
.wc94b-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.wc94b-feature-card {
    background: var(--wc94b-dark);
    padding: 35px;
    border-radius: 15px;
    text-align: center;
    transition: var(--wc94b-transition);
    border: 1px solid var(--wc94b-border);
}

.wc94b-feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--wc94b-primary);
}

.wc94b-feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--wc94b-primary) 0%, #C4A06A 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--wc94b-darker);
}

.wc94b-feature-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--wc94b-white);
    margin-bottom: 12px;
}

.wc94b-feature-text {
    font-size: 14px;
    color: var(--wc94b-gray);
    line-height: 1.7;
}

/* ==================== Stats Section ==================== */
.wc94b-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.wc94b-stat-item {
    padding: 25px;
}

.wc94b-stat-number {
    font-size: 42px;
    font-weight: 800;
    color: var(--wc94b-primary);
    margin-bottom: 8px;
}

.wc94b-stat-label {
    font-size: 14px;
    color: var(--wc94b-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==================== FAQ / Accordion ==================== */
.wc94b-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.wc94b-accordion-item {
    background: var(--wc94b-dark);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid var(--wc94b-border);
}

.wc94b-accordion-header {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--wc94b-white);
    transition: var(--wc94b-transition);
}

.wc94b-accordion-header:hover {
    background: rgba(222, 184, 135, 0.1);
}

.wc94b-accordion-item.wc94b-active .wc94b-accordion-header {
    background: rgba(222, 184, 135, 0.15);
    color: var(--wc94b-primary);
}

.wc94b-accordion-icon {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.wc94b-accordion-item.wc94b-active .wc94b-accordion-icon {
    transform: rotate(180deg);
}

.wc94b-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.wc94b-accordion-item.wc94b-active .wc94b-accordion-content {
    max-height: 500px;
}

.wc94b-accordion-body {
    padding: 0 25px 20px;
    color: var(--wc94b-gray);
    line-height: 1.8;
}

/* ==================== Tabs ==================== */
.wc94b-tabs {
    max-width: 900px;
    margin: 0 auto;
}

.wc94b-tab-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.wc94b-tab-btn {
    padding: 12px 25px;
    background: transparent;
    border: 2px solid var(--wc94b-border);
    color: var(--wc94b-white);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--wc94b-transition);
}

.wc94b-tab-btn:hover,
.wc94b-tab-btn.wc94b-active {
    background: var(--wc94b-primary);
    border-color: var(--wc94b-primary);
    color: var(--wc94b-darker);
}

.wc94b-tab-content {
    display: none;
    animation: wc94bFadeIn 0.3s ease;
}

.wc94b-tab-content.wc94b-active {
    display: block;
}

@keyframes wc94bFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==================== Footer ==================== */
.wc94b-footer {
    background: #0a0a0a;
    padding: 60px 20px 30px;
    border-top: 3px solid var(--wc94b-primary);
}

.wc94b-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.wc94b-footer-section h4 {
    font-size: 18px;
    color: var(--wc94b-primary);
    margin-bottom: 20px;
    font-weight: 600;
}

.wc94b-footer-links li {
    margin-bottom: 12px;
}

.wc94b-footer-links a {
    color: var(--wc94b-gray);
    font-size: 14px;
    transition: var(--wc94b-transition);
}

.wc94b-footer-links a:hover {
    color: var(--wc94b-primary);
    padding-left: 8px;
}

.wc94b-footer-text {
    color: var(--wc94b-gray);
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.wc94b-footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.wc94b-footer-copyright {
    color: var(--wc94b-gray);
    font-size: 13px;
}

.wc94b-footer-logos {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.wc94b-footer-logo {
    height: 35px;
    opacity: 0.7;
    filter: grayscale(100%);
    transition: var(--wc94b-transition);
}

.wc94b-footer-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* ==================== Back to Top ==================== */
.wc94b-back-to-top {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--wc94b-primary);
    color: var(--wc94b-darker);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transition: var(--wc94b-transition);
    z-index: 999;
    border: none;
    box-shadow: 0 5px 20px rgba(222, 184, 135, 0.4);
}

.wc94b-back-to-top.wc94b-visible {
    opacity: 1;
    visibility: visible;
}

.wc94b-back-to-top:hover {
    transform: translateY(-3px);
}

/* ==================== Loading Animation ==================== */
.wc94b-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--wc94b-border);
    border-top-color: var(--wc94b-primary);
    border-radius: 50%;
    animation: wc94bSpin 1s linear infinite;
}

@keyframes wc94bSpin {
    to { transform: rotate(360deg); }
}

/* ==================== Responsive Styles ==================== */
@media (max-width: 768px) {
    .wc94b-header {
        padding: 12px 0;
    }

    .wc94b-nav,
    .wc94b-header-actions {
        display: none;
    }

    .wc94b-menu-toggle {
        display: block;
    }

    .wc94b-bottom-nav {
        display: block;
    }

    .wc94b-hero {
        padding: 100px 20px 60px;
        min-height: auto;
    }

    .wc94b-hero-title {
        font-size: 32px;
    }

    .wc94b-hero-subtitle {
        font-size: 16px;
    }

    .wc94b-section {
        padding: 50px 15px;
    }

    .wc94b-section-title {
        font-size: 28px;
    }

    .wc94b-game-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }

    .wc94b-features {
        grid-template-columns: 1fr;
    }

    .wc94b-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .wc94b-footer-grid {
        grid-template-columns: 1fr;
    }

    body {
        padding-bottom: 80px;
    }
}

@media (max-width: 480px) {
    .wc94b-hero-title {
        font-size: 26px;
    }

    .wc94b-game-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .wc94b-filter-btn {
        padding: 10px 18px;
        font-size: 12px;
    }

    .wc94b-bottom-nav-item {
        min-width: 50px;
    }

    .wc94b-bottom-nav-item i {
        font-size: 20px;
    }

    .wc94b-bottom-nav-item span {
        font-size: 9px;
    }
}

/* Desktop: hide bottom nav */
@media (min-width: 769px) {
    .wc94b-bottom-nav {
        display: none;
    }
}

/* ==================== Animation Classes ==================== */
.wc94b-fade-in {
    animation: wc94bFadeInUp 0.6s ease forwards;
}

@keyframes wc94bFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wc94b-show {
    animation: wc94bFadeInUp 0.5s ease forwards;
}

/* ==================== SEO Hidden Elements ==================== */
.wc94b-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==================== Print Styles ==================== */
@media print {
    .wc94b-header,
    .wc94b-bottom-nav,
    .wc94b-back-to-top {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }
}
