/* ============================================
   Blackjack Bailey VR — Mobile-First CSS
   Dark casino theme, fast & responsive
   ============================================ */

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

:root {
    /* Colors — Dark Casino Theme */
    --bg-dark: #0a0a0f;
    --bg-card: #12121a;
    --bg-elevated: #1a1a24;
    --primary: #e63946;        /* Casino red */
    --primary-hover: #ff4d5a;
    --secondary: #9d4edd;      /* Royal purple */
    --accent: #ffd60a;         /* Gold */
    --text: #f8f9fa;
    --text-muted: #adb5bd;
    --border: #2a2a3a;
    
    /* Social brand colors */
    --color-discord: #5865F2;
    --color-twitter: #1DA1F2;
    --color-instagram: #E4405F;
    --color-facebook: #1877F2;
    --color-youtube: #FF0000;
    
    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    
    /* Transitions */
    --transition: 0.2s ease;
    
    /* Border radius */
    --radius: 12px;
    --radius-lg: 20px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
    text-align: center;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.2;
    margin-bottom: var(--space-sm);
}

h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }

p { margin-bottom: var(--space-sm); color: var(--text-muted); }

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}
a:hover { color: var(--primary); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #c1121f 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
    transform: translateY(-2px);
    color: white;
}
.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text);
    border: 2px solid var(--border);
}
.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.125rem; }

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: var(--space-sm) 0;
}
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}
.logo {
    height: 40px;
    width: auto;
}
.nav-links {
    display: none;
    gap: var(--space-md);
}
.nav-links a {
    color: var(--text);
    font-weight: 500;
    font-size: 0.9375rem;
}
.nav-links a:hover { color: var(--accent); }
.btn-header { display: none; }

/* Mobile CTA Bar */
.mobile-cta-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: var(--space-sm);
    gap: var(--space-sm);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}
.mobile-cta-bar .btn {
    flex: 1;
    text-align: center;
}
.btn-close-mobile-cta {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 var(--space-xs);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 60px;
    padding-bottom: 80px; /* mobile CTA space */
}

.hero-glow {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(230, 57, 70, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 0% 50%, rgba(138, 43, 226, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, 
        rgba(10,10,15,0.6) 0%, 
        rgba(10,10,15,0.8) 50%, 
        var(--bg-dark) 100%);
}
.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
}
.hero-title {
    font-size: 2.75rem;
    line-height: 1.1;
    color: white;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
}

/* Trust Signals */
.trust-signals {
    margin: var(--space-md) 0;
}
.rating {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 1rem;
}
.stars { color: var(--accent); letter-spacing: 2px; }
.rating-text { color: var(--text); font-weight: 500; }

/* Testimonials */
.testimonials-hero {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin: var(--space-md) 0;
}
.testimonial {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-sm);
}
.testimonial-text {
    font-style: italic;
    color: var(--text);
    margin-bottom: var(--space-xs);
}
.testimonial-author {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* CTA Group */
.cta-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}
.cta-group .btn {
    width: 100%;
}

/* Hero Visual */
.hero-visual {
    display: none; /* hidden on mobile, shown on tablet+ */
}
.hero-image {
    width: 100%;
            transform: scaleX(-1);
}

/* Sections Generic */
.section {
    padding: var(--space-xl) 0;
}
.section-title {
    text-align: center;
    margin-bottom: var(--space-xs);
}
.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
}

/* Trailer Section */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.video-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.2) 0%, rgba(138, 43, 226, 0.15) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: var(--radius-lg);
    pointer-events: none;
}
.video-wrapper:hover::after {
    opacity: 1;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.video-note {
    text-align: center;
    font-size: 0.875rem;
    margin-top: var(--space-sm);
}

/* Screenshots Gallery */
.screenshots-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}
.screenshot-card img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    transition: var(--transition);
}
.screenshot-card img:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(230, 57, 70, 0.2);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-md);
    text-align: center;
    transition: var(--transition);
}
.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.08) 0%, rgba(138, 43, 226, 0.06) 100%);
    box-shadow: 0 8px 30px rgba(230, 57, 70, 0.12);
}
  .feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    margin: 0 auto var(--space-sm);
    border-radius: var(--radius);
    overflow: visible;
}

/* Feature icon images (replacing emojis) */

  .feature-icon-img {
    width: 96px;
    height: 96px;
    object-fit: contain;
}

.feature-card h3 {
    color: var(--text);
    margin-bottom: var(--space-xs);
}
.feature-card p {
    font-size: 0.9375rem;
    margin-bottom: 0;
}

/* Signup Section */

.signup-section {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-elevated) 60%, rgba(138, 43, 226, 0.08) 100%);
    position: relative;
}
.signup-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.3;
}

.signup-wrapper {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}
.signup-description {
    margin-bottom: var(--space-lg);
}
.signup-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}
.signup-form input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-dark);
    color: var(--text);
    font-size: 1rem;
    font-family: var(--font-main);
}
.signup-form input:focus {
    outline: none;
    border-color: var(--accent);
}
.signup-form .btn {
    width: 100%;
}
.form-note {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 0;
}
.integration-note {
    margin-top: var(--space-md);
    padding: var(--space-sm);
    background: var(--bg-dark);
    border-radius: var(--radius);
    font-size: 0.875rem;
    color: var(--text-muted);
    border: 1px dashed var(--border);
}
.integration-note code {
    background: var(--bg-elevated);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.8125rem;
}

/* Social Section */
.social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    max-width: 800px;
    margin: 0 auto;
}
.social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
}
.social-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    color: white;
}

/* Social icon brand colors */
.social-card.discord .social-icon { color: var(--color-discord); }
.social-card.twitter .social-icon { color: var(--color-twitter); }
.social-card.instagram .social-icon { color: var(--color-instagram); }
.social-card.facebook .social-icon { color: var(--color-facebook); }
.social-card.youtube .social-icon { color: var(--color-youtube); }

.social-icon {
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.social-name {
    font-weight: 600;
    color: var(--text);
}
.social-desc {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* Footer */

/* Instagram with visible label */
.instagram-link {
    position: relative;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius);
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white !important;
    transition: var(--transition);
}
.instagram-link svg {
    color: white;
}
.instagram-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(225, 48, 108, 0.4);
}
.instagram-link .footer-social-label {
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
}

.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: var(--space-xl) 0 var(--space-md);
    margin-top: var(--space-xl);
    padding-bottom: 120px;  /* space for mobile CTA bar */
}
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}
.footer-logo {
    height: 50px;
    width: auto;
    opacity: 0.8;
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
}
.footer-links a {
    color: var(--text-muted);
    font-size: 0.9375rem;
}
.footer-links a:hover { color: var(--accent); }
.footer-social a {
    opacity: 0.7;
    transition: var(--transition);
    width: auto;
    height: auto;
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius);
}
.footer-social a svg {
    width: 24px;
    height: 24px;
}
.footer-social a:hover { opacity: 1; }

/* Footer social brand colors */
.footer-social a[aria-label="X/Twitter"] { color: var(--color-twitter); }
.footer-social a[aria-label="Instagram"] { color: var(--color-instagram); }
.footer-social a[aria-label="Facebook"] { color: var(--color-facebook); }
.footer-social a[aria-label="YouTube"] { color: var(--color-youtube); }
.footer-bottom {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--text-muted);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border);
}
.footer-bottom p {
    margin-bottom: var(--space-xs);
}

/* ============================================
   Tablet and Desktop (min-width: 768px)
   ============================================ */
@media (min-width: 768px) {
    .container {
        padding: 0 var(--space-md);
    }
    
    .nav-links {
        display: flex;
    }
    .btn-header {
        display: inline-flex;
    }
    .mobile-cta-bar {
        display: none;
    }
    .hero {
        padding-bottom: var(--space-xl);
    }
    .hero-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        text-align: center;
    }
    .hero-visual { }}
    .hero-text { flex: 1; max-width: 600px; }
    .hero-visual {
        display: block;
        flex: 1;
        max-width: 450px;
    }
    .hero-image {
        border-radius: var(--radius-lg);
    }
    .hero-title {
        font-size: 3.5rem;
    }
    .cta-group {
        flex-direction: row;
    }
    .cta-group .btn {
        flex: 1;
    }
    .testimonials-hero {
        flex-direction: row;
        gap: var(--space-md);
    }
    .testimonial {
        flex: 1;
    }
    .screenshots-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .social-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: center;
        flex-wrap: wrap;
    }
}

/* ============================================
   Large Desktop (min-width: 1024px)
   ============================================ */
@media (min-width: 1024px) {
    h1 { font-size: 4rem; }
    h2 { font-size: 2.5rem; }
    
    .hero-title { font-size: 4rem; }
    .hero-subtitle { font-size: 1.25rem; }
    
    .screenshots-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .social-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .footer-links {
        gap: var(--space-lg);
    }
}

/* ============================================
   Utility & Animation
   ============================================ */

/* Tooltip for Instagram link */
[data-tooltip] {
    position: relative;
    cursor: help;
}
[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: var(--bg-elevated);
    color: var(--text);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius);
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 100;
    border: 1px solid var(--border);
}
[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content > * {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}
.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.2s; }
.hero-content > *:nth-child(3) { animation-delay: 0.3s; }
.hero-content > *:nth-child(4) { animation-delay: 0.4s; }
.hero-content > *:nth-child(5) { animation-delay: 0.5s; }
.hero-content > *:nth-child(6) { animation-delay: 0.6s; }

/* Smooth section transitions */
section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}

/* Focus styles */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --text: #ffffff;
        --text-muted: #cccccc;
        --border: #444444;
    }
}

/* Fix nav visibility at 480px+ */
@media (min-width: 480px) {
    .nav-links {
        display: flex;
    }
    .btn-header {
        display: inline-flex;
    }
}

/* ============================================
   Narrow Mobile Fixes (prevents cropping on headline, subtitle, testimonials)
   Matches the working margin behavior of the screenshot section
   ============================================ */
@media (max-width: 480px) {
    .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .hero-title {
        font-size: 2.1rem;
        line-height: 1.15;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.4;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .testimonials-hero {
        gap: var(--space-sm);
    }

    .testimonial {
        padding: var(--space-sm);
    }

    .testimonial-text {
        font-size: 0.9375rem;
        line-height: 1.4;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .cta-group .btn {
        font-size: 0.95rem;
        padding: 0.85rem 1.25rem;
    }
}

/* ============================================
   v36 - Force hero area to respect same margins as working lower sections
   (fixes cropping above Bailey character that lower sections don't have)
   ============================================ */
@media (max-width: 600px) {
    .hero {
        padding-left: 0;
        padding-right: 0;
    }

    .hero-content {
        padding-left: var(--space-md);
        padding-right: var(--space-md);
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
    }

    .hero-text {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.15;
        word-break: break-word;
        overflow-wrap: anywhere;
        max-width: 100%;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.35;
        word-break: break-word;
        overflow-wrap: anywhere;
        max-width: 100%;
    }

    .testimonials-hero {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .testimonial {
        padding: 0.75rem;
        width: 100%;
        box-sizing: border-box;
    }

    .testimonial-text {
        font-size: 0.875rem;
        line-height: 1.35;
        word-break: break-word;
        overflow-wrap: anywhere;
    }
}
