/* Lucky Minning Casino - Custom Styles */
/* Gold Rush Theme: Warm metallic highlights, layered depth textures */

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

body {
    overflow-x: clip;
}

/* ========================================
   PARTICLE ANIMATIONS
   ======================================== */
.particles-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 0.5rem;
    height: 0.5rem;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 50%;
    opacity: 0.6;
    animation: float-particle 8s ease-in-out infinite;
}

.particle-1 {
    top: 10%;
    left: 15%;
    animation-delay: 0s;
    animation-duration: 7s;
}

.particle-2 {
    top: 20%;
    right: 20%;
    animation-delay: 1s;
    animation-duration: 9s;
}

.particle-3 {
    bottom: 30%;
    left: 25%;
    animation-delay: 2s;
    animation-duration: 6s;
}

.particle-4 {
    top: 40%;
    right: 10%;
    animation-delay: 3s;
    animation-duration: 8s;
}

.particle-5 {
    bottom: 20%;
    right: 30%;
    animation-delay: 4s;
    animation-duration: 7s;
}

.particle-6 {
    top: 60%;
    left: 10%;
    animation-delay: 5s;
    animation-duration: 10s;
}

@keyframes float-particle {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-2rem) translateX(1rem) scale(1.2);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-3rem) translateX(-1rem) scale(0.8);
        opacity: 0.4;
    }
    75% {
        transform: translateY(-1rem) translateX(2rem) scale(1.1);
        opacity: 0.7;
    }
}

/* ========================================
   TILT ANIMATION
   ======================================== */
.tilt-element {
    animation: gentle-tilt 6s ease-in-out infinite;
}

@keyframes gentle-tilt {
    0%, 100% {
        transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
    }
    25% {
        transform: perspective(1000px) rotateX(1deg) rotateY(-1deg);
    }
    50% {
        transform: perspective(1000px) rotateX(-1deg) rotateY(1deg);
    }
    75% {
        transform: perspective(1000px) rotateX(0.5deg) rotateY(-0.5deg);
    }
}

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

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

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

/* ========================================
   PROSE STYLING FOR MARKDOWN CONTENT
   ======================================== */
.prose {
    color: rgba(254, 243, 199, 0.85);
    font-size: 1rem;
    line-height: 1.75;
    max-width: 100%;
}

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

/* Headings */
.prose h2 {
    color: #fde68a;
    font-family: Georgia, serif;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 2.5em;
    margin-bottom: 1em;
    padding-bottom: 0.5em;
    border-bottom: 2px solid rgba(251, 191, 36, 0.2);
}

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

.prose h3 {
    color: #fcd34d;
    font-family: Georgia, serif;
    font-size: 1.375rem;
    font-weight: 600;
    line-height: 1.4;
    margin-top: 2em;
    margin-bottom: 0.75em;
}

.prose h4 {
    color: #fbbf24;
    font-family: Georgia, serif;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

/* Paragraphs */
.prose p {
    margin-bottom: 1.25em;
    text-align: left;
}

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

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

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

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

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

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

.prose ul li {
    position: relative;
    padding-left: 1.75em;
    margin-bottom: 0.625em;
}

.prose ul li::before {
    content: "◆";
    position: absolute;
    left: 0;
    color: #f59e0b;
    font-size: 0.625em;
    top: 0.5em;
}

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

.prose ol li {
    position: relative;
    padding-left: 2.25em;
    margin-bottom: 0.75em;
    counter-increment: prose-counter;
}

.prose ol li::before {
    content: counter(prose-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.5em;
    height: 1.5em;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #1a1207;
    font-weight: 700;
    font-size: 0.75em;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375em;
}

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

/* Blockquotes */
.prose blockquote {
    border-left: 4px solid #f59e0b;
    background: rgba(45, 31, 14, 0.5);
    padding: 1.25em 1.5em;
    margin: 1.5em 0;
    border-radius: 0 0.5em 0.5em 0;
    font-style: italic;
    color: #fcd34d;
}

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

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

/* Tables */
.prose .table-responsive {
    overflow-x: auto;
    margin: 1.5em 0;
    border-radius: 0.75em;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

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

.prose thead {
    background: rgba(61, 42, 20, 0.8);
}

.prose th {
    color: #fbbf24;
    font-weight: 600;
    text-align: left;
    padding: 0.875em 1em;
    border-bottom: 2px solid rgba(251, 191, 36, 0.3);
    white-space: nowrap;
}

.prose td {
    padding: 0.75em 1em;
    border-bottom: 1px solid rgba(251, 191, 36, 0.1);
    color: rgba(254, 243, 199, 0.8);
}

.prose tbody tr:hover {
    background: rgba(61, 42, 20, 0.3);
}

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

/* Code */
.prose code {
    background: rgba(45, 31, 14, 0.6);
    color: #fcd34d;
    padding: 0.125em 0.375em;
    border-radius: 0.25em;
    font-size: 0.875em;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.prose pre {
    background: rgba(26, 18, 7, 0.8);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 0.5em;
    padding: 1.25em;
    overflow-x: auto;
    margin: 1.5em 0;
}

.prose pre code {
    background: transparent;
    padding: 0;
    font-size: 0.875em;
    line-height: 1.6;
}

/* Horizontal Rule */
.prose hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #f59e0b, transparent);
    margin: 2.5em 0;
}

/* Images */
.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75em;
    margin: 1.5em 0;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.prose figure {
    margin: 2em 0;
}

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

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

.prose dt {
    color: #fde68a;
    font-weight: 600;
    margin-top: 1em;
}

.prose dd {
    padding-left: 1.5em;
    margin-top: 0.25em;
    color: rgba(254, 243, 199, 0.75);
}

/* ========================================
   PROSE GOLD VARIANT (for homepage sections)
   ======================================== */
.prose-gold {
    color: rgba(254, 243, 199, 0.8);
    line-height: 1.7;
}

.prose-gold p {
    margin-bottom: 1em;
}

.prose-gold ul {
    list-style: none;
    padding-left: 0;
}

.prose-gold ul li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */
@media (max-width: 768px) {
    .prose {
        font-size: 0.9375rem;
    }
    
    .prose h2 {
        font-size: 1.5rem;
    }
    
    .prose h3 {
        font-size: 1.25rem;
    }
    
    .prose h4 {
        font-size: 1rem;
    }
    
    .prose blockquote {
        padding: 1em 1.25em;
    }
    
    .prose table {
        font-size: 0.875em;
    }
    
    .prose th,
    .prose td {
        padding: 0.625em 0.75em;
    }
}

/* ========================================
   SHIMMER EFFECT FOR BONUS BADGE
   ======================================== */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.shimmer-gold {
    background: linear-gradient(
        90deg,
        rgba(251, 191, 36, 0) 0%,
        rgba(251, 191, 36, 0.3) 50%,
        rgba(251, 191, 36, 0) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

/* ========================================
   SCROLL INDICATOR
   ======================================== */
@keyframes bounce-scroll {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(0.5rem);
    }
}

.scroll-indicator {
    animation: bounce-scroll 2s ease-in-out infinite;
}

/* ========================================
   GLOW EFFECTS
   ======================================== */
.glow-gold {
    box-shadow: 0 0 1.25rem rgba(251, 191, 36, 0.3),
                0 0 2.5rem rgba(251, 191, 36, 0.1);
}

.glow-gold-hover:hover {
    box-shadow: 0 0 1.875rem rgba(251, 191, 36, 0.4),
                0 0 3.75rem rgba(251, 191, 36, 0.2);
}

/* ========================================
   PULSE ANIMATION FOR CTAs
   ======================================== */
@keyframes pulse-gold {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.4);
    }
    50% {
        box-shadow: 0 0 0 0.625rem rgba(251, 191, 36, 0);
    }
}

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

/* ========================================
   CUSTOM SCROLLBAR
   ======================================== */
::-webkit-scrollbar {
    width: 0.625rem;
    height: 0.625rem;
}

::-webkit-scrollbar-track {
    background: #1a1207;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #b45309, #92400e);
    border-radius: 0.3125rem;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #d97706, #b45309);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #b45309 #1a1207;
}

/* ========================================
   FOCUS STATES FOR ACCESSIBILITY
   ======================================== */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

/* ========================================
   SELECTION STYLING
   ======================================== */
::selection {
    background: rgba(251, 191, 36, 0.3);
    color: #fef3c7;
}

::-moz-selection {
    background: rgba(251, 191, 36, 0.3);
    color: #fef3c7;
}
