/* ============================================
   StromStrike Casino - Custom CSS
   Theme: StromStrike Flow
   ============================================ */

/* ============================================
   Animation Keyframes
   ============================================ */

/* Lightning Pulse Animation */
@keyframes lightning-pulse {
    0%, 100% {
        opacity: 1;
        filter: drop-shadow(0 0 0.5rem rgba(251, 191, 36, 0.5));
    }
    50% {
        opacity: 0.8;
        filter: drop-shadow(0 0 1.5rem rgba(251, 191, 36, 0.8));
    }
}

.lightning-pulse {
    animation: lightning-pulse 2s ease-in-out infinite;
}

/* Pulse Glow Animation */
@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

.pulse-glow {
    animation: pulse-glow 4s ease-in-out infinite;
}

.pulse-glow-delayed {
    animation: pulse-glow 4s ease-in-out infinite;
    animation-delay: 2s;
}

/* CTA Glow Animation */
@keyframes cta-glow {
    0%, 100% {
        box-shadow: 0 0 1.25rem rgba(124, 58, 237, 0.3);
    }
    50% {
        box-shadow: 0 0 2rem rgba(124, 58, 237, 0.6);
    }
}

.cta-glow {
    animation: cta-glow 2s ease-in-out infinite;
}

/* Marquee Animation */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.animate-marquee {
    animation: marquee 30s linear infinite;
}

/* Parallax floating effect */
@keyframes float-parallax {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-1.25rem) rotate(1deg);
    }
    50% {
        transform: translateY(0) rotate(0deg);
    }
    75% {
        transform: translateY(0.625rem) rotate(-1deg);
    }
}

.parallax-float {
    animation: float-parallax 8s ease-in-out infinite;
}

/* Energy Flow Animation */
@keyframes energy-flow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.energy-flow {
    background-size: 200% 200%;
    animation: energy-flow 4s ease infinite;
}

/* ============================================
   Utility Classes & Overrides
   ============================================ */

/* Scrollbar styling */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

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

/* Smooth transitions */
* {
    scroll-behavior: smooth;
}

/* Focus states for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 0.125rem solid #06b6d4;
    outline-offset: 0.125rem;
}

/* Selection styling */
::selection {
    background-color: rgba(124, 58, 237, 0.4);
    color: #e0e7ff;
}

/* ============================================
   Prose Styling for Markdown Content
   ============================================ */

.prose {
    color: #94a3b8;
    line-height: 1.75;
    max-width: 100%;
}

/* Headings */
.prose h2 {
    color: #e0e7ff;
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 0.0625rem solid rgba(124, 58, 237, 0.3);
    line-height: 1.3;
}

.prose h3 {
    color: #e0e7ff;
    font-size: 1.375rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.prose h4 {
    color: #06b6d4;
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

/* Paragraphs */
.prose p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

.prose p:first-of-type {
    font-size: 1.0625rem;
}

/* Links */
.prose a {
    color: #06b6d4;
    text-decoration: none;
    border-bottom: 0.0625rem solid transparent;
    transition: all 0.3s ease;
}

.prose a:hover {
    color: #e0e7ff;
    border-bottom-color: #06b6d4;
}

/* Strong and emphasis */
.prose strong {
    color: #e0e7ff;
    font-weight: 600;
}

.prose em {
    color: #c4b5fd;
    font-style: italic;
}

/* 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;
    line-height: 1.7;
}

.prose ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.625rem;
    width: 0.5rem;
    height: 0.5rem;
    background: linear-gradient(135deg, #7c3aed, #06b6d4);
    border-radius: 50%;
}

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

.prose ol li {
    counter-increment: list-counter;
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.prose ol li::before {
    content: counter(list-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.75rem;
    height: 1.75rem;
    background: linear-gradient(135deg, #6b21a8, #7c3aed);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tables */
.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9375rem;
    overflow-x: auto;
    display: block;
}

.prose thead {
    background: rgba(124, 58, 237, 0.2);
}

.prose th {
    color: #e0e7ff;
    font-weight: 600;
    text-align: left;
    padding: 0.875rem 1rem;
    border-bottom: 0.125rem solid rgba(124, 58, 237, 0.3);
    white-space: nowrap;
}

.prose td {
    padding: 0.875rem 1rem;
    border-bottom: 0.0625rem solid rgba(124, 58, 237, 0.15);
    color: #94a3b8;
}

.prose tbody tr:hover {
    background: rgba(124, 58, 237, 0.1);
}

/* Blockquotes */
.prose blockquote {
    border-left: 0.25rem solid #7c3aed;
    background: rgba(124, 58, 237, 0.1);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 0.5rem 0.5rem 0;
    font-style: italic;
    color: #c4b5fd;
}

.prose blockquote p {
    margin-bottom: 0;
}

/* Code */
.prose code {
    background: rgba(124, 58, 237, 0.2);
    color: #06b6d4;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
    font-family: 'Fira Code', 'Consolas', monospace;
}

.prose pre {
    background: rgba(6, 9, 18, 0.8);
    border: 0.0625rem solid rgba(124, 58, 237, 0.3);
    border-radius: 0.75rem;
    padding: 1.25rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

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

/* Horizontal Rule */
.prose hr {
    border: none;
    height: 0.0625rem;
    background: linear-gradient(90deg, transparent, #7c3aed, transparent);
    margin: 2.5rem 0;
}

/* Images */
.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 1.5rem 0;
    border: 0.0625rem solid rgba(124, 58, 237, 0.2);
}

/* Details/Summary (FAQ styling) */
.prose details {
    background: rgba(6, 9, 18, 0.5);
    border: 0.0625rem solid rgba(124, 58, 237, 0.2);
    border-radius: 0.75rem;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.prose summary {
    padding: 1rem 1.25rem;
    cursor: pointer;
    color: #e0e7ff;
    font-weight: 500;
    transition: background 0.3s ease;
}

.prose summary:hover {
    background: rgba(124, 58, 237, 0.1);
}

.prose details[open] summary {
    border-bottom: 0.0625rem solid rgba(124, 58, 237, 0.2);
}

.prose details > *:not(summary) {
    padding: 0 1.25rem 1rem;
}

/* Figure captions */
.prose figcaption {
    text-align: center;
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.5rem;
    font-style: italic;
}

/* ============================================
   Responsive Adjustments
   ============================================ */

@media (max-width: 48rem) {
    .prose h2 {
        font-size: 1.5rem;
        margin-top: 2rem;
    }

    .prose h3 {
        font-size: 1.25rem;
    }

    .prose h4 {
        font-size: 1.0625rem;
    }

    .prose p:first-of-type {
        font-size: 1rem;
    }

    .prose table {
        font-size: 0.875rem;
    }

    .prose th,
    .prose td {
        padding: 0.625rem 0.75rem;
    }

    .prose ol li {
        padding-left: 2.25rem;
    }

    .prose ol li::before {
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.6875rem;
    }
}

/* ============================================
   Dark Theme Enhancements
   ============================================ */

/* Ensure proper contrast throughout */
.bg-storm-deeper .text-storm-light,
.bg-storm-dark .text-storm-light {
    color: #e0e7ff;
}

.bg-storm-deeper .text-storm-muted,
.bg-storm-dark .text-storm-muted {
    color: #94a3b8;
}

/* Card hover states */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-0.25rem);
    box-shadow: 0 1.25rem 2.5rem rgba(124, 58, 237, 0.2);
}

/* Gradient text helper */
.gradient-text {
    background: linear-gradient(135deg, #e0e7ff, #06b6d4, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Button loading state */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 1rem;
    height: 1rem;
    border: 0.125rem solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
