/**
 * Solitaire PH - Main CSS Design System
 * Prefix: v84f-
 * Color Palette: #FF9500 | #0C0C0C | #4A4A4A | #BC8F8F | #6F4E37
 */

/* ============================================
   CSS Variables & Root Configuration
   ============================================ */
:root {
    --v84f-primary: #FF9500;
    --v84f-primary-dark: #E68600;
    --v84f-primary-light: #FFB340;
    --v84f-bg-dark: #0C0C0C;
    --v84f-bg-card: #1A1A1A;
    --v84f-bg-elevated: #252525;
    --v84f-text-primary: #FFFFFF;
    --v84f-text-secondary: #BC8F8F;
    --v84f-text-muted: #4A4A4A;
    --v84f-accent: #6F4E37;
    --v84f-accent-light: #8B6914;
    --v84f-gold: #FFD700;
    --v84f-success: #28A745;
    --v84f-error: #DC3545;
    --v84f-border: rgba(255, 149, 0, 0.2);
    --v84f-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    --v84f-shadow-glow: 0 0 30px rgba(255, 149, 0, 0.3);
    --v84f-radius-sm: 6px;
    --v84f-radius-md: 12px;
    --v84f-radius-lg: 20px;
    --v84f-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --v84f-font-display: 'Playfair Display', 'Georgia', serif;
    --v84f-font-body: 'Crimson Text', 'Times New Roman', serif;
    --v84f-font-accent: 'Cinzel', 'Times New Roman', serif;
}

/* ============================================
   Base Reset & Typography
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--v84f-font-body);
    background: var(--v84f-bg-dark);
    color: var(--v84f-text-primary);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    background-image:
        radial-gradient(ellipse at top, rgba(255, 149, 0, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(111, 78, 55, 0.08) 0%, transparent 50%);
}

body.v84f-loaded {
    opacity: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--v84f-font-display);
    font-weight: 700;
    line-height: 1.3;
    color: var(--v84f-text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: clamp(1.1rem, 2.5vw, 1.25rem); }

a {
    color: var(--v84f-primary);
    text-decoration: none;
    transition: var(--v84f-transition);
}

a:hover {
    color: var(--v84f-primary-light);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   Layout Utilities
   ============================================ */
.v84f-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    overflow-x: hidden;
}

.v84f-wrapper {
    padding: 60px 0;
}

.v84f-grid {
    display: grid;
    gap: 20px;
}

.v84f-flex {
    display: flex;
    align-items: center;
    gap: 16px;
}

.v84f-section {
    padding: 80px 0;
    position: relative;
}

.v84f-section-title {
    text-align: center;
    margin-bottom: 50px;
}

.v84f-section-title h2 {
    display: inline-block;
    position: relative;
    padding-bottom: 15px;
}

.v84f-section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--v84f-primary), transparent);
}

/* ============================================
   Header & Navigation
   ============================================ */
.v84f-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(12, 12, 12, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--v84f-border);
    transition: var(--v84f-transition);
}

.v84f-header-scrolled {
    background: rgba(12, 12, 12, 0.98);
    box-shadow: var(--v84f-shadow);
}

.v84f-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.v84f-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.v84f-logo img {
    width: 32px;
    height: 32px;
    border-radius: var(--v84f-radius-sm);
}

.v84f-logo-text {
    font-family: var(--v84f-font-accent);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--v84f-primary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.v84f-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.v84f-nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.v84f-nav-menu a {
    display: block;
    padding: 10px 16px;
    color: var(--v84f-text-secondary);
    font-size: 0.95rem;
    border-radius: var(--v84f-radius-sm);
    transition: var(--v84f-transition);
}

.v84f-nav-menu a:hover {
    color: var(--v84f-primary);
    background: rgba(255, 149, 0, 0.1);
    text-decoration: none;
}

.v84f-nav-btns {
    display: flex;
    gap: 12px;
}

.v84f-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 1001;
}

.v84f-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--v84f-primary);
    transition: var(--v84f-transition);
}

.v84f-hamburger-active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.v84f-hamburger-active span:nth-child(2) {
    opacity: 0;
}

.v84f-hamburger-active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   Buttons
   ============================================ */
.v84f-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--v84f-font-accent);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: var(--v84f-radius-md);
    cursor: pointer;
    transition: var(--v84f-transition);
    text-decoration: none;
}

.v84f-btn-primary, .v84f-btn-promo {
    background: linear-gradient(135deg, var(--v84f-primary), var(--v84f-primary-dark));
    color: var(--v84f-bg-dark);
    box-shadow: 0 4px 15px rgba(255, 149, 0, 0.4);
}

.v84f-btn-primary:hover, .v84f-btn-promo:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 149, 0, 0.5);
    text-decoration: none;
    color: var(--v84f-bg-dark);
}

.v84f-btn-secondary {
    background: transparent;
    color: var(--v84f-primary);
    border: 2px solid var(--v84f-primary);
}

.v84f-btn-secondary:hover {
    background: var(--v84f-primary);
    color: var(--v84f-bg-dark);
    text-decoration: none;
}

.v84f-btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

.v84f-btn-lg {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.v84f-promo-link {
    color: var(--v84f-primary);
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
}

.v84f-promo-link:hover {
    color: var(--v84f-gold);
}

/* ============================================
   Cards & Game Grid
   ============================================ */
.v84f-card {
    background: var(--v84f-bg-card);
    border-radius: var(--v84f-radius-md);
    border: 1px solid var(--v84f-border);
    overflow: hidden;
    transition: var(--v84f-transition);
}

.v84f-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--v84f-shadow-glow);
    border-color: var(--v84f-primary);
}

.v84f-game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
}

.v84f-game-card {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--v84f-radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: var(--v84f-transition);
    background: var(--v84f-bg-card);
}

.v84f-game-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
    z-index: 1;
    opacity: 0;
    transition: var(--v84f-transition);
}

.v84f-game-card:hover {
    transform: scale(1.05);
    box-shadow: var(--v84f-shadow-glow);
}

.v84f-game-card:hover::before {
    opacity: 1;
}

.v84f-game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.v84f-game-card-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
    color: var(--v84f-text-primary);
    z-index: 2;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--v84f-transition);
}

.v84f-game-card:hover .v84f-game-card-name {
    opacity: 1;
    transform: translateY(0);
}

.v84f-game-section {
    margin-bottom: 40px;
}

.v84f-game-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--v84f-border);
}

.v84f-game-section-title i {
    color: var(--v84f-primary);
    font-size: 1.3rem;
}

.v84f-game-section-title h3 {
    font-size: 1.2rem;
    color: var(--v84f-text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ============================================
   Hero Section
   ============================================ */
.v84f-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.v84f-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 149, 0, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(111, 78, 55, 0.2) 0%, transparent 40%);
    z-index: 0;
}

.v84f-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.v84f-hero h1 {
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--v84f-text-primary), var(--v84f-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.v84f-hero p {
    font-size: 1.2rem;
    color: var(--v84f-text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   Game Iframe
   ============================================ */
.v84f-iframe-wrapper {
    position: relative;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto 40px;
    border-radius: var(--v84f-radius-lg);
    overflow: hidden;
    box-shadow: var(--v84f-shadow-glow);
    border: 2px solid var(--v84f-primary);
}

.v84f-iframe-wrapper iframe {
    width: 100%;
    height: 800px;
    border: none;
    display: block;
    overflow: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.v84f-iframe-wrapper iframe::-webkit-scrollbar {
    display: none;
}

/* ============================================
   Footer
   ============================================ */
.v84f-footer {
    background: var(--v84f-bg-card);
    border-top: 1px solid var(--v84f-border);
    padding: 60px 0 100px;
}

.v84f-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.v84f-footer-section h4 {
    color: var(--v84f-primary);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.v84f-footer-links {
    list-style: none;
}

.v84f-footer-links li {
    margin-bottom: 10px;
}

.v84f-footer-links a {
    color: var(--v84f-text-secondary);
    font-size: 0.95rem;
}

.v84f-footer-links a:hover {
    color: var(--v84f-primary);
}

.v84f-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    padding: 30px 0;
    border-top: 1px solid var(--v84f-border);
    border-bottom: 1px solid var(--v84f-border);
    margin-bottom: 30px;
}

.v84f-partners img {
    height: 30px;
    width: auto;
    opacity: 0.6;
    transition: var(--v84f-transition);
    filter: grayscale(50%);
}

.v84f-partners img:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.v84f-copyright {
    text-align: center;
    color: var(--v84f-text-muted);
    font-size: 0.9rem;
}

/* ============================================
   Mobile Bottom Navigation
   ============================================ */
.v84f-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(12, 12, 12, 0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--v84f-border);
    padding: 8px 0;
    z-index: 999;
    height: 64px;
}

.v84f-bottom-nav-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
}

.v84f-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    color: var(--v84f-text-muted);
    text-decoration: none;
    transition: var(--v84f-transition);
    cursor: pointer;
}

.v84f-bottom-nav-item i {
    font-size: 22px;
}

.v84f-bottom-nav-item span {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.v84f-bottom-nav-item:hover,
.v84f-bottom-nav-item.v84f-bottom-nav-active {
    color: var(--v84f-primary);
}

.v84f-bottom-nav-item:active {
    transform: scale(0.95);
}

/* ============================================
   Accordion & FAQ
   ============================================ */
.v84f-accordion-item {
    background: var(--v84f-bg-card);
    border: 1px solid var(--v84f-border);
    border-radius: var(--v84f-radius-md);
    margin-bottom: 12px;
    overflow: hidden;
}

.v84f-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    cursor: pointer;
    transition: var(--v84f-transition);
}

.v84f-accordion-header:hover {
    background: rgba(255, 149, 0, 0.05);
}

.v84f-accordion-header h4 {
    font-size: 1rem;
    color: var(--v84f-text-primary);
}

.v84f-accordion-icon {
    color: var(--v84f-primary);
    transition: var(--v84f-transition);
}

.v84f-accordion-open .v84f-accordion-icon {
    transform: rotate(180deg);
}

.v84f-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.v84f-accordion-open .v84f-accordion-content {
    max-height: 500px;
}

.v84f-accordion-body {
    padding: 0 24px 24px;
    color: var(--v84f-text-secondary);
}

/* ============================================
   Feature Cards
   ============================================ */
.v84f-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.v84f-feature-card {
    background: var(--v84f-bg-card);
    border: 1px solid var(--v84f-border);
    border-radius: var(--v84f-radius-lg);
    padding: 30px;
    text-align: center;
    transition: var(--v84f-transition);
}

.v84f-feature-card:hover {
    border-color: var(--v84f-primary);
    transform: translateY(-5px);
    box-shadow: var(--v84f-shadow-glow);
}

.v84f-feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 149, 0, 0.2), rgba(111, 78, 55, 0.2));
    border-radius: 50%;
    font-size: 28px;
    color: var(--v84f-primary);
}

.v84f-feature-card h3 {
    margin-bottom: 12px;
    color: var(--v84f-text-primary);
}

.v84f-feature-card p {
    color: var(--v84f-text-secondary);
    font-size: 0.95rem;
}

/* ============================================
   RTP & Stats
   ============================================ */
.v84f-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.v84f-stat-card {
    background: var(--v84f-bg-card);
    border: 1px solid var(--v84f-border);
    border-radius: var(--v84f-radius-md);
    padding: 24px;
    text-align: center;
}

.v84f-stat-value {
    font-family: var(--v84f-font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--v84f-primary);
    line-height: 1;
    margin-bottom: 8px;
}

.v84f-stat-label {
    font-size: 0.85rem;
    color: var(--v84f-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   Animations
   ============================================ */
.v84f-animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.v84f-animate-on-scroll.v84f-animated {
    opacity: 1;
    transform: translateY(0);
}

@keyframes v84f-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes v84f-slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes v84f-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes v84f-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.v84f-shimmer {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    background-size: 200% 100%;
    animation: v84f-shimmer 2s infinite;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 992px) {
    .v84f-hamburger {
        display: flex;
    }

    .v84f-nav-menu {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background: var(--v84f-bg-card);
        display: flex;
        flex-direction: column;
        padding: 80px 20px 20px;
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        box-shadow: -5px 0 20px rgba(0,0,0,0.5);
    }

    .v84f-nav-menu.v84f-nav-open {
        right: 0;
    }

    .v84f-nav-menu li {
        list-style: none;
    }

    .v84f-nav-menu a {
        padding: 15px;
        border-bottom: 1px solid var(--v84f-border);
        display: block;
    }
}

@media (max-width: 768px) {
    .v84f-bottom-nav {
        display: block;
    }

    .v84f-footer {
        padding-bottom: 140px;
    }

    .v84f-hero {
        min-height: auto;
        padding: 100px 0 60px;
    }

    .v84f-section {
        padding: 50px 0;
    }

    .v84f-iframe-wrapper iframe {
        height: 400px;
    }

    .v84f-game-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 8px;
    }

    .v84f-nav-btns {
        display: flex;
        gap: 8px;
    }

    .v84f-nav-btns .v84f-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .v84f-game-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }

    .v84f-container {
        padding: 0 15px;
    }

    .v84f-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    .v84f-feature-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Utility Classes
   ============================================ */
.v84f-text-center { text-align: center; }
.v84f-text-primary { color: var(--v84f-primary) !important; }
.v84f-text-gold { color: var(--v84f-gold) !important; }
.v84f-text-muted { color: var(--v84f-text-muted) !important; }
.v84f-mb-0 { margin-bottom: 0 !important; }
.v84f-mb-1 { margin-bottom: 10px !important; }
.v84f-mb-2 { margin-bottom: 20px !important; }
.v84f-mb-3 { margin-bottom: 30px !important; }
.v84f-mt-2 { margin-top: 20px !important; }
.v84f-mt-3 { margin-top: 30px !important; }
.v84f-hidden { display: none !important; }
.v84f-visible { display: block !important; }
