/**
 * Fair Play Casino - Main Stylesheet
 * CSS classes use v99c- prefix for namespace isolation
 * Mobile-first responsive design with max-width 430px
 * Color palette: #1E1E1E (dark bg), #F8F9FA (light text), #8B0000 (accent)
 */

/* CSS Variables */
:root {
    --v99c-primary: #8B0000;
    --v99c-primary-light: #B22222;
    --v99c-primary-dark: #5C0000;
    --v99c-bg: #1E1E1E;
    --v99c-bg-light: #2A2A2A;
    --v99c-bg-card: #333333;
    --v99c-text: #F8F9FA;
    --v99c-text-muted: #B0B0B0;
    --v99c-text-dark: #888888;
    --v99c-border: #444444;
    --v99c-success: #28A745;
    --v99c-warning: #FFC107;
    --v99c-gold: #FFD700;
    --v99c-gradient: linear-gradient(135deg, var(--v99c-primary) 0%, var(--v99c-primary-dark) 100%);
    --v99c-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --v99c-radius: 8px;
    --v99c-radius-lg: 12px;
    --v99c-transition: all 0.3s ease;
}

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

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

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
    font-size: 1.6rem;
    line-height: 1.5;
    color: var(--v99c-text);
    background-color: var(--v99c-bg);
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--v99c-text);
    text-decoration: none;
    transition: var(--v99c-transition);
}

a:hover {
    color: var(--v99c-gold);
}

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

ul, ol {
    list-style: none;
}

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

.v99c-wrapper {
    padding-top: 7rem;
    padding-bottom: 8rem;
}

@media (min-width: 769px) {
    .v99c-container {
        max-width: 1200px;
    }

    .v99c-wrapper {
        padding-bottom: 2rem;
    }
}

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

.v99c-header-scrolled {
    background: rgba(30, 30, 30, 0.98);
    box-shadow: var(--v99c-shadow);
}

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

@media (min-width: 769px) {
    .v99c-header-content {
        max-width: 1200px;
    }
}

.v99c-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.v99c-logo img {
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 50%;
}

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

.v99c-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.v99c-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    font-size: 1.3rem;
    font-weight: 600;
    border-radius: var(--v99c-radius);
    cursor: pointer;
    transition: var(--v99c-transition);
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.v99c-btn-primary {
    background: var(--v99c-gradient);
    color: var(--v99c-text);
    box-shadow: 0 2px 8px rgba(139, 0, 0, 0.4);
}

.v99c-btn-primary:hover {
    background: linear-gradient(135deg, var(--v99c-primary-light) 0%, var(--v99c-primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.5);
    color: var(--v99c-text);
}

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

.v99c-btn-outline:hover {
    background: var(--v99c-gold);
    color: var(--v99c-bg);
}

.v99c-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--v99c-text);
    font-size: 2.4rem;
}

@media (min-width: 769px) {
    .v99c-menu-toggle {
        display: none;
    }
}

/* Desktop Navigation */
.v99c-desktop-nav {
    display: none;
}

@media (min-width: 769px) {
    .v99c-desktop-nav {
        display: flex;
        align-items: center;
        gap: 2rem;
    }

    .v99c-desktop-nav a {
        font-size: 1.4rem;
        font-weight: 500;
        padding: 0.5rem 0;
        position: relative;
    }

    .v99c-desktop-nav a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--v99c-gold);
        transition: var(--v99c-transition);
    }

    .v99c-desktop-nav a:hover::after {
        width: 100%;
    }
}

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

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

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

.v99c-mobile-menu-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--v99c-gold);
}

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

.v99c-mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.v99c-mobile-nav a {
    display: block;
    padding: 1.2rem 1rem;
    font-size: 1.5rem;
    font-weight: 500;
    border-radius: var(--v99c-radius);
    transition: var(--v99c-transition);
}

.v99c-mobile-nav a:hover {
    background: var(--v99c-bg-card);
    color: var(--v99c-gold);
}

/* Menu Overlay */
.v99c-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: var(--v99c-transition);
}

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

/* Carousel/Slider */
.v99c-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--v99c-radius-lg);
    margin-bottom: 2rem;
}

.v99c-carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.v99c-slide {
    min-width: 100%;
    cursor: pointer;
}

.v99c-slide img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.v99c-carousel-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
}

.v99c-indicator {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--v99c-transition);
}

.v99c-indicator-active {
    background: var(--v99c-gold);
    transform: scale(1.2);
}

/* Sections */
.v99c-section {
    padding: 2rem 0;
}

.v99c-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--v99c-gold);
    margin-bottom: 1.5rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.v99c-section-subtitle {
    font-size: 1.4rem;
    color: var(--v99c-text-muted);
    text-align: center;
    margin-bottom: 2rem;
}

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

@media (min-width: 769px) {
    .v99c-game-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.v99c-game-card {
    background: var(--v99c-bg-card);
    border-radius: var(--v99c-radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--v99c-transition);
    border: 1px solid var(--v99c-border);
}

.v99c-game-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--v99c-shadow);
    border-color: var(--v99c-primary);
}

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

.v99c-game-name {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--v99c-text);
    padding: 0.6rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Category Tabs */
.v99c-category-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--v99c-text);
    margin: 2rem 0 1rem;
    padding-left: 1rem;
    border-left: 3px solid var(--v99c-primary);
}

/* Features Grid */
.v99c-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (min-width: 769px) {
    .v99c-features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.v99c-feature-card {
    background: var(--v99c-bg-card);
    padding: 1.5rem;
    border-radius: var(--v99c-radius-lg);
    text-align: center;
    border: 1px solid var(--v99c-border);
    transition: var(--v99c-transition);
}

.v99c-feature-card:hover {
    border-color: var(--v99c-primary);
    transform: translateY(-2px);
}

.v99c-feature-icon {
    font-size: 3rem;
    color: var(--v99c-gold);
    margin-bottom: 1rem;
}

.v99c-feature-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--v99c-text);
    margin-bottom: 0.5rem;
}

.v99c-feature-desc {
    font-size: 1.2rem;
    color: var(--v99c-text-muted);
    line-height: 1.4;
}

/* Content Box */
.v99c-content-box {
    background: var(--v99c-bg-card);
    padding: 2rem;
    border-radius: var(--v99c-radius-lg);
    margin-bottom: 2rem;
    border: 1px solid var(--v99c-border);
}

.v99c-content-box h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--v99c-gold);
    margin-bottom: 1rem;
}

.v99c-content-box h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--v99c-text);
    margin: 1.5rem 0 0.8rem;
}

.v99c-content-box p {
    font-size: 1.4rem;
    color: var(--v99c-text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.v99c-content-box ul {
    padding-left: 2rem;
}

.v99c-content-box li {
    font-size: 1.4rem;
    color: var(--v99c-text-muted);
    line-height: 1.6;
    margin-bottom: 0.5rem;
    list-style: disc;
}

/* Promo Link */
.v99c-promo-link {
    color: var(--v99c-gold);
    font-weight: 600;
    cursor: pointer;
    transition: var(--v99c-transition);
}

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

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

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

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

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

.v99c-footer-links a {
    font-size: 1.2rem;
    color: var(--v99c-text-muted);
    padding: 0.5rem 1rem;
    background: var(--v99c-bg-card);
    border-radius: var(--v99c-radius);
    transition: var(--v99c-transition);
}

.v99c-footer-links a:hover {
    color: var(--v99c-gold);
    background: var(--v99c-bg);
}

.v99c-footer-partners {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.v99c-footer-partners img {
    height: 3rem;
    opacity: 0.7;
    transition: var(--v99c-transition);
}

.v99c-footer-partners img:hover {
    opacity: 1;
}

.v99c-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: var(--v99c-text-dark);
    padding-top: 1.5rem;
    border-top: 1px solid var(--v99c-border);
}

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

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

.v99c-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 6rem;
    min-height: 6rem;
    padding: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: var(--v99c-transition);
    color: var(--v99c-text-muted);
}

.v99c-nav-btn:hover,
.v99c-nav-btn-active {
    color: var(--v99c-gold);
    transform: scale(1.1);
}

.v99c-nav-btn i,
.v99c-nav-btn .material-icons-outlined {
    font-size: 2.4rem;
    margin-bottom: 0.3rem;
}

.v99c-nav-btn ion-icon {
    font-size: 2.6rem;
    margin-bottom: 0.3rem;
}

.v99c-nav-btn span {
    font-size: 1rem;
    font-weight: 500;
}

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

.v99c-testimonial {
    background: var(--v99c-bg-card);
    padding: 1.5rem;
    border-radius: var(--v99c-radius-lg);
    border-left: 3px solid var(--v99c-primary);
}

.v99c-testimonial-text {
    font-size: 1.3rem;
    color: var(--v99c-text-muted);
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.5;
}

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

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

.v99c-payment-item {
    background: var(--v99c-bg-card);
    padding: 1rem 1.5rem;
    border-radius: var(--v99c-radius);
    font-size: 1.3rem;
    color: var(--v99c-text);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Winners Showcase */
.v99c-winners-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

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

.v99c-winner-avatar {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: var(--v99c-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--v99c-text);
}

.v99c-winner-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--v99c-text);
}

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

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

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

.v99c-cta-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--v99c-text);
    margin-bottom: 1rem;
}

.v99c-cta-desc {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.v99c-cta-btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--v99c-gold);
    color: var(--v99c-bg);
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: var(--v99c-radius-lg);
    cursor: pointer;
    transition: var(--v99c-transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.v99c-cta-btn:hover {
    background: #FFE44D;
    transform: scale(1.05);
    color: var(--v99c-bg);
}

/* RTP Stats */
.v99c-rtp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.v99c-rtp-item {
    background: var(--v99c-bg-card);
    padding: 1.2rem;
    border-radius: var(--v99c-radius);
    text-align: center;
}

.v99c-rtp-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--v99c-success);
}

.v99c-rtp-label {
    font-size: 1.1rem;
    color: var(--v99c-text-muted);
    margin-top: 0.3rem;
}

/* FAQ Section */
.v99c-faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.v99c-faq-item {
    background: var(--v99c-bg-card);
    padding: 1.5rem;
    border-radius: var(--v99c-radius);
}

.v99c-faq-question {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--v99c-gold);
    margin-bottom: 0.8rem;
}

.v99c-faq-answer {
    font-size: 1.3rem;
    color: var(--v99c-text-muted);
    line-height: 1.5;
}

/* Responsive utilities */
@media (max-width: 768px) {
    main {
        padding-bottom: 8rem;
    }
}

/* Hide on mobile */
@media (max-width: 768px) {
    .v99c-hide-mobile {
        display: none !important;
    }
}

/* Hide on desktop */
@media (min-width: 769px) {
    .v99c-hide-desktop {
        display: none !important;
    }
}
