/**
 * OKGame Layout Stylesheet
 * Version: 1.0.0
 * Prefix: wd76b-
 */

/* CSS Variables */
:root {
    --wd76b-bg-dark: #1E1E1E;
    --wd76b-accent-pink: #FFB6C1;
    --wd76b-accent-gold: #CD853F;
    --wd76b-text-light: #F0F0F0;
    --wd76b-accent-orange: #FF4500;
    --wd76b-accent-deep: #BF360C;
    --wd76b-header-height: 60px;
    --wd76b-bottom-nav-height: 60px;
}

/* Base Styles */
html {
    font-size: 62.5%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--wd76b-bg-dark);
    color: var(--wd76b-text-light);
    line-height: 1.5;
    font-size: 1.6rem;
    max-width: 430px;
    margin: 0 auto;
    overflow-x: hidden;
}

a {
    color: var(--wd76b-accent-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--wd76b-accent-pink);
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.wd76b-container {
    width: 100%;
    padding: 0 1.5rem;
}

/* Header */
.wd76b-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--wd76b-header-height);
    background: linear-gradient(135deg, var(--wd76b-bg-dark) 0%, #2a2a2a 100%);
    border-bottom: 2px solid var(--wd76b-accent-gold);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    max-width: 430px;
    margin: 0 auto;
}

.wd76b-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.wd76b-logo img {
    width: 32px;
    height: 32px;
}

.wd76b-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--wd76b-accent-gold), var(--wd76b-accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wd76b-header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.wd76b-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

.wd76b-btn-register {
    background: linear-gradient(135deg, var(--wd76b-accent-orange), var(--wd76b-accent-deep));
    color: var(--wd76b-text-light);
}

.wd76b-btn-login {
    background: transparent;
    border: 2px solid var(--wd76b-accent-gold);
    color: var(--wd76b-accent-gold);
}

.wd76b-btn:hover {
    transform: scale(1.05);
}

.wd76b-menu-toggle {
    background: none;
    border: none;
    color: var(--wd76b-accent-gold);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Menu */
.wd76b-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, #2a2a2a 0%, var(--wd76b-bg-dark) 100%);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem;
    overflow-y: auto;
}

.wd76b-menu-active {
    right: 0;
}

.wd76b-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.wd76b-overlay-active {
    opacity: 1;
    visibility: visible;
}

.wd76b-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--wd76b-accent-gold);
}

.wd76b-menu-close {
    background: none;
    border: none;
    color: var(--wd76b-accent-pink);
    font-size: 2.4rem;
    cursor: pointer;
}

.wd76b-menu-nav {
    list-style: none;
}

.wd76b-menu-nav li {
    margin-bottom: 1.5rem;
}

.wd76b-menu-nav a {
    display: block;
    padding: 1rem;
    font-size: 1.5rem;
    color: var(--wd76b-text-light);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.wd76b-menu-nav a:hover {
    background: rgba(205, 133, 63, 0.2);
    color: var(--wd76b-accent-gold);
}

/* Main Content */
.wd76b-main {
    padding-top: calc(var(--wd76b-header-height) + 1rem);
    padding-bottom: calc(var(--wd76b-bottom-nav-height) + 2rem);
}

/* Carousel */
.wd76b-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.wd76b-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.wd76b-slide {
    min-width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.wd76b-slide-active {
    opacity: 1;
    position: relative;
}

.wd76b-slide img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
}

.wd76b-dots {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem 0;
}

.wd76b-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--wd76b-accent-gold);
    opacity: 0.4;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wd76b-dot-active {
    opacity: 1;
    transform: scale(1.2);
}

/* Section Styles */
.wd76b-section {
    margin-bottom: 2.5rem;
    padding: 0 1.5rem;
}

.wd76b-section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--wd76b-accent-gold);
    border-left: 4px solid var(--wd76b-accent-orange);
    padding-left: 1rem;
}

.wd76b-section-content {
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--wd76b-text-light);
}

/* Game Grid */
.wd76b-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.wd76b-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.wd76b-game-item:hover {
    transform: translateY(-5px);
}

.wd76b-game-item img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.wd76b-game-name {
    font-size: 1.1rem;
    color: var(--wd76b-text-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Category Title */
.wd76b-category-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--wd76b-accent-pink);
    margin: 2rem 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

/* Cards */
.wd76b-card {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(205, 133, 63, 0.3);
}

.wd76b-card-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--wd76b-accent-gold);
    margin-bottom: 1rem;
}

/* Footer */
.wd76b-footer {
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
    padding: 2rem 1.5rem;
    padding-bottom: calc(var(--wd76b-bottom-nav-height) + 2rem);
    border-top: 2px solid var(--wd76b-accent-gold);
}

.wd76b-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.wd76b-footer-links a {
    font-size: 1.2rem;
    color: var(--wd76b-text-light);
}

.wd76b-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin: 1.5rem 0;
}

.wd76b-partners img {
    width: 40px;
    height: 40px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.wd76b-partners img:hover {
    opacity: 1;
}

.wd76b-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: rgba(240, 240, 240, 0.6);
    margin-top: 1rem;
}

/* Bottom Navigation */
.wd76b-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--wd76b-bottom-nav-height);
    background: linear-gradient(180deg, #2a2a2a 0%, var(--wd76b-bg-dark) 100%);
    border-top: 2px solid var(--wd76b-accent-gold);
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 430px;
    margin: 0 auto;
}

.wd76b-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--wd76b-text-light);
}

.wd76b-nav-item:hover,
.wd76b-nav-item-active {
    color: var(--wd76b-accent-gold);
}

.wd76b-nav-item i,
.wd76b-nav-item .material-icons {
    font-size: 24px;
    margin-bottom: 2px;
}

.wd76b-nav-item ion-icon {
    font-size: 24px;
    margin-bottom: 2px;
}

.wd76b-nav-text {
    font-size: 1rem;
    font-weight: 500;
}

/* Promo Link Styles */
.wd76b-promo-link {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, var(--wd76b-accent-orange), var(--wd76b-accent-deep));
    color: var(--wd76b-text-light);
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.wd76b-promo-link:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.4);
}

/* FAQ Styles */
.wd76b-faq-item {
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(42, 42, 42, 0.5);
    border-radius: 8px;
    border-left: 3px solid var(--wd76b-accent-gold);
}

.wd76b-faq-question {
    font-weight: 600;
    color: var(--wd76b-accent-pink);
    margin-bottom: 0.5rem;
}

.wd76b-faq-answer {
    font-size: 1.3rem;
    color: var(--wd76b-text-light);
    line-height: 1.5;
}

/* Feature List */
.wd76b-feature-list {
    list-style: none;
}

.wd76b-feature-list li {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(205, 133, 63, 0.2);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.wd76b-feature-list li:last-child {
    border-bottom: none;
}

.wd76b-feature-icon {
    color: var(--wd76b-accent-gold);
    font-size: 2rem;
}

/* Desktop Hidden */
@media (min-width: 769px) {
    .wd76b-bottom-nav {
        display: none;
    }

    .wd76b-main {
        padding-bottom: 2rem;
    }

    .wd76b-footer {
        padding-bottom: 2rem;
    }
}

/* Desktop Navigation */
@media (min-width: 769px) {
    .wd76b-menu-toggle {
        display: none;
    }

    .wd76b-desktop-nav {
        display: flex;
        gap: 2rem;
    }

    .wd76b-desktop-nav a {
        color: var(--wd76b-text-light);
        font-size: 1.4rem;
        transition: color 0.3s ease;
    }

    .wd76b-desktop-nav a:hover {
        color: var(--wd76b-accent-gold);
    }
}

/* Utilities */
.wd76b-text-center {
    text-align: center;
}

.wd76b-mb-1 {
    margin-bottom: 1rem;
}

.wd76b-mb-2 {
    margin-bottom: 2rem;
}

.wd76b-mt-2 {
    margin-top: 2rem;
}

.wd76b-highlight {
    color: var(--wd76b-accent-gold);
    font-weight: 600;
}
