/**
 * Royal Swerte - Main Stylesheet
 * Prefix: gc5e-
 * Color Palette: #0E1621 (dark bg) | #9370DB (accent)
 */

/* CSS Variables */
:root {
    --gc5e-bg-primary: #0E1621;
    --gc5e-bg-secondary: #151d2b;
    --gc5e-bg-tertiary: #1a2435;
    --gc5e-accent: #9370DB;
    --gc5e-accent-light: #a78ae7;
    --gc5e-accent-dark: #7b5bc7;
    --gc5e-text-primary: #ffffff;
    --gc5e-text-secondary: #b8c5d6;
    --gc5e-text-muted: #6b7a8f;
    --gc5e-border: #2a3547;
    --gc5e-success: #4ade80;
    --gc5e-warning: #fbbf24;
    --gc5e-danger: #ef4444;
    --gc5e-gradient: linear-gradient(135deg, #9370DB 0%, #7b5bc7 100%);
}

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

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

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--gc5e-bg-primary);
    color: var(--gc5e-text-primary);
    line-height: 1.5;
    min-height: 100vh;
}

/* Container */
.gc5e-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.gc5e-wrapper {
    padding: 1rem 0;
}

/* Header Styles */
.gc5e-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--gc5e-bg-primary) 0%, rgba(14, 22, 33, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gc5e-border);
    padding: 0.8rem 0;
}

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

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

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

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

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

.gc5e-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    min-height: 36px;
}

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

.gc5e-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(147, 112, 219, 0.4);
}

.gc5e-btn-secondary {
    background: transparent;
    color: var(--gc5e-accent);
    border: 1px solid var(--gc5e-accent);
}

.gc5e-btn-secondary:hover {
    background: rgba(147, 112, 219, 0.1);
}

.gc5e-menu-toggle {
    background: transparent;
    border: none;
    color: var(--gc5e-text-primary);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

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

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

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

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

.gc5e-nav-item {
    border-bottom: 1px solid var(--gc5e-border);
}

.gc5e-nav-link {
    display: block;
    padding: 1.2rem 0;
    color: var(--gc5e-text-secondary);
    text-decoration: none;
    font-size: 1.4rem;
    transition: color 0.3s ease;
}

.gc5e-nav-link:hover {
    color: var(--gc5e-accent);
}

.gc5e-nav-title {
    font-size: 1.2rem;
    color: var(--gc5e-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 1.5rem 0 0.8rem;
    margin-top: 0.5rem;
}

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

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

/* Carousel/Slider */
.gc5e-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin: 1rem 0;
}

.gc5e-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.gc5e-slide {
    min-width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: relative;
}

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

.gc5e-slide img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.gc5e-slide-dots {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem 0;
}

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

.gc5e-dot-active {
    background: var(--gc5e-accent);
    width: 20px;
    border-radius: 4px;
}

/* Section Styles */
.gc5e-section {
    padding: 2rem 0;
}

.gc5e-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gc5e-text-primary);
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1rem;
}

.gc5e-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gc5e-accent);
    border-radius: 2px;
}

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

.gc5e-game-card {
    background: var(--gc5e-bg-secondary);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--gc5e-border);
}

.gc5e-game-card:hover {
    transform: translateY(-3px);
    border-color: var(--gc5e-accent);
    box-shadow: 0 4px 15px rgba(147, 112, 219, 0.3);
}

.gc5e-game-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.gc5e-game-name {
    display: block;
    padding: 0.6rem 0.4rem;
    font-size: 1rem;
    color: var(--gc5e-text-secondary);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Cards */
.gc5e-card {
    background: var(--gc5e-bg-secondary);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--gc5e-border);
    margin-bottom: 1rem;
}

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

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

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

.gc5e-promo-link:hover {
    color: var(--gc5e-accent-light);
    text-decoration: underline;
}

.gc5e-promo-btn {
    display: inline-block;
    background: var(--gc5e-gradient);
    color: var(--gc5e-text-primary);
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.4rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.gc5e-promo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(147, 112, 219, 0.4);
}

/* Footer */
.gc5e-footer {
    background: var(--gc5e-bg-secondary);
    border-top: 1px solid var(--gc5e-border);
    padding: 2rem 0;
    margin-top: 2rem;
}

.gc5e-footer-brand {
    text-align: center;
    margin-bottom: 1.5rem;
}

.gc5e-footer-desc {
    font-size: 1.2rem;
    color: var(--gc5e-text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

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

.gc5e-footer-link {
    color: var(--gc5e-text-secondary);
    text-decoration: none;
    font-size: 1.2rem;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.gc5e-footer-link:hover {
    color: var(--gc5e-accent);
    background: rgba(147, 112, 219, 0.1);
}

.gc5e-footer-promos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

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

/* Bottom Navigation - Mobile Only */
.gc5e-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(180deg, var(--gc5e-bg-secondary) 0%, var(--gc5e-bg-primary) 100%);
    border-top: 1px solid var(--gc5e-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding: 0 0.5rem;
}

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

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

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

.gc5e-nav-btn i,
.gc5e-nav-btn .material-icons {
    font-size: 24px;
}

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

/* Utility Classes */
.gc5e-text-center { text-align: center; }
.gc5e-text-accent { color: var(--gc5e-accent); }
.gc5e-mt-1 { margin-top: 0.5rem; }
.gc5e-mt-2 { margin-top: 1rem; }
.gc5e-mb-1 { margin-bottom: 0.5rem; }
.gc5e-mb-2 { margin-bottom: 1rem; }
.gc5e-hidden { display: none; }

/* Lists */
.gc5e-list {
    list-style: none;
    padding: 0;
}

.gc5e-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--gc5e-border);
    font-size: 1.3rem;
    color: var(--gc5e-text-secondary);
}

.gc5e-list li:last-child {
    border-bottom: none;
}

/* H Tags */
h1, h2, h3, h4, h5, h6 {
    color: var(--gc5e-text-primary);
    line-height: 1.4;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.3rem; }

/* Animations */
@keyframes gc5e-fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.gc5e-loaded .gc5e-section {
    animation: gc5e-fadeIn 0.5s ease forwards;
}

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

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

.gc5e-faq-answer {
    padding: 0 1.2rem 1rem;
    font-size: 1.2rem;
    color: var(--gc5e-text-secondary);
    line-height: 1.6;
}

/* Feature Grid */
.gc5e-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.gc5e-feature-item {
    background: var(--gc5e-bg-secondary);
    border-radius: 10px;
    padding: 1.2rem;
    text-align: center;
    border: 1px solid var(--gc5e-border);
    transition: all 0.3s ease;
}

.gc5e-feature-item:hover {
    border-color: var(--gc5e-accent);
}

.gc5e-feature-icon {
    font-size: 2.4rem;
    color: var(--gc5e-accent);
    margin-bottom: 0.8rem;
}

.gc5e-feature-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gc5e-text-primary);
    margin-bottom: 0.4rem;
}

.gc5e-feature-desc {
    font-size: 1.1rem;
    color: var(--gc5e-text-muted);
}

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

.gc5e-payment-item {
    background: var(--gc5e-bg-tertiary);
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    font-size: 1.2rem;
    color: var(--gc5e-text-secondary);
    border: 1px solid var(--gc5e-border);
}

/* Testimonials */
.gc5e-testimonial {
    background: var(--gc5e-bg-secondary);
    border-radius: 10px;
    padding: 1.2rem;
    margin-bottom: 1rem;
    border-left: 3px solid var(--gc5e-accent);
}

.gc5e-testimonial-text {
    font-size: 1.2rem;
    color: var(--gc5e-text-secondary);
    line-height: 1.5;
    margin-bottom: 0.8rem;
}

.gc5e-testimonial-author {
    font-size: 1.1rem;
    color: var(--gc5e-accent);
    font-weight: 600;
}

/* Winners Showcase */
.gc5e-winner-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem;
    background: var(--gc5e-bg-secondary);
    border-radius: 8px;
    margin-bottom: 0.6rem;
}

.gc5e-winner-name {
    font-size: 1.2rem;
    color: var(--gc5e-text-primary);
}

.gc5e-winner-amount {
    font-size: 1.2rem;
    color: var(--gc5e-success);
    font-weight: 700;
}

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

    .gc5e-feature-grid {
        grid-template-columns: 1fr;
    }
}
