/**
 * Playtime Game - Core Stylesheet
 * All classes use g153- prefix for namespace isolation
 * Mobile-first responsive design
 * @version 1.0.0
 */

/* ==================== CSS Variables ==================== */
:root {
    --g153-primary: #8B7355;
    --g153-secondary: #8B4513;
    --g153-dark: #333333;
    --g153-light: #BBBBBB;
    --g153-white: #FFFFFF;
    --g153-accent: #D4A574;
    --g153-gradient: linear-gradient(135deg, #8B7355 0%, #8B4513 100%);
    --g153-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --g153-radius: 8px;
    --g153-transition: all 0.3s ease;
}

/* ==================== Reset & 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(--g153-dark);
    color: var(--g153-light);
    line-height: 1.5rem;
    font-size: 1.4rem;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* ==================== Layout ==================== */
.g153-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

.g153-grid {
    display: grid;
    gap: 1.5rem;
}

.g153-flex {
    display: flex;
    flex-wrap: wrap;
}

/* ==================== Header ==================== */
.g153-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--g153-dark) 0%, rgba(51, 51, 51, 0.95) 100%);
    padding: 1rem;
    transition: var(--g153-transition);
    border-bottom: 1px solid rgba(139, 115, 85, 0.3);
}

.g153-header.g153-scrolled {
    box-shadow: var(--g153-shadow);
    background: rgba(51, 51, 51, 0.98);
}

.g153-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 430px;
    margin: 0 auto;
}

.g153-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.g153-logo img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

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

.g153-header-actions {
    display: flex;
    gap: 0.8rem;
}

.g153-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    border-radius: var(--g153-radius);
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--g153-transition);
    border: none;
    min-height: 40px;
}

.g153-btn-primary {
    background: var(--g153-gradient);
    color: var(--g153-white);
}

.g153-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(139, 115, 85, 0.5);
}

.g153-btn-secondary {
    background: transparent;
    color: var(--g153-accent);
    border: 2px solid var(--g153-primary);
}

.g153-btn-secondary:hover {
    background: var(--g153-primary);
    color: var(--g153-white);
}

.g153-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--g153-accent);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* ==================== Navigation Menu ==================== */
.g153-nav-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--g153-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 6rem 2rem 2rem;
    border-left: 1px solid var(--g153-primary);
}

.g153-nav-menu.g153-menu-open {
    right: 0;
}

.g153-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.g153-nav-item {
    border-bottom: 1px solid rgba(139, 115, 85, 0.2);
}

.g153-nav-link {
    display: block;
    padding: 1.2rem 1rem;
    color: var(--g153-light);
    font-size: 1.4rem;
    transition: var(--g153-transition);
}

.g153-nav-link:hover {
    color: var(--g153-accent);
    background: rgba(139, 115, 85, 0.1);
    padding-left: 1.5rem;
}

.g153-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.g153-menu-overlay.g153-overlay-visible {
    display: block;
    opacity: 1;
}

.g153-menu-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--g153-light);
    font-size: 2.4rem;
    cursor: pointer;
}

/* ==================== Hero/Slider ==================== */
.g153-hero {
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.g153-slider {
    position: relative;
    height: 200px;
}

.g153-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.g153-slide.g153-active {
    opacity: 1;
}

.g153-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 0 12px 12px;
}

.g153-slide-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
}

.g153-slide-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--g153-transition);
}

.g153-slide-dot.g153-active {
    background: var(--g153-accent);
    transform: scale(1.2);
}

/* ==================== Section Styling ==================== */
.g153-section {
    padding: 2.5rem 0;
}

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

.g153-section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--g153-gradient);
    border-radius: 2px;
}

.g153-section-content {
    color: var(--g153-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* ==================== Game Grid ==================== */
.g153-game-category {
    margin-bottom: 2.5rem;
}

.g153-category-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--g153-accent);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--g153-primary);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.g153-category-title i {
    font-size: 1.8rem;
}

.g153-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.g153-game-item {
    text-align: center;
    cursor: pointer;
    transition: var(--g153-transition);
    padding: 0.5rem;
    border-radius: var(--g153-radius);
}

.g153-game-item:hover {
    background: rgba(139, 115, 85, 0.2);
    transform: translateY(-3px);
}

.g153-game-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--g153-radius);
    object-fit: cover;
    margin-bottom: 0.5rem;
    border: 2px solid transparent;
    transition: var(--g153-transition);
}

.g153-game-item:hover .g153-game-img {
    border-color: var(--g153-accent);
}

.g153-game-name {
    font-size: 1.1rem;
    color: var(--g153-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ==================== Cards & Info Boxes ==================== */
.g153-card {
    background: rgba(139, 115, 85, 0.1);
    border-radius: var(--g153-radius);
    padding: 1.5rem;
    border: 1px solid rgba(139, 115, 85, 0.3);
    margin-bottom: 1.5rem;
}

.g153-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--g153-accent);
    margin-bottom: 1rem;
}

.g153-card-content {
    color: var(--g153-light);
    line-height: 1.7;
}

.g153-info-list {
    list-style: none;
    padding: 0;
}

.g153-info-item {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(139, 115, 85, 0.2);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.g153-info-item:last-child {
    border-bottom: none;
}

.g153-info-icon {
    color: var(--g153-accent);
    font-size: 1.8rem;
    flex-shrink: 0;
}

/* ==================== Testimonials ==================== */
.g153-testimonial {
    background: linear-gradient(135deg, rgba(139, 115, 85, 0.2) 0%, rgba(139, 69, 19, 0.1) 100%);
    border-radius: var(--g153-radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--g153-accent);
}

.g153-testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
    color: var(--g153-light);
}

.g153-testimonial-author {
    font-weight: 600;
    color: var(--g153-accent);
}

/* ==================== Payment Methods ==================== */
.g153-payment-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.g153-payment-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    border-radius: var(--g153-radius);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: var(--g153-transition);
}

.g153-payment-item:hover {
    background: rgba(139, 115, 85, 0.3);
}

/* ==================== Footer ==================== */
.g153-footer {
    background: linear-gradient(180deg, var(--g153-dark) 0%, #222222 100%);
    padding: 3rem 0 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--g153-primary);
}

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

.g153-footer-logo {
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
}

.g153-footer-desc {
    color: var(--g153-light);
    font-size: 1.3rem;
    line-height: 1.6;
    max-width: 350px;
    margin: 0 auto;
}

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

.g153-footer-link {
    color: var(--g153-light);
    font-size: 1.3rem;
    transition: var(--g153-transition);
}

.g153-footer-link:hover {
    color: var(--g153-accent);
}

.g153-promo-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin: 1.5rem 0;
}

.g153-promo-btn {
    background: var(--g153-gradient);
    color: var(--g153-white);
    padding: 0.8rem 1.5rem;
    border-radius: var(--g153-radius);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--g153-transition);
    border: none;
}

.g153-promo-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(139, 115, 85, 0.4);
}

.g153-copyright {
    text-align: center;
    color: var(--g153-light);
    font-size: 1.2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(139, 115, 85, 0.3);
}

/* ==================== Bottom Navigation (Mobile) ==================== */
.g153-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(180deg, rgba(51, 51, 51, 0.98) 0%, #222222 100%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    border-top: 1px solid var(--g153-primary);
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.3);
}

.g153-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    cursor: pointer;
    transition: var(--g153-transition);
    background: transparent;
    border: none;
    color: var(--g153-light);
}

.g153-nav-btn:hover,
.g153-nav-btn.g153-active {
    color: var(--g153-accent);
    transform: scale(1.1);
}

.g153-nav-btn i {
    font-size: 24px;
    margin-bottom: 4px;
}

.g153-nav-btn span {
    font-size: 10px;
    font-weight: 500;
}

/* ==================== RTP Stats ==================== */
.g153-rtp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.g153-rtp-item {
    background: rgba(139, 115, 85, 0.15);
    padding: 1rem;
    border-radius: var(--g153-radius);
    text-align: center;
}

.g153-rtp-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--g153-accent);
}

.g153-rtp-label {
    font-size: 1.2rem;
    color: var(--g153-light);
}

/* ==================== Winners Showcase ==================== */
.g153-winner-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(139, 115, 85, 0.1);
    border-radius: var(--g153-radius);
    margin-bottom: 0.8rem;
}

.g153-winner-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.g153-winner-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--g153-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--g153-white);
    font-weight: 700;
}

.g153-winner-amount {
    font-weight: 700;
    color: #4CAF50;
}

/* ==================== App Download CTA ==================== */
.g153-app-cta {
    background: var(--g153-gradient);
    border-radius: var(--g153-radius);
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
}

.g153-app-cta-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--g153-white);
    margin-bottom: 1rem;
}

.g153-app-cta-desc {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.g153-app-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* ==================== Utilities ==================== */
.g153-text-center {
    text-align: center;
}

.g153-mb-1 {
    margin-bottom: 1rem;
}

.g153-mb-2 {
    margin-bottom: 2rem;
}

.g153-mt-2 {
    margin-top: 2rem;
}

.g153-hidden {
    display: none !important;
}

.g153-promo-text {
    color: var(--g153-accent);
    font-weight: 600;
    cursor: pointer;
}

.g153-promo-text:hover {
    text-decoration: underline;
}

/* ==================== Desktop Styles ==================== */
@media (min-width: 769px) {
    .g153-container {
        max-width: 768px;
    }

    .g153-header-inner {
        max-width: 768px;
    }

    .g153-game-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .g153-bottom-nav {
        display: none;
    }

    .g153-slider {
        height: 300px;
    }

    .g153-rtp-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ==================== Mobile Adjustments ==================== */
@media (max-width: 768px) {
    .g153-menu-toggle {
        display: block;
    }

    .g153-header-actions .g153-btn {
        padding: 0.6rem 1rem;
        font-size: 1.2rem;
    }

    main {
        padding-bottom: 80px;
    }

    .g153-game-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.8rem;
    }

    .g153-game-name {
        font-size: 1rem;
    }
}

/* ==================== Partner Logos ==================== */
.g153-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin: 1.5rem 0;
}

.g153-partner-logo {
    width: 60px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--g153-light);
}
