/* StromStrike Casino - Custom Styles */
/* Electric Storm Theme - Animations & Prose Styling */

/* ========================================
   CSS Custom Properties
   ======================================== */
:root {
    --storm-dark: #0a0a0f;
    --storm-deeper: #12121a;
    --storm-mid: #1a1a2e;
    --storm-light: #252542;
    --storm-accent: #00d4ff;
    --storm-electric: #7b2dff;
    --storm-lightning: #ff00aa;
    --storm-glow: #00ff88;
}

/* ========================================
   Base & Reset
   ======================================== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ========================================
   Particle Animation
   ======================================== */
.particle-container {
    z-index: 0;
}

.particle {
    position: absolute;
    width: 0.25rem;
    height: 0.25rem;
    background: var(--storm-accent);
    border-radius: 50%;
    opacity: 0.6;
    animation: particleFloat 15s infinite ease-in-out;
}

.particle-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    box-shadow: 0 0 0.5rem var(--storm-accent);
}

.particle-2 {
    top: 20%;
    left: 80%;
    animation-delay: -2s;
    background: var(--storm-electric);
    box-shadow: 0 0 0.5rem var(--storm-electric);
}

.particle-3 {
    top: 60%;
    left: 20%;
    animation-delay: -4s;
    background: var(--storm-lightning);
    box-shadow: 0 0 0.5rem var(--storm-lightning);
}

.particle-4 {
    top: 80%;
    left: 70%;
    animation-delay: -6s;
    box-shadow: 0 0 0.5rem var(--storm-accent);
}

.particle-5 {
    top: 40%;
    left: 50%;
    animation-delay: -8s;
    background: var(--storm-glow);
    box-shadow: 0 0 0.5rem var(--storm-glow);
}

.particle-6 {
    top: 70%;
    left: 40%;
    animation-delay: -10s;
    background: var(--storm-electric);
    box-shadow: 0 0 0.5rem var(--storm-electric);
}

@keyframes particleFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translate(6.25rem, -3.125rem) scale(1.5);
        opacity: 0.8;
    }
    50% {
        transform: translate(-3.125rem, 6.25rem) scale(0.8);
        opacity: 0.4;
    }
    75% {
        transform: translate(3.125rem, 3.125rem) scale(1.2);
        opacity: 0.7;
    }
}

/* ========================================
   Marquee Animation
   ======================================== */
.marquee-container {
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.marquee-content {
    display: flex;
    animation: marqueeScroll 30s linear infinite;
    width: max-content;
}

.marquee-content:hover {
    animation-play-state: paused;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ========================================
   Electric Glow Effects
   ======================================== */
.bonus-box {
    position: relative;
    overflow: hidden;
}

.bonus-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        var(--storm-accent) 10deg,
        transparent 20deg,
        transparent 180deg,
        var(--storm-lightning) 190deg,
        transparent 200deg
    );
    animation: electricRotate 4s linear infinite;
    opacity: 0.3;
}

@keyframes electricRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* ========================================
   CTA Button Effects
   ======================================== */
.cta-primary {
    position: relative;
    overflow: hidden;
}

.cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: ctaShine 3s infinite;
}

@keyframes ctaShine {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 100%;
    }
}

/* ========================================
   Navigation Link Effects
   ======================================== */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -0.25rem;
    left: 0;
    width: 0;
    height: 0.125rem;
    background: linear-gradient(90deg, var(--storm-accent), var(--storm-lightning));
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ========================================
   Game Card Hover Effects
   ======================================== */
.game-card {
    transition: all 0.3s ease;
}

.game-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 1.25rem 2.5rem -0.625rem rgba(0, 212, 255, 0.2);
}

/* ========================================
   Step Card Effects
   ======================================== */
.step-card {
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-0.25rem);
    box-shadow: 0 0.625rem 2.5rem -0.5rem rgba(0, 212, 255, 0.15);
}

/* ========================================
   Promo Card Effects
   ======================================== */
.promo-card {
    transition: all 0.3s ease;
}

.promo-card:hover {
    transform: translateY(-0.25rem);
}

/* ========================================
   FAQ Item Styling
   ======================================== */
.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item[open] {
    background: rgba(26, 26, 46, 0.5);
}

/* ========================================
   Table Responsive Wrapper
   ======================================== */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-responsive table {
    min-width: 100%;
}

/* ========================================
   Review Scroll Container
   ======================================== */
.review-scroll {
    scrollbar-width: thin;
    scrollbar-color: var(--storm-accent) var(--storm-mid);
}

.review-scroll::-webkit-scrollbar {
    height: 0.5rem;
}

.review-scroll::-webkit-scrollbar-track {
    background: var(--storm-mid);
    border-radius: 0.25rem;
}

.review-scroll::-webkit-scrollbar-thumb {
    background: var(--storm-accent);
    border-radius: 0.25rem;
}

/* ========================================
   Prose Styling for Markdown Content
   ======================================== */
.prose {
    color: #e5e5e5;
    line-height: 1.7;
    font-size: 1rem;
}

.prose h2 {
    color: #ffffff;
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 0.125rem solid var(--storm-accent);
    position: relative;
}

.prose h2::before {
    content: '';
    position: absolute;
    bottom: -0.125rem;
    left: 0;
    width: 3rem;
    height: 0.125rem;
    background: var(--storm-lightning);
}

.prose h3 {
    color: var(--storm-accent);
    font-size: 1.35rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.prose h4 {
    color: #ffffff;
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.prose p {
    margin-bottom: 1.25rem;
    color: #d1d5db;
}

.prose a {
    color: var(--storm-accent);
    text-decoration: none;
    border-bottom: 0.0625rem solid transparent;
    transition: all 0.2s ease;
}

.prose a:hover {
    color: var(--storm-lightning);
    border-bottom-color: var(--storm-lightning);
}

.prose strong {
    color: #ffffff;
    font-weight: 600;
}

.prose em {
    color: var(--storm-accent);
    font-style: italic;
}

/* Prose Lists */
.prose ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.prose ul li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.625rem;
    color: #d1d5db;
}

.prose ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.625rem;
    width: 0.5rem;
    height: 0.5rem;
    background: var(--storm-accent);
    border-radius: 50%;
    box-shadow: 0 0 0.375rem var(--storm-accent);
}

.prose ol {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
    counter-reset: prose-counter;
}

.prose ol li {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 0.75rem;
    color: #d1d5db;
    counter-increment: prose-counter;
}

.prose ol li::before {
    content: counter(prose-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.5rem;
    height: 1.5rem;
    background: linear-gradient(135deg, var(--storm-accent), var(--storm-electric));
    color: var(--storm-dark);
    font-weight: 700;
    font-size: 0.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Prose Tables */
.prose table {
    width: 100%;
    margin-bottom: 1.5rem;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.prose .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1.5rem;
    border-radius: 0.75rem;
    border: 0.0625rem solid rgba(0, 212, 255, 0.2);
}

.prose table thead {
    background: linear-gradient(135deg, var(--storm-mid), var(--storm-deeper));
}

.prose table th {
    padding: 1rem;
    text-align: left;
    color: var(--storm-accent);
    font-weight: 600;
    border-bottom: 0.125rem solid var(--storm-accent);
    white-space: nowrap;
}

.prose table td {
    padding: 0.875rem 1rem;
    color: #d1d5db;
    border-bottom: 0.0625rem solid rgba(37, 37, 66, 0.5);
}

.prose table tbody tr {
    background: rgba(18, 18, 26, 0.5);
    transition: background 0.2s ease;
}

.prose table tbody tr:hover {
    background: rgba(26, 26, 46, 0.7);
}

.prose table tbody tr:last-child td {
    border-bottom: none;
}

/* Prose Blockquotes */
.prose blockquote {
    margin: 1.5rem 0;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8), rgba(18, 18, 26, 0.9));
    border-left: 0.25rem solid var(--storm-accent);
    border-radius: 0 0.75rem 0.75rem 0;
    position: relative;
}

.prose blockquote::before {
    content: '"';
    position: absolute;
    top: -0.625rem;
    left: 1rem;
    font-size: 3rem;
    color: var(--storm-accent);
    opacity: 0.3;
    font-family: Georgia, serif;
}

.prose blockquote p {
    color: #e5e5e5;
    font-style: italic;
    margin-bottom: 0;
}

/* Prose Code */
.prose code {
    background: var(--storm-mid);
    color: var(--storm-glow);
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
    font-family: 'Fira Code', 'Consolas', monospace;
}

.prose pre {
    background: var(--storm-deeper);
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin-bottom: 1.5rem;
    border: 0.0625rem solid var(--storm-light);
}

.prose pre code {
    background: transparent;
    padding: 0;
}

/* Prose Images */
.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 1.5rem 0;
    box-shadow: 0 0.625rem 2.5rem -0.5rem rgba(0, 212, 255, 0.2);
    border: 0.0625rem solid rgba(0, 212, 255, 0.2);
}

/* Prose Horizontal Rule */
.prose hr {
    border: none;
    height: 0.0625rem;
    background: linear-gradient(90deg, transparent, var(--storm-accent), var(--storm-lightning), transparent);
    margin: 2.5rem 0;
}

/* ========================================
   Mobile Responsive Adjustments
   ======================================== */
@media (max-width: 64rem) {
    .prose h2 {
        font-size: 1.5rem;
    }
    
    .prose h3 {
        font-size: 1.25rem;
    }
    
    .prose {
        font-size: 0.9375rem;
    }
}

@media (max-width: 48rem) {
    .prose h2 {
        font-size: 1.375rem;
        margin-top: 2rem;
    }
    
    .prose h3 {
        font-size: 1.125rem;
    }
    
    .prose table {
        font-size: 0.875rem;
    }
    
    .prose table th,
    .prose table td {
        padding: 0.625rem 0.75rem;
    }
    
    .prose ul li,
    .prose ol li {
        padding-left: 1.5rem;
    }
    
    .prose blockquote {
        padding: 1rem;
    }
}

/* ========================================
   Lightning Streak Effect
   ======================================== */
@keyframes lightningStreak {
    0%, 90%, 100% {
        opacity: 0;
    }
    92%, 94%, 96% {
        opacity: 1;
    }
    93%, 95% {
        opacity: 0;
    }
}

/* ========================================
   Pulse Glow Animation
   ======================================== */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 1.25rem rgba(0, 212, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 2.5rem rgba(0, 212, 255, 0.6);
    }
}

/* ========================================
   Selection Styling
   ======================================== */
::selection {
    background: var(--storm-accent);
    color: var(--storm-dark);
}

::-moz-selection {
    background: var(--storm-accent);
    color: var(--storm-dark);
}

/* ========================================
   Focus States for Accessibility
   ======================================== */
a:focus-visible,
button:focus-visible {
    outline: 0.125rem solid var(--storm-accent);
    outline-offset: 0.125rem;
}

/* ========================================
   Reduced Motion Preferences
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
