/**
 * Milyon Casino - Core Stylesheet
 * Prefix: g51d-
 * Color Palette: #0E1621 | #FF5722 | #4DB6AC | #48D1CC | #C0C0C0
 */

/* CSS Variables */
:root {
    --g51d-bg-dark: #0E1621;
    --g51d-primary: #FF5722;
    --g51d-accent1: #4DB6AC;
    --g51d-accent2: #48D1CC;
    --g51d-text-light: #C0C0C0;
    --g51d-white: #FFFFFF;
    --g51d-black: #000000;
    --g51d-gradient: linear-gradient(135deg, #FF5722 0%, #4DB6AC 100%);
    --g51d-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --g51d-radius: 8px;
    --g51d-radius-lg: 16px;
}

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

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

body {
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    background-color: var(--g51d-bg-dark);
    color: var(--g51d-text-light);
    line-height: 1.5rem;
    min-height: 100vh;
    overflow-x: hidden;
}

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

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

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

/* Header */
.g51d-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--g51d-bg-dark) 0%, rgba(14, 22, 33, 0.95) 100%);
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(255, 87, 34, 0.3);
    transition: all 0.3s ease;
}

.g51d-header-scrolled {
    background: rgba(14, 22, 33, 0.98);
    box-shadow: var(--g51d-shadow);
}

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

.g51d-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.g51d-logo img {
    width: 28px;
    height: 28px;
}

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

.g51d-header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

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

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

.g51d-btn-primary:hover {
    background: #E64A19;
    transform: translateY(-2px);
}

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

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

.g51d-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    color: var(--g51d-white);
    font-size: 2rem;
    cursor: pointer;
}

/* Mobile Menu */
.g51d-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--g51d-bg-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 6rem 1.5rem 2rem;
    border-left: 1px solid rgba(255, 87, 34, 0.3);
}

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

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

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

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

.g51d-nav-item {
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.g51d-nav-item a {
    font-size: 1.4rem;
    color: var(--g51d-text-light);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: color 0.3s ease;
}

.g51d-nav-item a:hover {
    color: var(--g51d-primary);
}

/* Main Content */
.g51d-main {
    padding-top: 60px;
    padding-bottom: 80px;
}

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

/* Hero Carousel */
.g51d-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 0 0 var(--g51d-radius-lg) var(--g51d-radius-lg);
}

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

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

.g51d-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Section Styles */
.g51d-section {
    padding: 2rem 1.2rem;
}

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

.g51d-section-title i {
    color: var(--g51d-primary);
}

/* Game Grid */
.g51d-game-section {
    margin-bottom: 2rem;
}

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

.g51d-game-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--g51d-radius);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.g51d-game-card:hover {
    transform: translateY(-3px);
    border-color: var(--g51d-primary);
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.3);
}

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

.g51d-game-name {
    padding: 0.5rem;
    font-size: 1rem;
    color: var(--g51d-text-light);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Category Label */
.g51d-category-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(255, 87, 34, 0.2);
    color: var(--g51d-primary);
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 1rem;
}

/* Info Cards */
.g51d-info-card {
    background: linear-gradient(145deg, rgba(77, 182, 172, 0.1) 0%, rgba(14, 22, 33, 0.8) 100%);
    border: 1px solid rgba(77, 182, 172, 0.3);
    border-radius: var(--g51d-radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.g51d-info-card h3 {
    font-size: 1.4rem;
    color: var(--g51d-accent1);
    margin-bottom: 0.8rem;
}

.g51d-info-card p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--g51d-text-light);
}

/* Feature List */
.g51d-feature-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.g51d-feature-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--g51d-radius);
}

.g51d-feature-item i {
    color: var(--g51d-accent2);
    font-size: 1.6rem;
}

.g51d-feature-item span {
    font-size: 1.1rem;
    color: var(--g51d-text-light);
}

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

.g51d-promo-cta h3 {
    font-size: 1.6rem;
    color: var(--g51d-white);
    margin-bottom: 0.8rem;
}

.g51d-promo-cta p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.2rem;
}

/* Testimonials */
.g51d-testimonial {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--g51d-radius);
    padding: 1.2rem;
    margin-bottom: 1rem;
    border-left: 3px solid var(--g51d-primary);
}

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

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

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

.g51d-payment-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--g51d-radius);
    font-size: 1.1rem;
    color: var(--g51d-text-light);
}

/* Footer */
.g51d-footer {
    background: linear-gradient(180deg, rgba(14, 22, 33, 0.95) 0%, var(--g51d-bg-dark) 100%);
    padding: 2rem 1rem;
    border-top: 1px solid rgba(255, 87, 34, 0.3);
}

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

.g51d-footer-brand p {
    font-size: 1.1rem;
    color: var(--g51d-text-light);
    line-height: 1.6;
    margin-top: 0.8rem;
}

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

.g51d-footer-links a {
    padding: 0.5rem 1rem;
    background: rgba(255, 87, 34, 0.2);
    color: var(--g51d-primary);
    font-size: 1.1rem;
    border-radius: var(--g51d-radius);
    transition: all 0.3s ease;
}

.g51d-footer-links a:hover {
    background: var(--g51d-primary);
    color: var(--g51d-white);
}

.g51d-footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.g51d-footer-nav a {
    font-size: 1.1rem;
    color: var(--g51d-text-light);
    transition: color 0.3s ease;
}

.g51d-footer-nav a:hover {
    color: var(--g51d-accent1);
}

.g51d-copyright {
    text-align: center;
    font-size: 1rem;
    color: rgba(192, 192, 192, 0.7);
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Bottom Navigation - Mobile */
.g51d-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(180deg, rgba(14, 22, 33, 0.98) 0%, var(--g51d-bg-dark) 100%);
    border-top: 1px solid rgba(255, 87, 34, 0.4);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
}

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

.g51d-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(--g51d-text-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.g51d-nav-btn i {
    font-size: 2.2rem;
    margin-bottom: 0.2rem;
}

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

/* Utility Classes */
.g51d-text-primary {
    color: var(--g51d-primary);
}

.g51d-text-accent {
    color: var(--g51d-accent1);
}

.g51d-mb-1 { margin-bottom: 1rem; }
.g51d-mb-2 { margin-bottom: 2rem; }
.g51d-mt-1 { margin-top: 1rem; }
.g51d-mt-2 { margin-top: 2rem; }

/* Touch Active State */
.g51d-touch-active {
    opacity: 0.8;
    transform: scale(0.98);
}

/* Winner Showcase */
.g51d-winner-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--g51d-radius);
    margin-bottom: 0.6rem;
}

.g51d-winner-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.g51d-winner-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--g51d-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--g51d-white);
    font-weight: 600;
}

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

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

/* Internal Links */
.g51d-internal-link {
    color: var(--g51d-accent2);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.g51d-internal-link:hover {
    color: var(--g51d-accent1);
}

/* FAQ Section */
.g51d-faq-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--g51d-radius);
    padding: 1rem;
    margin-bottom: 0.8rem;
}

.g51d-faq-question {
    font-size: 1.3rem;
    color: var(--g51d-accent1);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.g51d-faq-answer {
    font-size: 1.1rem;
    color: var(--g51d-text-light);
    line-height: 1.5;
}

/* App Download CTA */
.g51d-app-cta {
    background: linear-gradient(135deg, rgba(255, 87, 34, 0.2) 0%, rgba(77, 182, 172, 0.2) 100%);
    border-radius: var(--g51d-radius-lg);
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(255, 87, 34, 0.3);
}

.g51d-app-cta h4 {
    font-size: 1.4rem;
    color: var(--g51d-white);
    margin-bottom: 0.8rem;
}

.g51d-app-cta p {
    font-size: 1.1rem;
    color: var(--g51d-text-light);
    margin-bottom: 1rem;
}

.g51d-app-buttons {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
}

/* Partners */
.g51d-partners {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 1rem 0;
}

.g51d-partner-logo {
    width: 60px;
    height: 30px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.g51d-partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}
