/**
 * Megabet Plus - Main Stylesheet
 * All classes use prefix: g5da-
 * Color Palette: #D2B48C | #DEB887 | #FFFFBA | #273746 | #A9A9A9 | #C0C0C0
 * Mobile-first responsive design
 */

/* CSS Variables */
:root {
    --g5da-primary: #D2B48C;
    --g5da-secondary: #DEB887;
    --g5da-accent: #FFFFBA;
    --g5da-bg: #273746;
    --g5da-bg-light: #2d4156;
    --g5da-text-light: #C0C0C0;
    --g5da-text-muted: #A9A9A9;
    --g5da-white: #FFFFFF;
    --g5da-gold: #FFD700;
    --g5da-success: #4CAF50;
    --g5da-gradient: linear-gradient(135deg, #D2B48C 0%, #DEB887 100%);
    --g5da-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --g5da-radius: 8px;
    --g5da-radius-lg: 16px;
    --g5da-header-height: 60px;
    --g5da-bottom-nav-height: 60px;
}

/* Reset and Base */
*, *::before, *::after {
    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;
    font-size: 1.6rem;
    line-height: 1.5;
    background-color: var(--g5da-bg);
    color: var(--g5da-text-light);
    min-height: 100vh;
}

a {
    color: var(--g5da-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--g5da-secondary);
}

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

/* Container */
.g5da-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 15px;
}

.g5da-wrapper {
    padding: 20px 15px;
}

/* Header */
.g5da-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--g5da-header-height);
    background: linear-gradient(180deg, var(--g5da-bg) 0%, var(--g5da-bg-light) 100%);
    box-shadow: var(--g5da-shadow);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
}

.g5da-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.g5da-logo img {
    width: 32px;
    height: 32px;
}

.g5da-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--g5da-primary);
}

.g5da-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.g5da-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    font-size: 1.4rem;
    font-weight: 600;
    border-radius: var(--g5da-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    min-height: 44px;
    min-width: 44px;
}

.g5da-btn-primary {
    background: var(--g5da-gradient);
    color: var(--g5da-bg);
}

.g5da-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(210, 180, 140, 0.4);
}

.g5da-btn-outline {
    background: transparent;
    border: 2px solid var(--g5da-primary);
    color: var(--g5da-primary);
}

.g5da-btn-outline:hover {
    background: var(--g5da-primary);
    color: var(--g5da-bg);
}

/* Hamburger Menu */
.g5da-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 20px;
    cursor: pointer;
    padding: 0;
    background: transparent;
    border: none;
}

.g5da-hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--g5da-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.g5da-hamburger-active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.g5da-hamburger-active span:nth-child(2) {
    opacity: 0;
}

.g5da-hamburger-active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

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

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

.g5da-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.g5da-nav-list {
    list-style: none;
}

.g5da-nav-item {
    margin-bottom: 5px;
}

.g5da-nav-link {
    display: block;
    padding: 15px 10px;
    font-size: 1.6rem;
    color: var(--g5da-text-light);
    border-bottom: 1px solid rgba(210, 180, 140, 0.2);
    transition: all 0.3s ease;
}

.g5da-nav-link:hover {
    color: var(--g5da-primary);
    background: rgba(210, 180, 140, 0.1);
    padding-left: 15px;
}

/* Main Content */
.g5da-main {
    padding-top: var(--g5da-header-height);
    padding-bottom: calc(var(--g5da-bottom-nav-height) + 20px);
}

@media (min-width: 769px) {
    .g5da-main {
        padding-bottom: 20px;
    }
}

/* Carousel */
.g5da-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 20px;
}

.g5da-slides {
    position: relative;
    width: 100%;
}

.g5da-slide {
    display: none;
    width: 100%;
    cursor: pointer;
}

.g5da-slide-active {
    display: block;
}

.g5da-slide img {
    width: 100%;
    height: auto;
    border-radius: var(--g5da-radius);
}

.g5da-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 10px 0;
}

.g5da-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--g5da-text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

.g5da-dot-active {
    background: var(--g5da-primary);
    transform: scale(1.2);
}

/* Section Titles */
.g5da-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--g5da-primary);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--g5da-primary);
}

.g5da-section-subtitle {
    font-size: 1.6rem;
    color: var(--g5da-text-muted);
    margin-bottom: 20px;
}

/* Game Grid */
.g5da-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 25px;
}

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

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

.g5da-game-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--g5da-radius);
    margin-bottom: 5px;
    object-fit: cover;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.g5da-game-item:hover .g5da-game-img {
    border-color: var(--g5da-primary);
}

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

/* Category Section */
.g5da-category-section {
    margin-bottom: 30px;
}

.g5da-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.g5da-category-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--g5da-secondary);
}

.g5da-view-all {
    font-size: 1.3rem;
    color: var(--g5da-primary);
}

/* Cards */
.g5da-card {
    background: var(--g5da-bg-light);
    border-radius: var(--g5da-radius-lg);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(210, 180, 140, 0.2);
}

.g5da-card-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--g5da-primary);
    margin-bottom: 15px;
}

.g5da-card-text {
    font-size: 1.4rem;
    color: var(--g5da-text-light);
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Feature List */
.g5da-feature-list {
    list-style: none;
}

.g5da-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(169, 169, 169, 0.2);
}

.g5da-feature-item:last-child {
    border-bottom: none;
}

.g5da-feature-icon {
    color: var(--g5da-gold);
    font-size: 1.8rem;
    flex-shrink: 0;
}

.g5da-feature-text {
    font-size: 1.4rem;
    color: var(--g5da-text-light);
}

/* Testimonials */
.g5da-testimonial {
    background: var(--g5da-bg-light);
    border-radius: var(--g5da-radius-lg);
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid var(--g5da-primary);
}

.g5da-testimonial-text {
    font-size: 1.4rem;
    color: var(--g5da-text-light);
    font-style: italic;
    margin-bottom: 10px;
}

.g5da-testimonial-author {
    font-size: 1.3rem;
    color: var(--g5da-primary);
    font-weight: 600;
}

/* Payment Methods */
.g5da-payment-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.g5da-payment-item {
    background: var(--g5da-bg-light);
    padding: 10px 15px;
    border-radius: var(--g5da-radius);
    font-size: 1.3rem;
    color: var(--g5da-text-light);
    border: 1px solid rgba(210, 180, 140, 0.3);
}

/* Footer */
.g5da-footer {
    background: var(--g5da-bg-light);
    padding: 30px 15px 20px;
    border-top: 1px solid rgba(210, 180, 140, 0.2);
}

.g5da-footer-brand {
    text-align: center;
    margin-bottom: 20px;
}

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

.g5da-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.g5da-footer-link {
    font-size: 1.3rem;
    color: var(--g5da-text-light);
    padding: 5px 10px;
}

.g5da-footer-link:hover {
    color: var(--g5da-primary);
}

.g5da-footer-promo {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.g5da-footer-promo .g5da-btn {
    font-size: 1.2rem;
    padding: 6px 12px;
    min-height: 36px;
}

.g5da-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: var(--g5da-text-muted);
    padding-top: 15px;
    border-top: 1px solid rgba(169, 169, 169, 0.2);
}

/* Bottom Navigation */
.g5da-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--g5da-bottom-nav-height);
    background: linear-gradient(180deg, var(--g5da-bg-light) 0%, var(--g5da-bg) 100%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(210, 180, 140, 0.3);
}

@media (min-width: 769px) {
    .g5da-bottom-nav {
        display: none;
    }
}

.g5da-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 5px;
}

.g5da-nav-btn:hover {
    transform: scale(1.1);
}

.g5da-nav-btn:active {
    transform: scale(0.95);
}

.g5da-nav-btn .material-icons,
.g5da-nav-btn ion-icon {
    font-size: 24px;
    color: var(--g5da-text-muted);
    transition: color 0.3s ease;
}

.g5da-nav-btn .fas,
.g5da-nav-btn .far {
    font-size: 22px;
    color: var(--g5da-text-muted);
    transition: color 0.3s ease;
}

.g5da-nav-btn:hover .material-icons,
.g5da-nav-btn:hover ion-icon,
.g5da-nav-btn:hover .fas,
.g5da-nav-btn:hover .far {
    color: var(--g5da-primary);
}

.g5da-nav-btn.active .material-icons,
.g5da-nav-btn.active ion-icon,
.g5da-nav-btn.active .fas,
.g5da-nav-btn.active .far {
    color: var(--g5da-gold);
}

.g5da-nav-btn-text {
    font-size: 10px;
    color: var(--g5da-text-muted);
    margin-top: 3px;
    transition: color 0.3s ease;
}

.g5da-nav-btn:hover .g5da-nav-btn-text,
.g5da-nav-btn.active .g5da-nav-btn-text {
    color: var(--g5da-primary);
}

/* Promo Link Styles */
.g5da-promo-link {
    color: var(--g5da-gold);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.g5da-promo-link:hover {
    color: var(--g5da-primary);
    text-decoration: underline;
}

.g5da-promo-btn {
    display: inline-block;
    background: var(--g5da-gradient);
    color: var(--g5da-bg);
    padding: 12px 24px;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: var(--g5da-radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
}

.g5da-promo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(210, 180, 140, 0.5);
}

/* Winners Section */
.g5da-winners-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.g5da-winner-card {
    background: var(--g5da-bg-light);
    border-radius: var(--g5da-radius);
    padding: 12px;
    text-align: center;
}

.g5da-winner-game {
    font-size: 1.2rem;
    color: var(--g5da-primary);
    margin-bottom: 5px;
}

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

.g5da-winner-player {
    font-size: 1.1rem;
    color: var(--g5da-text-muted);
}

/* App Download Section */
.g5da-app-section {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(210, 180, 140, 0.1) 0%, rgba(222, 184, 135, 0.1) 100%);
    border-radius: var(--g5da-radius-lg);
    margin-bottom: 20px;
}

.g5da-app-title {
    font-size: 1.8rem;
    color: var(--g5da-primary);
    margin-bottom: 15px;
}

.g5da-app-text {
    font-size: 1.4rem;
    color: var(--g5da-text-light);
    margin-bottom: 20px;
}

.g5da-app-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

/* RTP Analysis */
.g5da-rtp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.g5da-rtp-item {
    background: var(--g5da-bg-light);
    border-radius: var(--g5da-radius);
    padding: 12px;
    text-align: center;
}

.g5da-rtp-label {
    font-size: 1.2rem;
    color: var(--g5da-text-muted);
    margin-bottom: 5px;
}

.g5da-rtp-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--g5da-gold);
}

/* FAQ Section */
.g5da-faq-item {
    background: var(--g5da-bg-light);
    border-radius: var(--g5da-radius);
    padding: 15px;
    margin-bottom: 10px;
}

.g5da-faq-question {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--g5da-primary);
    margin-bottom: 10px;
}

.g5da-faq-answer {
    font-size: 1.3rem;
    color: var(--g5da-text-light);
    line-height: 1.6;
}

/* Utility Classes */
.g5da-text-center {
    text-align: center;
}

.g5da-mb-10 {
    margin-bottom: 10px;
}

.g5da-mb-20 {
    margin-bottom: 20px;
}

.g5da-mb-30 {
    margin-bottom: 30px;
}

.g5da-mt-20 {
    margin-top: 20px;
}

.g5da-hidden {
    display: none;
}

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

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

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

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