/* ========================================
   Firixslot Casino - Custom Styles
   ======================================== */

/* ----------------------------------------
   Base & Reset
   ---------------------------------------- */
html {
    overflow-x: clip;
    overflow-y: auto;
}

body {
    overflow-x: clip;
}

/* ----------------------------------------
   Parallax Effect
   ---------------------------------------- */
.parallax-bg {
    transform: translateZ(0);
    will-change: transform;
}

@media (min-width: 1024px) {
    .parallax-bg {
        background-attachment: fixed;
    }
}

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

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

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

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

/* ----------------------------------------
   Table Responsive Wrapper
   ---------------------------------------- */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #ff6b35 #1a1a2e;
}

.table-responsive::-webkit-scrollbar {
    height: 0.5rem;
}

.table-responsive::-webkit-scrollbar-track {
    background: #1a1a2e;
    border-radius: 0.25rem;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #ff6b35;
    border-radius: 0.25rem;
}

/* ----------------------------------------
   Prose Styling for Markdown Content
   ---------------------------------------- */
.prose {
    color: #d1d5db;
    font-size: 1rem;
    line-height: 1.75;
    max-width: 100%;
}

/* Headings */
.prose h2 {
    color: #ffffff;
    font-size: 1.75em;
    font-weight: 700;
    margin-top: 2em;
    margin-bottom: 1em;
    padding-bottom: 0.5em;
    border-bottom: 2px solid #2d2d4a;
    line-height: 1.3;
}

.prose h3 {
    color: #ffffff;
    font-size: 1.375em;
    font-weight: 600;
    margin-top: 1.75em;
    margin-bottom: 0.75em;
    line-height: 1.4;
}

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

/* First heading after title shouldn't have extra top margin */
.prose > h2:first-child,
.prose > h3:first-child {
    margin-top: 0;
}

/* Paragraphs */
.prose p {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    color: #d1d5db;
}

.prose > p:first-child {
    margin-top: 0;
}

/* Links */
.prose a {
    color: #ff6b35;
    text-decoration: underline;
    text-underline-offset: 0.2em;
    transition: color 0.2s ease;
}

.prose a:hover {
    color: #f7c531;
}

/* Strong & Emphasis */
.prose strong {
    color: #ffffff;
    font-weight: 600;
}

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

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

.prose ul li {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    padding-left: 0.375em;
    color: #d1d5db;
}

.prose ul li::marker {
    color: #ff6b35;
}

/* Lists - Ordered */
.prose ol {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    padding-left: 1.5em;
    list-style-type: decimal;
}

.prose ol li {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    padding-left: 0.375em;
    color: #d1d5db;
}

.prose ol li::marker {
    color: #f7c531;
    font-weight: 600;
}

/* Nested Lists */
.prose ul ul,
.prose ol ul {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    list-style-type: circle;
}

.prose ul ol,
.prose ol ol {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

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

.prose thead {
    border-bottom: 2px solid #ff6b35;
}

.prose thead th {
    color: #ffffff;
    font-weight: 600;
    text-align: left;
    padding: 0.875em 1em;
    background-color: #1a1a2e;
}

.prose tbody tr {
    border-bottom: 1px solid #2d2d4a;
}

.prose tbody tr:hover {
    background-color: rgba(45, 45, 74, 0.3);
}

.prose tbody td {
    padding: 0.875em 1em;
    color: #d1d5db;
}

/* Table wrapper for mobile */
.prose .table-responsive {
    overflow-x: auto;
    margin-top: 2em;
    margin-bottom: 2em;
    border-radius: 0.5rem;
    border: 1px solid #2d2d4a;
}

.prose .table-responsive table {
    margin: 0;
}

/* Blockquotes */
.prose blockquote {
    margin-top: 1.5em;
    margin-bottom: 1.5em;
    padding: 1em 1.5em;
    border-left: 4px solid #ff6b35;
    background-color: #16162a;
    border-radius: 0 0.5rem 0.5rem 0;
    font-style: italic;
}

.prose blockquote p {
    margin: 0;
    color: #e5e7eb;
}

.prose blockquote p:not(:last-child) {
    margin-bottom: 0.75em;
}

/* Code Inline */
.prose code {
    color: #f7c531;
    background-color: #1a1a2e;
    padding: 0.2em 0.4em;
    border-radius: 0.25rem;
    font-size: 0.875em;
    font-family: 'Fira Code', 'Monaco', monospace;
}

/* Code Blocks */
.prose pre {
    margin-top: 1.5em;
    margin-bottom: 1.5em;
    padding: 1em 1.25em;
    background-color: #0f0f1a;
    border: 1px solid #2d2d4a;
    border-radius: 0.5rem;
    overflow-x: auto;
}

.prose pre code {
    background: none;
    padding: 0;
    color: #d1d5db;
    font-size: 0.875em;
}

/* Horizontal Rule */
.prose hr {
    margin-top: 3em;
    margin-bottom: 3em;
    border: none;
    border-top: 1px solid #2d2d4a;
}

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

/* Figure & Figcaption */
.prose figure {
    margin-top: 2em;
    margin-bottom: 2em;
}

.prose figcaption {
    margin-top: 0.75em;
    color: #9ca3af;
    font-size: 0.875em;
    text-align: center;
}

/* ----------------------------------------
   Responsive Prose Adjustments
   ---------------------------------------- */
@media (max-width: 640px) {
    .prose {
        font-size: 0.9375rem;
    }
    
    .prose h2 {
        font-size: 1.5em;
    }
    
    .prose h3 {
        font-size: 1.25em;
    }
    
    .prose table {
        font-size: 0.875em;
    }
    
    .prose thead th,
    .prose tbody td {
        padding: 0.625em 0.75em;
    }
}

/* ----------------------------------------
   Button & Link Animations
   ---------------------------------------- */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.4);
    }
    50% {
        box-shadow: 0 0 20px 5px rgba(255, 107, 53, 0.2);
    }
}

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

/* ----------------------------------------
   Card Hover Effects
   ---------------------------------------- */
.game-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ----------------------------------------
   Focus States for Accessibility
   ---------------------------------------- */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #ff6b35;
    outline-offset: 2px;
}

/* ----------------------------------------
   Skip Link for Accessibility
   ---------------------------------------- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: #ff6b35;
    color: #ffffff;
    padding: 0.5rem 1rem;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* ----------------------------------------
   Selection Styling
   ---------------------------------------- */
::selection {
    background: rgba(255, 107, 53, 0.3);
    color: #ffffff;
}

::-moz-selection {
    background: rgba(255, 107, 53, 0.3);
    color: #ffffff;
}

/* ----------------------------------------
   Custom Scrollbar
   ---------------------------------------- */
::-webkit-scrollbar {
    width: 0.625rem;
}

::-webkit-scrollbar-track {
    background: #0f0f1a;
}

::-webkit-scrollbar-thumb {
    background: #2d2d4a;
    border-radius: 0.3125rem;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff6b35;
}

/* ----------------------------------------
   Loading Animation
   ---------------------------------------- */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.loading-shimmer {
    background: linear-gradient(
        90deg,
        #1a1a2e 25%,
        #2d2d4a 50%,
        #1a1a2e 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
}

/* ----------------------------------------
   Fade In Animation
   ---------------------------------------- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* ----------------------------------------
   Responsive Utilities
   ---------------------------------------- */
@media (max-width: 1023px) {
    .hide-mobile {
        display: none !important;
    }
}

@media (min-width: 1024px) {
    .hide-desktop {
        display: none !important;
    }
}
