/**
 * Spentime Layout Stylesheet
 * All classes use 'w66a4-' prefix for namespace isolation
 * Mobile-first design with max-width: 430px
 */

/* CSS Variables */
:root {
    --w66a4-primary: #8B0000;
    --w66a4-secondary: #2C3E50;
    --w66a4-accent: #E9ECEF;
    --w66a4-bg: #1a1a2e;
    --w66a4-bg-dark: #0f0f1a;
    --w66a4-text: #E9ECEF;
    --w66a4-text-dark: #2C3E50;
    --w66a4-gold: #FFD700;
    --w66a4-success: #28a745;
    --w66a4-gradient: linear-gradient(135deg, #8B0000 0%, #2C3E50 100%);
}

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--w66a4-bg);
    color: var(--w66a4-text);
    line-height: 1.5rem;
    max-width: 430px;
    margin: 0 auto;
    overflow-x: hidden;
}

/* Container */
.w66a4-container {
    width: 100%;
    padding: 0 1.5rem;
    margin: 0 auto;
}

.w66a4-wrapper {
    padding: 2rem 0;
}

/* Header */
.w66a4-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    background: var(--w66a4-bg-dark);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transition: background 0.3s ease;
}

.w66a4-header-scrolled {
    background: rgba(15, 15, 26, 0.95);
}

.w66a4-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.w66a4-logo img {
    width: 28px;
    height: 28px;
    border-radius: 4px;
}

.w66a4-logo-text {
    color: var(--w66a4-text);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.w66a4-header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.w66a4-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.w66a4-btn-primary {
    background: var(--w66a4-primary);
    color: var(--w66a4-text);
}

.w66a4-btn-primary:hover {
    background: #a00000;
    transform: translateY(-2px);
}

.w66a4-btn-secondary {
    background: transparent;
    color: var(--w66a4-text);
    border: 1px solid var(--w66a4-primary);
}

.w66a4-btn-secondary:hover {
    background: var(--w66a4-primary);
}

.w66a4-menu-toggle {
    background: none;
    border: none;
    color: var(--w66a4-text);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Menu */
.w66a4-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--w66a4-bg-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem;
    overflow-y: auto;
}

.game66be-menu-active {
    right: 0;
}

.w66a4-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;
}

.game66be-overlay-active {
    opacity: 1;
    visibility: visible;
}

.w66a4-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--w66a4-text);
    font-size: 2.4rem;
    cursor: pointer;
}

.w66a4-menu-links {
    margin-top: 3rem;
    list-style: none;
}

.w66a4-menu-links li {
    margin-bottom: 1.5rem;
}

.w66a4-menu-links a {
    color: var(--w66a4-text);
    text-decoration: none;
    font-size: 1.4rem;
    display: block;
    padding: 1rem;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.w66a4-menu-links a:hover {
    background: var(--w66a4-primary);
}

/* Main Content */
main {
    padding-top: 70px;
}

@media (max-width: 768px) {
    main {
        padding-bottom: 80px;
    }
}

/* Carousel */
.w66a4-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 2rem;
}

.game66be-slide {
    display: none;
    width: 100%;
}

.game66be-slide img {
    width: 100%;
    height: auto;
    border-radius: 0;
    cursor: pointer;
}

.w66a4-carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
}

.game66be-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.game66be-dot-active {
    background: var(--w66a4-primary);
}

/* Sections */
.w66a4-section {
    padding: 2rem 1.5rem;
    margin-bottom: 1.5rem;
}

.w66a4-section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--w66a4-text);
    text-align: center;
}

.w66a4-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--w66a4-primary);
    margin: 0.8rem auto 0;
}

/* Game Grid */
.w66a4-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.w66a4-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.w66a4-game-item:hover {
    transform: scale(1.05);
}

.w66a4-game-item img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.w66a4-game-item p {
    font-size: 1.1rem;
    color: var(--w66a4-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Category Title */
.w66a4-category-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--w66a4-gold);
    margin: 2rem 0 1rem;
    padding-left: 1rem;
    border-left: 3px solid var(--w66a4-primary);
}

/* Features Grid */
.w66a4-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.w66a4-feature-card {
    background: var(--w66a4-bg-dark);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(139, 0, 0, 0.3);
    transition: border-color 0.3s ease;
}

.w66a4-feature-card:hover {
    border-color: var(--w66a4-primary);
}

.w66a4-feature-icon {
    font-size: 3rem;
    color: var(--w66a4-primary);
    margin-bottom: 1rem;
}

.w66a4-feature-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--w66a4-text);
}

.w66a4-feature-desc {
    font-size: 1.2rem;
    color: rgba(233, 236, 239, 0.7);
}

/* Cards */
.w66a4-card {
    background: var(--w66a4-bg-dark);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(139, 0, 0, 0.2);
}

.w66a4-card-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--w66a4-text);
}

.w66a4-card-text {
    font-size: 1.3rem;
    color: rgba(233, 236, 239, 0.8);
    line-height: 1.8;
}

/* Footer */
.w66a4-footer {
    background: var(--w66a4-bg-dark);
    padding: 2rem 1.5rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(139, 0, 0, 0.3);
}

.w66a4-footer-brand {
    text-align: center;
    margin-bottom: 2rem;
}

.w66a4-footer-brand p {
    font-size: 1.2rem;
    color: rgba(233, 236, 239, 0.7);
    margin-top: 1rem;
    line-height: 1.6;
}

.w66a4-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.w66a4-footer-links a {
    color: var(--w66a4-text);
    text-decoration: none;
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    background: rgba(139, 0, 0, 0.2);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.w66a4-footer-links a:hover {
    background: var(--w66a4-primary);
}

.w66a4-footer-partners {
    text-align: center;
    margin-bottom: 1.5rem;
}

.w66a4-footer-partners img {
    max-width: 100%;
    height: auto;
    opacity: 0.7;
}

.w66a4-copyright {
    text-align: center;
    font-size: 1.1rem;
    color: rgba(233, 236, 239, 0.5);
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Bottom Navigation */
.w66a4-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    background: var(--w66a4-bg-dark);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 64px;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
    border-top: 1px solid rgba(139, 0, 0, 0.3);
}

.w66a4-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: rgba(233, 236, 239, 0.6);
    text-decoration: none;
}

.w66a4-nav-item:hover,
.w66a4-nav-item.active {
    color: var(--w66a4-primary);
}

.w66a4-nav-item i,
.w66a4-nav-item span.material-icons-outlined {
    font-size: 24px;
    margin-bottom: 4px;
}

.w66a4-nav-item span.nav-label {
    font-size: 10px;
    font-weight: 500;
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
    .w66a4-bottom-nav {
        display: none;
    }
}

/* Promo Buttons */
.w66a4-promo-section {
    text-align: center;
    padding: 2rem 1.5rem;
}

.w66a4-promo-btn {
    display: inline-block;
    background: var(--w66a4-gradient);
    color: var(--w66a4-text);
    padding: 1.2rem 3rem;
    border-radius: 30px;
    font-size: 1.4rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.w66a4-promo-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(139, 0, 0, 0.4);
}

/* Testimonials */
.w66a4-testimonials {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.w66a4-testimonial {
    background: var(--w66a4-bg-dark);
    border-radius: 10px;
    padding: 1.5rem;
    border-left: 3px solid var(--w66a4-primary);
}

.w66a4-testimonial-text {
    font-size: 1.3rem;
    color: rgba(233, 236, 239, 0.8);
    font-style: italic;
    margin-bottom: 1rem;
}

.w66a4-testimonial-author {
    font-size: 1.2rem;
    color: var(--w66a4-gold);
    font-weight: 600;
}

/* Payment Methods */
.w66a4-payment-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.w66a4-payment-item {
    background: var(--w66a4-bg-dark);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-size: 1.2rem;
    color: var(--w66a4-text);
    border: 1px solid rgba(139, 0, 0, 0.3);
}

/* Winners Showcase */
.w66a4-winners-list {
    background: var(--w66a4-bg-dark);
    border-radius: 10px;
    padding: 1rem;
}

.w66a4-winner-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.w66a4-winner-item:last-child {
    border-bottom: none;
}

.w66a4-winner-game {
    font-size: 1.2rem;
    color: var(--w66a4-text);
}

.w66a4-winner-amount {
    font-size: 1.3rem;
    color: var(--w66a4-gold);
    font-weight: 700;
}

/* FAQ Section */
.w66a4-faq-item {
    background: var(--w66a4-bg-dark);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.w66a4-faq-question {
    padding: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--w66a4-text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.w66a4-faq-answer {
    padding: 0 1.5rem 1.5rem;
    font-size: 1.2rem;
    color: rgba(233, 236, 239, 0.8);
    line-height: 1.6;
}

/* Text Links */
.w66a4-text-link {
    color: var(--w66a4-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.w66a4-text-link:hover {
    color: #a00000;
    text-decoration: underline;
}

/* Responsive utilities */
@media (max-width: 380px) {
    .w66a4-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .w66a4-features-grid {
        grid-template-columns: 1fr;
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--w66a4-text);
    line-height: 1.4;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.6rem; }

p {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

a {
    color: var(--w66a4-primary);
}

/* List styles */
ul, ol {
    padding-left: 2rem;
    margin-bottom: 1rem;
}

li {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

/* Highlight text */
.w66a4-highlight {
    color: var(--w66a4-gold);
    font-weight: 600;
}

/* Promo link inline */
.w66a4-promo-link {
    color: var(--w66a4-primary);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}
