/**
 * YYY7 Layout Styles
 * Website: yyy7.sbs
 * Prefix: g3a9-
 * All classes use g3a9- prefix for namespace isolation
 */

/* CSS Variables */
:root {
    --g3a9-primary: #FFB74D;
    --g3a9-secondary: #FFF176;
    --g3a9-accent: #FF69B4;
    --g3a9-bg-dark: #0D1117;
    --g3a9-bg-card: #161B22;
    --g3a9-text-light: #FFFFFF;
    --g3a9-text-muted: #8B949E;
    --g3a9-border: #30363D;
    --g3a9-gold: #FFB347;
    --g3a9-gradient: linear-gradient(135deg, #FFB74D 0%, #FF69B4 100%);
    --g3a9-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --g3a9-radius: 1.2rem;
}

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

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--g3a9-bg-dark);
    color: var(--g3a9-text-light);
    line-height: 1.5;
    font-size: 1.4rem;
    max-width: 430px;
    margin: 0 auto;
    min-height: 100vh;
}

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

.g3a9-wrapper {
    max-width: 430px;
    margin: 0 auto;
}

/* Header */
.g3a9-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    background: linear-gradient(180deg, var(--g3a9-bg-dark) 0%, rgba(13, 17, 23, 0.95) 100%);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0.8rem 1.2rem;
    border-bottom: 1px solid var(--g3a9-border);
}

.g3a9-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.g3a9-logo img {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 0.6rem;
}

.g3a9-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--g3a9-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.g3a9-header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.g3a9-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    border-radius: var(--g3a9-radius);
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    min-height: 44px;
    min-width: 44px;
    text-decoration: none;
}

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

.g3a9-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 183, 77, 0.4);
}

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

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

.g3a9-menu-toggle {
    background: transparent;
    border: none;
    color: var(--g3a9-text-light);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
}

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

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

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

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

.g3a9-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--g3a9-border);
}

.g3a9-menu-close {
    background: transparent;
    border: none;
    color: var(--g3a9-text-light);
    font-size: 2.4rem;
    cursor: pointer;
}

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

.g3a9-nav-item {
    margin-bottom: 0.5rem;
}

.g3a9-nav-link {
    display: block;
    padding: 1.2rem 1rem;
    color: var(--g3a9-text-light);
    text-decoration: none;
    border-radius: 0.8rem;
    transition: all 0.3s ease;
    font-size: 1.4rem;
}

.g3a9-nav-link:hover {
    background: var(--g3a9-primary);
    color: var(--g3a9-bg-dark);
}

/* Main Content */
main {
    padding-top: 6rem;
    padding-bottom: 8rem;
}

/* Hero/Carousel Section */
.g3a9-hero {
    position: relative;
    width: 100%;
    height: 20rem;
    overflow: hidden;
    margin-bottom: 2rem;
}

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

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

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

.g3a9-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 0 1.6rem 1.6rem;
}

/* Section Styles */
.g3a9-section {
    padding: 2rem 1.2rem;
    margin-bottom: 1.5rem;
}

.g3a9-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--g3a9-primary);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.g3a9-section-title i {
    font-size: 2rem;
}

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

.g3a9-game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

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

.g3a9-game-name {
    font-size: 1rem;
    text-align: center;
    color: var(--g3a9-text-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

/* Cards */
.g3a9-card {
    background: var(--g3a9-bg-card);
    border-radius: var(--g3a9-radius);
    padding: 1.6rem;
    margin-bottom: 1.2rem;
    border: 1px solid var(--g3a9-border);
}

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

.g3a9-card-text {
    font-size: 1.3rem;
    line-height: 1.6;
    color: var(--g3a9-text-muted);
}

/* Feature List */
.g3a9-feature-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.g3a9-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 183, 77, 0.1);
    border-radius: 0.8rem;
}

.g3a9-feature-icon {
    width: 4rem;
    height: 4rem;
    background: var(--g3a9-gradient);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.g3a9-feature-content h4 {
    font-size: 1.4rem;
    margin-bottom: 0.4rem;
    color: var(--g3a9-text-light);
}

.g3a9-feature-content p {
    font-size: 1.2rem;
    color: var(--g3a9-text-muted);
}

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

.g3a9-testimonial {
    background: var(--g3a9-bg-card);
    padding: 1.2rem;
    border-radius: 1rem;
    border-left: 4px solid var(--g3a9-primary);
}

.g3a9-testimonial-text {
    font-size: 1.3rem;
    color: var(--g3a9-text-light);
    margin-bottom: 0.8rem;
    font-style: italic;
}

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

/* Payment Methods */
.g3a9-payment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.g3a9-payment-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: var(--g3a9-bg-card);
    border-radius: 1rem;
    border: 1px solid var(--g3a9-border);
}

.g3a9-payment-icon {
    font-size: 2.4rem;
    margin-bottom: 0.5rem;
}

.g3a9-payment-name {
    font-size: 1.1rem;
    color: var(--g3a9-text-muted);
}

/* Winners Section */
.g3a9-winners-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.g3a9-winner-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--g3a9-bg-card);
    border-radius: 0.8rem;
    border: 1px solid var(--g3a9-border);
}

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

.g3a9-winner-game {
    width: 4rem;
    height: 4rem;
    border-radius: 0.8rem;
    object-fit: cover;
}

.g3a9-winner-name {
    font-size: 1.3rem;
    color: var(--g3a9-text-light);
}

.g3a9-winner-amount {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--g3a9-primary);
}

/* CTA Section */
.g3a9-cta {
    background: var(--g3a9-gradient);
    padding: 2rem 1.5rem;
    border-radius: var(--g3a9-radius);
    text-align: center;
    margin: 1.5rem 0;
}

.g3a9-cta-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--g3a9-bg-dark);
    margin-bottom: 0.8rem;
}

.g3a9-cta-text {
    font-size: 1.3rem;
    color: var(--g3a9-bg-dark);
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.g3a9-cta .g3a9-btn {
    background: var(--g3a9-bg-dark);
    color: var(--g3a9-primary);
    font-size: 1.5rem;
    padding: 1.2rem 3rem;
}

/* Footer */
.g3a9-footer {
    background: var(--g3a9-bg-card);
    padding: 2rem 1.2rem;
    padding-bottom: 8rem;
    border-top: 1px solid var(--g3a9-border);
}

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

.g3a9-footer-brand p {
    font-size: 1.2rem;
    color: var(--g3a9-text-muted);
    line-height: 1.6;
    margin-top: 1rem;
}

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

.g3a9-footer-link {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 183, 77, 0.15);
    color: var(--g3a9-primary);
    text-decoration: none;
    border-radius: 0.6rem;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.g3a9-footer-link:hover {
    background: var(--g3a9-primary);
    color: var(--g3a9-bg-dark);
}

.g3a9-footer-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.g3a9-footer-btn {
    padding: 0.8rem 1.6rem;
    background: var(--g3a9-gradient);
    color: var(--g3a9-bg-dark);
    border: none;
    border-radius: 0.8rem;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.g3a9-footer-btn:hover {
    transform: scale(1.05);
}

.g3a9-copyright {
    text-align: center;
    font-size: 1.1rem;
    color: var(--g3a9-text-muted);
    padding-top: 1rem;
    border-top: 1px solid var(--g3a9-border);
}

/* Bottom Navigation */
.g3a9-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(22, 27, 34, 0.98) 0%, var(--g3a9-bg-card) 100%);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 64px;
    border-top: 1px solid var(--g3a9-border);
}

.g3a9-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--g3a9-text-muted);
    cursor: pointer;
    padding: 0.5rem;
    min-width: 60px;
    min-height: 60px;
    transition: all 0.3s ease;
    text-decoration: none;
}

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

.g3a9-nav-btn i {
    font-size: 2.2rem;
    margin-bottom: 0.3rem;
}

.g3a9-nav-btn span {
    font-size: 1rem;
}

/* Utility Classes */
.g3a9-text-center { text-align: center; }
.g3a9-text-left { text-align: left; }
.g3a9-mb-1 { margin-bottom: 1rem; }
.g3a9-mb-2 { margin-bottom: 2rem; }
.g3a9-mt-1 { margin-top: 1rem; }
.g3a9-mt-2 { margin-top: 2rem; }

/* Internal Links */
.g3a9-internal-link {
    color: var(--g3a9-primary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px dashed var(--g3a9-primary);
    transition: all 0.3s ease;
}

.g3a9-internal-link:hover {
    color: var(--g3a9-secondary);
    border-bottom-color: var(--g3a9-secondary);
}

/* Promotional Links */
.g3a9-promo-link {
    color: var(--g3a9-accent);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

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

/* Responsive */
@media (min-width: 769px) {
    .g3a9-bottom-nav {
        display: none;
    }

    main {
        padding-bottom: 2rem;
    }

    .g3a9-footer {
        padding-bottom: 2rem;
    }
}

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

/* Animation */
@keyframes g3a9-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.g3a9-animate-pulse {
    animation: g3a9-pulse 2s infinite;
}

/* FAQ Accordion */
.g3a9-faq-item {
    background: var(--g3a9-bg-card);
    border-radius: 1rem;
    margin-bottom: 1rem;
    overflow: hidden;
    border: 1px solid var(--g3a9-border);
}

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

.g3a9-faq-answer {
    padding: 0 1.5rem 1.2rem;
    font-size: 1.3rem;
    color: var(--g3a9-text-muted);
    line-height: 1.6;
}

/* Safety Features */
.g3a9-safety-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.g3a9-safety-item {
    background: var(--g3a9-bg-card);
    padding: 1.2rem;
    border-radius: 1rem;
    text-align: center;
    border: 1px solid var(--g3a9-border);
}

.g3a9-safety-icon {
    font-size: 2.4rem;
    color: var(--g3a9-primary);
    margin-bottom: 0.5rem;
}

.g3a9-safety-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--g3a9-text-light);
}

/* App Download Section */
.g3a9-app-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.g3a9-app-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--g3a9-bg-card);
    border-radius: 0.8rem;
}

.g3a9-app-feature i {
    font-size: 2rem;
    color: var(--g3a9-primary);
}

/* RTP Display */
.g3a9-rtp-bar {
    background: var(--g3a9-bg-card);
    padding: 1rem;
    border-radius: 0.8rem;
    margin-bottom: 0.8rem;
}

.g3a9-rtp-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.g3a9-rtp-track {
    height: 0.8rem;
    background: var(--g3a9-border);
    border-radius: 0.4rem;
    overflow: hidden;
}

.g3a9-rtp-fill {
    height: 100%;
    background: var(--g3a9-gradient);
    border-radius: 0.4rem;
}
