/* StrikerRoomz Casino - Custom Styles */
/* Striker Rooms Arena North Theme */

/* ================================
   CSS Custom Properties
   ================================ */
:root {
    --striker-dark: #0a0e17;
    --striker-navy: #111827;
    --striker-accent: #f97316;
    --striker-gold: #fbbf24;
    --striker-green: #22c55e;
    --striker-red: #ef4444;
    --striker-blue: #3b82f6;
    --striker-purple: #8b5cf6;
    --striker-slate: #1e293b;
    --striker-light: #f8fafc;
}

/* ================================
   Keyframe Animations
   ================================ */

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

/* Particle Float Animation */
@keyframes particleFloat {
    0%, 100% {
        transform: translateY(100vh) translateX(0) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
        transform: translateY(90vh) translateX(10px) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translateY(50vh) translateX(-10px) scale(1.2);
    }
    90% {
        opacity: 0.4;
        transform: translateY(10vh) translateX(15px) scale(0.8);
    }
    100% {
        transform: translateY(-10vh) translateX(0) scale(0);
        opacity: 0;
    }
}

/* Pulse Glow Animation */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0.5rem rgba(249, 115, 22, 0.3);
    }
    50% {
        box-shadow: 0 0 1.5rem rgba(249, 115, 22, 0.6);
    }
}

/* Shine Effect */
@keyframes shine {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 100%;
    }
}

/* ================================
   Animation Classes
   ================================ */

.animate-pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

/* Marquee Container */
.marquee-container {
    overflow: hidden;
    width: 100%;
}

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

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

/* Duplicate content for seamless loop */
.marquee-content::after {
    content: "";
    display: flex;
}

/* Particle Styles */
.particle {
    position: absolute;
    width: 0.5rem;
    height: 0.5rem;
    background: var(--striker-accent);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 8s ease-in-out infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; background: var(--striker-accent); }
.particle:nth-child(2) { left: 25%; animation-delay: 1s; background: var(--striker-gold); }
.particle:nth-child(3) { left: 40%; animation-delay: 2s; background: var(--striker-accent); }
.particle:nth-child(4) { left: 55%; animation-delay: 3s; background: var(--striker-gold); }
.particle:nth-child(5) { left: 70%; animation-delay: 4s; background: var(--striker-accent); }
.particle:nth-child(6) { left: 85%; animation-delay: 5s; background: var(--striker-gold); }
.particle:nth-child(7) { left: 15%; animation-delay: 6s; background: var(--striker-accent); }
.particle:nth-child(8) { left: 95%; animation-delay: 7s; background: var(--striker-gold); }

/* ================================
   Stadium Patterns (SVG/CSS)
   ================================ */

.stadium-pattern {
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(249, 115, 22, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(251, 191, 36, 0.1) 0%, transparent 50%),
        linear-gradient(90deg, transparent 49.5%, rgba(249, 115, 22, 0.05) 50%, transparent 50.5%),
        linear-gradient(0deg, transparent 49.5%, rgba(249, 115, 22, 0.05) 50%, transparent 50.5%);
    background-size: 100% 100%, 100% 100%, 4rem 4rem, 4rem 4rem;
}

.stadium-lines {
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 3rem,
            rgba(249, 115, 22, 0.1) 3rem,
            rgba(249, 115, 22, 0.1) 3.125rem
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 3rem,
            rgba(249, 115, 22, 0.1) 3rem,
            rgba(249, 115, 22, 0.1) 3.125rem
        );
}

/* ================================
   Responsive Tables
   ================================ */

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-responsive table {
    min-width: 37.5rem;
}

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

.prose {
    color: rgba(248, 250, 252, 0.85);
    max-width: 100%;
    font-size: 1rem;
    line-height: 1.75;
}

.prose > * + * {
    margin-top: 1.5em;
}

/* Headings */
.prose h2 {
    color: var(--striker-light);
    font-size: 1.75em;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 2.5em;
    margin-bottom: 1em;
    padding-bottom: 0.5em;
    border-bottom: 0.125rem solid var(--striker-accent);
}

.prose h3 {
    color: var(--striker-light);
    font-size: 1.375em;
    font-weight: 600;
    line-height: 1.4;
    margin-top: 2em;
    margin-bottom: 0.75em;
}

.prose h4 {
    color: var(--striker-gold);
    font-size: 1.125em;
    font-weight: 600;
    line-height: 1.5;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

/* Paragraphs */
.prose p {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    color: rgba(248, 250, 252, 0.8);
}

/* First paragraph emphasis */
.prose > p:first-of-type {
    font-size: 1.125em;
    color: rgba(248, 250, 252, 0.9);
}

/* Links */
.prose a {
    color: var(--striker-accent);
    text-decoration: underline;
    text-underline-offset: 0.25em;
    transition: color 0.2s ease;
}

.prose a:hover {
    color: var(--striker-gold);
}

/* Bold and Strong */
.prose strong {
    color: var(--striker-light);
    font-weight: 600;
}

/* Italic */
.prose em {
    font-style: italic;
}

/* Unordered Lists */
.prose ul {
    list-style-type: none;
    padding-left: 0;
    margin-top: 1.25em;
    margin-bottom: 1.25em;
}

.prose ul li {
    position: relative;
    padding-left: 1.75em;
    margin-bottom: 0.75em;
    color: rgba(248, 250, 252, 0.8);
}

.prose ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.625em;
    width: 0.5em;
    height: 0.5em;
    background: var(--striker-accent);
    border-radius: 50%;
}

/* Ordered Lists */
.prose ol {
    list-style-type: none;
    padding-left: 0;
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    counter-reset: list-counter;
}

.prose ol li {
    position: relative;
    padding-left: 2.5em;
    margin-bottom: 0.75em;
    color: rgba(248, 250, 252, 0.8);
    counter-increment: list-counter;
}

.prose ol li::before {
    content: counter(list-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.75em;
    height: 1.75em;
    background: var(--striker-accent);
    color: var(--striker-dark);
    font-weight: 700;
    font-size: 0.875em;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Nested Lists */
.prose ul ul,
.prose ol ol,
.prose ul ol,
.prose ol ul {
    margin-top: 0.75em;
    margin-bottom: 0.75em;
}

.prose ul ul li::before {
    background: var(--striker-gold);
    width: 0.375em;
    height: 0.375em;
}

/* Blockquotes */
.prose blockquote {
    border-left: 0.25rem solid var(--striker-accent);
    padding: 1em 1.5em;
    margin: 1.5em 0;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 0 0.5rem 0.5rem 0;
    font-style: italic;
}

.prose blockquote p {
    color: rgba(248, 250, 252, 0.9);
    margin: 0;
}

.prose blockquote p::before {
    content: "\201C";
    color: var(--striker-accent);
    font-size: 1.5em;
    margin-right: 0.25em;
}

/* Tables */
.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 2em 0;
    font-size: 0.9375em;
}

.prose .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 2em 0;
    border-radius: 0.75rem;
    background: var(--striker-slate);
}

.prose table thead {
    background: rgba(10, 14, 23, 0.5);
}

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

.prose table td {
    padding: 1em;
    color: rgba(248, 250, 252, 0.8);
    border-bottom: 0.0625rem solid rgba(30, 41, 59, 0.8);
}

.prose table tbody tr:hover {
    background: rgba(10, 14, 23, 0.3);
}

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

/* Code Inline */
.prose code {
    background: var(--striker-slate);
    color: var(--striker-gold);
    padding: 0.25em 0.5em;
    border-radius: 0.25rem;
    font-size: 0.875em;
    font-family: ui-monospace, SFMono-Regular, monospace;
}

/* Code Blocks */
.prose pre {
    background: var(--striker-slate);
    border-radius: 0.5rem;
    padding: 1.5em;
    overflow-x: auto;
    margin: 1.5em 0;
    border: 0.0625rem solid rgba(249, 115, 22, 0.2);
}

.prose pre code {
    background: transparent;
    padding: 0;
    color: rgba(248, 250, 252, 0.9);
}

/* Horizontal Rule */
.prose hr {
    border: none;
    height: 0.125rem;
    background: linear-gradient(90deg, transparent, var(--striker-accent), transparent);
    margin: 3em 0;
}

/* Images */
.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 2em 0;
    box-shadow: 0 0.625rem 2.5rem rgba(0, 0, 0, 0.3);
}

/* Figure and Figcaption */
.prose figure {
    margin: 2em 0;
}

.prose figcaption {
    text-align: center;
    color: rgba(248, 250, 252, 0.6);
    font-size: 0.875em;
    margin-top: 0.75em;
}

/* Definition Lists */
.prose dl {
    margin: 1.5em 0;
}

.prose dt {
    color: var(--striker-light);
    font-weight: 600;
    margin-top: 1em;
}

.prose dd {
    padding-left: 1.5em;
    color: rgba(248, 250, 252, 0.8);
    margin-top: 0.25em;
}

/* Small Text */
.prose small {
    font-size: 0.875em;
    color: rgba(248, 250, 252, 0.6);
}

/* Mark/Highlight */
.prose mark {
    background: rgba(249, 115, 22, 0.3);
    color: var(--striker-light);
    padding: 0.125em 0.375em;
    border-radius: 0.25rem;
}

/* ================================
   Component Overrides
   ================================ */

/* Navigation Link Hover Effect */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: -0.25rem;
    left: 0;
    width: 0;
    height: 0.125rem;
    background: var(--striker-accent);
    transition: width 0.3s ease;
}

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

/* Button Shine Effect */
.btn-primary {
    position: relative;
    overflow: hidden;
}

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

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

.game-card:hover {
    transform: translateY(-0.5rem);
}

/* FAQ Rotation */
.faq-trigger i.rotate-180 {
    transform: rotate(180deg);
}

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

@media (max-width: 48rem) {
    .prose {
        font-size: 0.9375rem;
    }
    
    .prose h2 {
        font-size: 1.5em;
    }
    
    .prose h3 {
        font-size: 1.25em;
    }
    
    .prose table {
        font-size: 0.875em;
    }
    
    .prose table th,
    .prose table td {
        padding: 0.75em;
    }
    
    .marquee-content {
        animation-duration: 20s;
    }
}

@media (max-width: 30rem) {
    .prose h2 {
        font-size: 1.375em;
    }
    
    .prose h3 {
        font-size: 1.125em;
    }
    
    .prose ol li {
        padding-left: 2.25em;
    }
    
    .prose ol li::before {
        width: 1.5em;
        height: 1.5em;
        font-size: 0.75em;
    }
}

/* ================================
   Accessibility
   ================================ */

@media (prefers-reduced-motion: reduce) {
    .marquee-content,
    .particle,
    .animate-pulse-glow,
    .btn-primary::before {
        animation: none;
    }
    
    .game-card:hover {
        transform: none;
    }
}

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

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

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 0.5rem;
    height: 0.5rem;
}

::-webkit-scrollbar-track {
    background: var(--striker-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--striker-slate);
    border-radius: 0.25rem;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--striker-accent);
}
