/* ================================================
   FIRIXSLOT CASINO - CUSTOM STYLESHEET
   Firix Ignite NL Flow Theme
   ================================================ */

/* ================================================
   CSS VARIABLES
   ================================================ */
:root {
    --ignite-dark: #0a0a12;
    --ignite-deeper: #12121f;
    --ignite-surface: #1a1a2e;
    --ignite-border: #2a2a4a;
    --ignite-muted: #6b6b8a;
    --ignite-light: #e8e8f0;
    --ignite-accent: #ff6b35;
    --ignite-accent-bright: #ff8c5a;
    --ignite-flash: #ffd93d;
    --ignite-electric: #00d4ff;
    --ignite-success: #4ade80;
}

/* ================================================
   GLOBAL OVERFLOW CONTROL
   ================================================ */
html {
    overflow-x: clip;
    overflow-y: auto;
}

body {
    overflow-x: clip;
}

/* ================================================
   PARTICLE ANIMATIONS
   ================================================ */
.particle-container {
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 0.5rem;
    height: 0.5rem;
    background: var(--ignite-accent);
    border-radius: 50%;
    opacity: 0.3;
    animation: particle-float 15s infinite ease-in-out;
}

.particle-1 {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
    background: var(--ignite-accent);
}

.particle-2 {
    top: 40%;
    left: 80%;
    animation-delay: -3s;
    background: var(--ignite-flash);
    width: 0.375rem;
    height: 0.375rem;
}

.particle-3 {
    top: 70%;
    left: 30%;
    animation-delay: -6s;
    background: var(--ignite-electric);
    width: 0.625rem;
    height: 0.625rem;
}

.particle-4 {
    top: 20%;
    left: 60%;
    animation-delay: -9s;
    background: var(--ignite-accent-bright);
    width: 0.25rem;
    height: 0.25rem;
}

.particle-5 {
    top: 80%;
    left: 70%;
    animation-delay: -12s;
    background: var(--ignite-flash);
}

@keyframes particle-float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translate(6.25rem, -3.125rem) scale(1.2);
        opacity: 0.5;
    }
    50% {
        transform: translate(-3.125rem, 6.25rem) scale(0.8);
        opacity: 0.2;
    }
    75% {
        transform: translate(3.125rem, -6.25rem) scale(1.1);
        opacity: 0.4;
    }
}

/* ================================================
   TILT ANIMATION
   ================================================ */
.tilt-element {
    transition: transform 0.3s ease-out;
    transform-style: preserve-3d;
}

.tilt-element:hover {
    transform: perspective(62.5rem) rotateX(2deg) rotateY(-2deg);
}

/* ================================================
   SPIN SLOW ANIMATION
   ================================================ */
@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-spin-slow {
    animation: spin-slow 20s linear infinite;
}

/* ================================================
   FLASH SHIMMER EFFECT
   ================================================ */
@keyframes shimmer {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.shimmer-effect {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 217, 61, 0.3) 50%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
}

/* ================================================
   TABLE RESPONSIVE WRAPPER
   ================================================ */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

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

/* ================================================
   PROSE STYLING FOR MARKDOWN CONTENT
   ================================================ */
.prose {
    color: var(--ignite-light);
    line-height: 1.7;
    font-size: 1rem;
}

/* Headings */
.prose h2 {
    color: var(--ignite-light);
    font-size: clamp(1.5rem, 4vw, 1.875rem);
    font-weight: 800;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--ignite-border);
    position: relative;
}

.prose h2::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 4rem;
    height: 2px;
    background: linear-gradient(90deg, var(--ignite-accent), var(--ignite-flash));
}

.prose h3 {
    color: var(--ignite-light);
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.prose h4 {
    color: var(--ignite-accent);
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Paragraphs */
.prose p {
    color: var(--ignite-muted);
    margin-bottom: 1.25rem;
    line-height: 1.75;
}

.prose p:first-of-type {
    font-size: 1.0625rem;
    color: var(--ignite-light);
}

/* Links */
.prose a {
    color: var(--ignite-accent);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.prose a:hover {
    color: var(--ignite-accent-bright);
    border-bottom-color: var(--ignite-accent-bright);
}

/* Lists */
.prose ul,
.prose ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.prose ul {
    list-style: none;
}

.prose ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--ignite-muted);
    line-height: 1.6;
}

.prose ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.625rem;
    width: 0.5rem;
    height: 0.5rem;
    background: linear-gradient(135deg, var(--ignite-accent), var(--ignite-flash));
    border-radius: 50%;
}

.prose ol {
    list-style: none;
    counter-reset: prose-counter;
}

.prose ol li {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 0.75rem;
    color: var(--ignite-muted);
    line-height: 1.6;
    counter-increment: prose-counter;
}

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

/* Tables */
.prose .table-responsive {
    margin: 1.5rem 0;
    border-radius: 0.75rem;
    border: 1px solid var(--ignite-border);
    overflow-x: auto;
    background: var(--ignite-surface);
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.prose thead {
    background: var(--ignite-dark);
}

.prose th {
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    color: var(--ignite-light);
    border-bottom: 2px solid var(--ignite-accent);
    white-space: nowrap;
}

.prose td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--ignite-border);
    color: var(--ignite-muted);
}

.prose tbody tr:hover {
    background: rgba(255, 107, 53, 0.05);
}

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

/* Blockquotes */
.prose blockquote {
    margin: 1.5rem 0;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, var(--ignite-surface), var(--ignite-deeper));
    border-left: 4px solid var(--ignite-accent);
    border-radius: 0 0.75rem 0.75rem 0;
    font-style: italic;
}

.prose blockquote p {
    color: var(--ignite-light);
    margin-bottom: 0;
}

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

/* Images */
.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 1.5rem 0;
    border: 1px solid var(--ignite-border);
}

/* Code */
.prose code {
    background: var(--ignite-surface);
    color: var(--ignite-accent);
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.875em;
    font-family: 'Fira Code', monospace;
}

.prose pre {
    background: var(--ignite-surface);
    border: 1px solid var(--ignite-border);
    border-radius: 0.75rem;
    padding: 1.25rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.prose pre code {
    background: transparent;
    padding: 0;
    color: var(--ignite-light);
}

/* Horizontal Rule */
.prose hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--ignite-border), transparent);
    margin: 2.5rem 0;
}

/* Strong & Emphasis */
.prose strong {
    color: var(--ignite-light);
    font-weight: 700;
}

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

/* ================================================
   CTA BUTTON STYLES
   ================================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: linear-gradient(135deg, var(--ignite-accent), var(--ignite-accent-bright));
    color: var(--ignite-dark);
    font-weight: 700;
    border-radius: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: transparent;
    color: var(--ignite-accent);
    font-weight: 700;
    border: 2px solid var(--ignite-accent);
    border-radius: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--ignite-accent);
    color: var(--ignite-dark);
}

/* ================================================
   NAV LINK UNDERLINE ANIMATION
   ================================================ */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--ignite-accent), var(--ignite-flash));
    transition: width 0.3s ease;
}

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

/* ================================================
   FAQ TOGGLE ANIMATION
   ================================================ */
.faq-toggle i {
    transition: transform 0.3s ease;
}

.faq-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-content:not(.hidden) {
    max-height: 31.25rem;
}

/* ================================================
   RESPONSIVE ADJUSTMENTS
   ================================================ */
@media (max-width: 768px) {
    .prose {
        font-size: 0.9375rem;
    }
    
    .prose h2 {
        margin-top: 2rem;
    }
    
    .prose h3 {
        margin-top: 1.5rem;
    }
    
    .prose ul li,
    .prose ol li {
        padding-left: 1.25rem;
    }
    
    .prose ol li {
        padding-left: 2rem;
    }
    
    .prose ol li::before {
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.75rem;
    }
    
    .prose th,
    .prose td {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
}

/* ================================================
   UTILITY CLASSES
   ================================================ */
.text-balance {
    text-wrap: balance;
}

.text-pretty {
    text-wrap: pretty;
}

/* Accent Flash on Hover */
.flash-hover {
    position: relative;
    overflow: hidden;
}

.flash-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.flash-hover:hover::before {
    left: 100%;
}

/* Focus States for Accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--ignite-accent);
    outline-offset: 2px;
}

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

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