/**
 * Bigbunny Ph - Main Stylesheet
 * Mobile-first responsive design
 * Prefix: w5ce5-
 */

/* CSS Variables */
:root {
    --w5ce5-primary: #CD853F;
    --w5ce5-secondary: #FFDEAD;
    --w5ce5-dark: #141414;
    --w5ce5-light: #FFF8DC;
    --w5ce5-accent: #DAA520;
    --w5ce5-text: #FFDEAD;
    --w5ce5-text-dark: #141414;
    --w5ce5-bg: #1a1a1a;
    --w5ce5-card-bg: #2a2a2a;
    --w5ce5-border: #3a3a3a;
    --w5ce5-success: #4CAF50;
    --w5ce5-gradient: linear-gradient(135deg, #CD853F 0%, #DAA520 100%);
}

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--w5ce5-dark);
    color: var(--w5ce5-text);
    line-height: 1.5rem;
    max-width: 430px;
    margin: 0 auto;
    overflow-x: hidden;
}

/* Container */
.w5ce5-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.w5ce5-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    background: linear-gradient(180deg, var(--w5ce5-dark) 0%, rgba(20, 20, 20, 0.95) 100%);
    padding: 1rem 1.5rem;
    z-index: 1000;
    border-bottom: 2px solid var(--w5ce5-primary);
    transition: all 0.3s ease;
}

.w5ce5-header-scrolled {
    background: rgba(20, 20, 20, 0.98);
    box-shadow: 0 2px 20px rgba(205, 133, 63, 0.3);
}

.w5ce5-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.w5ce5-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.w5ce5-logo img {
    width: 32px;
    height: 32px;
}

.w5ce5-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--w5ce5-primary);
    text-shadow: 0 0 10px rgba(205, 133, 63, 0.5);
}

.w5ce5-header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.w5ce5-btn {
    padding: 0.8rem 1.6rem;
    border-radius: 2rem;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.w5ce5-btn-register {
    background: var(--w5ce5-gradient);
    color: var(--w5ce5-dark);
}

.w5ce5-btn-register:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(205, 133, 63, 0.5);
}

.w5ce5-btn-login {
    background: transparent;
    color: var(--w5ce5-primary);
    border: 2px solid var(--w5ce5-primary);
}

.w5ce5-btn-login:hover {
    background: var(--w5ce5-primary);
    color: var(--w5ce5-dark);
}

.w5ce5-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--w5ce5-primary);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Navigation */
.w5ce5-nav {
    display: flex;
    gap: 1.5rem;
}

.w5ce5-nav a {
    color: var(--w5ce5-text);
    text-decoration: none;
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

.w5ce5-nav a:hover {
    color: var(--w5ce5-primary);
}

/* Mobile Menu */
.w5ce5-mobile-menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: var(--w5ce5-bg);
    z-index: 9999;
    transition: left 0.3s ease;
    padding: 2rem;
    overflow-y: auto;
}

.sitee5d-menu-active {
    left: 0;
}

.w5ce5-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;
}

.sitee5d-overlay-active {
    opacity: 1;
    visibility: visible;
}

.w5ce5-mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--w5ce5-border);
}

.w5ce5-mobile-menu-close {
    background: transparent;
    border: none;
    color: var(--w5ce5-primary);
    font-size: 2.4rem;
    cursor: pointer;
}

.w5ce5-mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.w5ce5-mobile-nav a {
    color: var(--w5ce5-text);
    text-decoration: none;
    font-size: 1.4rem;
    padding: 1rem;
    border-radius: 0.8rem;
    transition: all 0.3s ease;
}

.w5ce5-mobile-nav a:hover {
    background: var(--w5ce5-card-bg);
    color: var(--w5ce5-primary);
}

/* Main Content */
main {
    padding-top: 7rem;
}

@media (max-width: 768px) {
    main {
        padding-bottom: 80px;
    }
}

/* Carousel */
.w5ce5-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 1rem;
    margin-bottom: 2rem;
}

.w5ce5-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    cursor: pointer;
}

.w5ce5-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.w5ce5-carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
}

.w5ce5-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.sitee5d-dot-active,
.w5ce5-carousel-dot:hover {
    background: var(--w5ce5-primary);
    transform: scale(1.2);
}

/* Section Title */
.w5ce5-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--w5ce5-primary);
    margin-bottom: 1.5rem;
    text-align: center;
    text-shadow: 0 0 10px rgba(205, 133, 63, 0.3);
}

/* Game Grid */
.w5ce5-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.w5ce5-game-card {
    background: var(--w5ce5-card-bg);
    border-radius: 1rem;
    padding: 0.8rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--w5ce5-border);
    text-decoration: none;
    display: block;
}

.w5ce5-game-card:hover {
    transform: translateY(-5px);
    border-color: var(--w5ce5-primary);
    box-shadow: 0 5px 20px rgba(205, 133, 63, 0.3);
}

.w5ce5-game-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 0.8rem;
    margin-bottom: 0.5rem;
}

.w5ce5-game-name {
    font-size: 1.1rem;
    color: var(--w5ce5-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Category Section */
.w5ce5-category-section {
    margin-bottom: 2.5rem;
}

.w5ce5-category-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--w5ce5-accent);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--w5ce5-primary);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

/* Content Section */
.w5ce5-content-section {
    background: var(--w5ce5-card-bg);
    border-radius: 1.2rem;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--w5ce5-border);
}

.w5ce5-content-section h2 {
    font-size: 1.8rem;
    color: var(--w5ce5-primary);
    margin-bottom: 1.5rem;
}

.w5ce5-content-section p {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: var(--w5ce5-secondary);
}

.w5ce5-content-section a {
    color: var(--w5ce5-primary);
    text-decoration: none;
    font-weight: 600;
}

.w5ce5-content-section a:hover {
    text-decoration: underline;
}

/* Feature List */
.w5ce5-feature-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.w5ce5-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(205, 133, 63, 0.1);
    border-radius: 0.8rem;
}

.w5ce5-feature-item i {
    color: var(--w5ce5-primary);
    font-size: 2rem;
    flex-shrink: 0;
}

.w5ce5-feature-item h3 {
    font-size: 1.4rem;
    color: var(--w5ce5-primary);
    margin-bottom: 0.3rem;
}

.w5ce5-feature-item p {
    font-size: 1.2rem;
    color: var(--w5ce5-secondary);
    margin: 0;
}

/* Promo Link */
.w5ce5-promo-link {
    color: var(--w5ce5-primary);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.w5ce5-promo-link:hover {
    color: var(--w5ce5-accent);
    text-shadow: 0 0 10px rgba(205, 133, 63, 0.5);
}

/* Bottom Navigation */
.w5ce5-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    background: linear-gradient(180deg, var(--w5ce5-bg) 0%, var(--w5ce5-dark) 100%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 64px;
    border-top: 2px solid var(--w5ce5-primary);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.w5ce5-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    padding: 0.5rem;
    background: transparent;
    border: none;
    color: var(--w5ce5-text);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border-radius: 1rem;
}

.w5ce5-nav-btn i,
.w5ce5-nav-btn .material-icons {
    font-size: 24px;
    margin-bottom: 0.3rem;
    transition: all 0.3s ease;
}

.w5ce5-nav-btn span {
    font-size: 10px;
    font-weight: 500;
}

.w5ce5-nav-btn:hover,
.w5ce5-nav-btn.w5ce5-active {
    color: var(--w5ce5-primary);
    background: rgba(205, 133, 63, 0.15);
}

.w5ce5-nav-btn:hover i,
.w5ce5-nav-btn:hover .material-icons,
.w5ce5-nav-btn.w5ce5-active i,
.w5ce5-nav-btn.w5ce5-active .material-icons {
    transform: scale(1.15);
}

/* Footer */
.w5ce5-footer {
    background: var(--w5ce5-bg);
    padding: 2rem 1.5rem;
    border-top: 2px solid var(--w5ce5-primary);
}

.w5ce5-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.w5ce5-footer-links a {
    color: var(--w5ce5-text);
    text-decoration: none;
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.w5ce5-footer-links a:hover {
    color: var(--w5ce5-primary);
    background: rgba(205, 133, 63, 0.1);
}

.w5ce5-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.w5ce5-partners img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.w5ce5-partners img:hover {
    opacity: 1;
}

.w5ce5-copyright {
    text-align: center;
    font-size: 1.1rem;
    color: var(--w5ce5-secondary);
    opacity: 0.8;
}

/* Touch Active State */
.sitee5d-touch-active {
    opacity: 0.8;
    transform: scale(0.98);
}

/* Desktop Hide Bottom Nav */
@media (min-width: 769px) {
    .w5ce5-bottom-nav {
        display: none;
    }
}

/* Responsive */
@media (max-width: 430px) {
    .w5ce5-menu-toggle {
        display: block;
    }

    .w5ce5-nav {
        display: none;
    }

    .w5ce5-header-actions .w5ce5-btn {
        padding: 0.6rem 1rem;
        font-size: 1.1rem;
    }
}

/* Animations */
@keyframes w5ce5-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.w5ce5-animate-pulse {
    animation: w5ce5-pulse 2s infinite;
}

/* FAQ Section */
.w5ce5-faq-item {
    background: var(--w5ce5-card-bg);
    border-radius: 1rem;
    margin-bottom: 1rem;
    overflow: hidden;
    border: 1px solid var(--w5ce5-border);
}

.w5ce5-faq-question {
    padding: 1.5rem;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--w5ce5-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.w5ce5-faq-answer {
    padding: 0 1.5rem 1.5rem;
    font-size: 1.3rem;
    color: var(--w5ce5-secondary);
    line-height: 1.6;
}

/* Steps List */
.w5ce5-steps {
    counter-reset: step-counter;
}

.w5ce5-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.w5ce5-step::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    width: 30px;
    height: 30px;
    background: var(--w5ce5-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--w5ce5-dark);
    flex-shrink: 0;
}

.w5ce5-step-content h3 {
    font-size: 1.4rem;
    color: var(--w5ce5-primary);
    margin-bottom: 0.3rem;
}

.w5ce5-step-content p {
    font-size: 1.2rem;
    color: var(--w5ce5-secondary);
    margin: 0;
}
