/**
 * Lucky Star Casino - Main Stylesheet
 * Prefix: gad9-
 * Version: 1.0.0
 * Mobile-first responsive design
 */

/* CSS Variables with prefix */
:root {
    --gad9-primary: #CD853F;
    --gad9-secondary: #BDC3C7;
    --gad9-dark: #3A3A3A;
    --gad9-darker: #2a2a2a;
    --gad9-light: #C0C0C0;
    --gad9-gray: #808080;
    --gad9-bg: #1a1a1a;
    --gad9-bg-card: #2d2d2d;
    --gad9-text: #ffffff;
    --gad9-text-muted: #a0a0a0;
    --gad9-border: #404040;
    --gad9-accent: #CD853F;
    --gad9-success: #4caf50;
    --gad9-warning: #ff9800;
    --gad9-gradient: linear-gradient(135deg, var(--gad9-primary), var(--gad9-dark));
    --gad9-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --gad9-radius: 8px;
    --gad9-radius-sm: 4px;
    --gad9-radius-lg: 12px;
    --gad9-header-height: 60px;
    --gad9-bottom-nav-height: 64px;
}

/* Base Styles */
html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 1.6rem;
    line-height: 1.5;
    color: var(--gad9-text);
    background-color: var(--gad9-bg);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.gad9-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.6rem;
    box-sizing: border-box;
}

/* Header Styles */
.gad9-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--gad9-header-height);
    background: var(--gad9-darker);
    border-bottom: 1px solid var(--gad9-border);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.6rem;
}

.gad9-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.gad9-logo img {
    height: 32px;
    width: auto;
}

.gad9-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gad9-primary);
    white-space: nowrap;
}

.gad9-header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.gad9-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    font-size: 1.4rem;
    font-weight: 600;
    border: none;
    border-radius: var(--gad9-radius);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    min-height: 44px;
    min-width: 44px;
}

.gad9-btn-primary {
    background: var(--gad9-primary);
    color: var(--gad9-dark);
}

.gad9-btn-primary:hover {
    background: #d4924a;
    transform: translateY(-1px);
}

.gad9-btn-secondary {
    background: transparent;
    color: var(--gad9-text);
    border: 2px solid var(--gad9-primary);
}

.gad9-btn-secondary:hover {
    background: var(--gad9-primary);
    color: var(--gad9-dark);
}

/* Hamburger Menu */
.gad9-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 20px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.gad9-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--gad9-text);
    transition: all 0.3s ease;
}

.gad9-hamburger-active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.gad9-hamburger-active span:nth-child(2) {
    opacity: 0;
}

.gad9-hamburger-active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
.gad9-mobile-menu {
    position: fixed;
    top: var(--gad9-header-height);
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: calc(100vh - var(--gad9-header-height));
    background: var(--gad9-darker);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 2rem 0;
}

.gad9-menu-active {
    right: 0;
}

.gad9-menu-overlay {
    position: fixed;
    top: var(--gad9-header-height);
    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;
}

.gad9-overlay-active {
    opacity: 1;
    visibility: visible;
}

.gad9-menu-item {
    display: block;
    padding: 1.2rem 2rem;
    color: var(--gad9-text);
    text-decoration: none;
    font-size: 1.5rem;
    border-bottom: 1px solid var(--gad9-border);
    transition: background 0.2s ease;
}

.gad9-menu-item:hover {
    background: var(--gad9-bg-card);
    color: var(--gad9-primary);
}

/* Main Content */
.gad9-main {
    padding-top: var(--gad9-header-height);
    min-height: 100vh;
}

@media (max-width: 768px) {
    .gad9-main {
        padding-bottom: calc(var(--gad9-bottom-nav-height) + 20px);
    }
}

/* Carousel/Slider */
.gad9-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 2rem;
}

.gad9-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.gad9-slide {
    min-width: 100%;
    position: relative;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gad9-slide-active {
    opacity: 1;
}

.gad9-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.gad9-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
}

.gad9-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.2s ease;
}

.gad9-dot-active {
    background: var(--gad9-primary);
}

/* Section Styles */
.gad9-section {
    padding: 2rem 0;
}

.gad9-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gad9-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.gad9-section-subtitle {
    font-size: 1.4rem;
    color: var(--gad9-text-muted);
    text-align: center;
    margin-bottom: 2rem;
}

/* Game Grid */
.gad9-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.gad9-game-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.gad9-game-card:hover {
    transform: scale(1.05);
}

.gad9-game-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--gad9-radius);
    object-fit: cover;
    margin-bottom: 0.5rem;
}

.gad9-game-name {
    font-size: 1.1rem;
    color: var(--gad9-text);
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

/* Category Section */
.gad9-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 0 1.6rem;
}

.gad9-category-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--gad9-primary);
}

.gad9-category-more {
    font-size: 1.3rem;
    color: var(--gad9-accent);
    text-decoration: none;
}

/* Cards */
.gad9-card {
    background: var(--gad9-bg-card);
    border-radius: var(--gad9-radius-lg);
    padding: 1.6rem;
    margin-bottom: 1.6rem;
    border: 1px solid var(--gad9-border);
}

.gad9-card-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--gad9-primary);
    margin-bottom: 1rem;
}

.gad9-card-text {
    font-size: 1.4rem;
    color: var(--gad9-text-muted);
    line-height: 1.6;
}

/* Feature List */
.gad9-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gad9-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gad9-border);
}

.gad9-feature-item:last-child {
    border-bottom: none;
}

.gad9-feature-icon {
    font-size: 2rem;
    color: var(--gad9-primary);
    flex-shrink: 0;
}

.gad9-feature-content h4 {
    font-size: 1.4rem;
    color: var(--gad9-text);
    margin: 0 0 0.5rem 0;
}

.gad9-feature-content p {
    font-size: 1.3rem;
    color: var(--gad9-text-muted);
    margin: 0;
}

/* Footer */
.gad9-footer {
    background: var(--gad9-darker);
    padding: 3rem 0 1rem;
    margin-top: 3rem;
}

.gad9-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.gad9-footer-link {
    color: var(--gad9-text-muted);
    text-decoration: none;
    font-size: 1.3rem;
    padding: 0.5rem;
}

.gad9-footer-link:hover {
    color: var(--gad9-primary);
}

.gad9-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--gad9-border);
    border-bottom: 1px solid var(--gad9-border);
    margin-bottom: 2rem;
}

.gad9-partner-img {
    height: 30px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.gad9-partner-img:hover {
    opacity: 1;
}

.gad9-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: var(--gad9-gray);
    padding-top: 1rem;
}

/* Bottom Navigation */
.gad9-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--gad9-bottom-nav-height);
    background: var(--gad9-darker);
    border-top: 1px solid var(--gad9-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
}

@media (min-width: 769px) {
    .gad9-bottom-nav {
        display: none;
    }
}

.gad9-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 0.5rem;
}

.gad9-nav-btn:hover {
    transform: scale(1.1);
}

.gad9-nav-btn.active .gad9-nav-icon,
.gad9-nav-btn:hover .gad9-nav-icon {
    color: var(--gad9-primary);
}

.gad9-nav-icon {
    font-size: 2.2rem;
    color: var(--gad9-text-muted);
    transition: color 0.2s ease;
}

.gad9-nav-text {
    font-size: 1rem;
    color: var(--gad9-text-muted);
    margin-top: 0.3rem;
    transition: color 0.2s ease;
}

.gad9-nav-btn.active .gad9-nav-text,
.gad9-nav-btn:hover .gad9-nav-text {
    color: var(--gad9-primary);
}

/* Promo Banner */
.gad9-promo-banner {
    background: var(--gad9-gradient);
    padding: 2rem 1.6rem;
    text-align: center;
    margin: 1.5rem 0;
    border-radius: var(--gad9-radius-lg);
}

.gad9-promo-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gad9-text);
    margin-bottom: 0.5rem;
}

.gad9-promo-text {
    font-size: 1.4rem;
    color: var(--gad9-light);
    margin-bottom: 1.5rem;
}

/* Text Utilities */
.gad9-text-primary {
    color: var(--gad9-primary);
}

.gad9-text-muted {
    color: var(--gad9-text-muted);
}

.gad9-text-center {
    text-align: center;
}

.gad9-text-bold {
    font-weight: 700;
}

/* Link Styles */
.gad9-link {
    color: var(--gad9-primary);
    text-decoration: none;
    cursor: pointer;
}

.gad9-link:hover {
    text-decoration: underline;
}

.gad9-promo-link {
    color: var(--gad9-primary);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

.gad9-promo-link:hover {
    color: #d4924a;
}

/* RTP Stats */
.gad9-rtp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.gad9-rtp-item {
    background: var(--gad9-bg-card);
    padding: 1rem;
    border-radius: var(--gad9-radius);
    text-align: center;
}

.gad9-rtp-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gad9-primary);
}

.gad9-rtp-label {
    font-size: 1.2rem;
    color: var(--gad9-text-muted);
}

/* FAQ Accordion */
.gad9-faq-item {
    border-bottom: 1px solid var(--gad9-border);
}

.gad9-faq-question {
    padding: 1.2rem 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gad9-faq-question h4 {
    font-size: 1.4rem;
    color: var(--gad9-text);
    margin: 0;
}

.gad9-faq-answer {
    padding-bottom: 1.2rem;
}

.gad9-faq-answer p {
    font-size: 1.3rem;
    color: var(--gad9-text-muted);
    margin: 0;
}

/* Touch highlight effect */
.gad9-touch-highlight {
    transition: background 0.1s ease;
}

.gad9-touch-active {
    background: rgba(205, 133, 63, 0.1);
}

/* Desktop Navigation */
@media (min-width: 769px) {
    .gad9-header {
        max-width: 100%;
    }

    .gad9-hamburger {
        display: none;
    }

    .gad9-desktop-nav {
        display: flex;
        gap: 2rem;
    }

    .gad9-desktop-nav a {
        color: var(--gad9-text);
        text-decoration: none;
        font-size: 1.4rem;
        transition: color 0.2s ease;
    }

    .gad9-desktop-nav a:hover {
        color: var(--gad9-primary);
    }
}

@media (max-width: 768px) {
    .gad9-desktop-nav {
        display: none;
    }
}

/* Responsive adjustments */
@media (max-width: 380px) {
    .gad9-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .gad9-logo-text {
        font-size: 1.5rem;
    }

    .gad9-btn {
        padding: 0.6rem 1.2rem;
        font-size: 1.2rem;
    }
}
