/* ============================================
   Bookyspin Casino - Custom Styles
   Booky Playroom Plus Theme
   ============================================ */

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

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

/* Pulse Glow */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 45, 85, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 45, 85, 0.6);
    }
}

/* Float Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Shimmer Effect */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* Spin Animation */
@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* === Marquee Container === */

.marquee-container {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.marquee-container::before,
.marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 5rem;
    z-index: 10;
    pointer-events: none;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, #1A0A2E, transparent);
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, #1A0A2E, transparent);
}

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

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

/* === Parallax Background === */

.parallax-bg {
    will-change: transform;
    transition: transform 0.1s ease-out;
}

/* === Utility Classes === */

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

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

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

/* === Table Responsive === */

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

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

.table-responsive::-webkit-scrollbar-track {
    background: #2A1A4A;
    border-radius: 0.5rem;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #4A3A6A;
    border-radius: 0.5rem;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #FFD700;
}

/* === Navigation Link Styles === */

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -0.25rem;
    left: 0;
    width: 0;
    height: 0.125rem;
    background: linear-gradient(90deg, #FF2D55, #FFD700);
    transition: width 0.3s ease;
}

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

/* === Game Card Hover Effects === */

.game-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
    transform: translateY(-0.25rem);
    box-shadow: 0 1.25rem 2.5rem rgba(255, 45, 85, 0.2);
}

/* === Custom Scrollbar === */

::-webkit-scrollbar {
    width: 0.625rem;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #FF2D55, #7B2DFF);
    border-radius: 0.5rem;
}

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

/* === Selection Styling === */

::selection {
    background: rgba(255, 45, 85, 0.3);
    color: #F8F4FF;
}

/* === Focus States === */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 0.125rem solid #FFD700;
    outline-offset: 0.125rem;
}

/* ============================================
   Prose Styling for Content Pages
   ============================================ */

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

/* Prose Headings */
.prose h2 {
    color: #F8F4FF;
    font-family: 'Fredoka', 'Comic Sans MS', cursive;
    font-weight: 700;
    font-size: 1.75rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 0.125rem solid rgba(255, 215, 0, 0.3);
    position: relative;
}

.prose h2::before {
    content: '';
    position: absolute;
    bottom: -0.125rem;
    left: 0;
    width: 4rem;
    height: 0.125rem;
    background: linear-gradient(90deg, #FF2D55, #FFD700);
}

.prose h3 {
    color: #FFD700;
    font-family: 'Fredoka', 'Comic Sans MS', cursive;
    font-weight: 600;
    font-size: 1.375rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.prose h4 {
    color: #FF2D55;
    font-family: 'Fredoka', 'Comic Sans MS', cursive;
    font-weight: 600;
    font-size: 1.125rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Prose Paragraphs */
.prose p {
    margin-bottom: 1.25rem;
    color: rgba(248, 244, 255, 0.8);
}

.prose p:first-of-type {
    font-size: 1.125rem;
    color: rgba(248, 244, 255, 0.9);
}

/* Prose Links */
.prose a {
    color: #FFD700;
    text-decoration: underline;
    text-decoration-color: rgba(255, 215, 0, 0.4);
    text-underline-offset: 0.1875rem;
    transition: all 0.2s ease;
}

.prose a:hover {
    color: #FF2D55;
    text-decoration-color: #FF2D55;
}

/* Prose Strong & Emphasis */
.prose strong {
    color: #F8F4FF;
    font-weight: 700;
}

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

/* Prose 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;
    color: rgba(248, 244, 255, 0.8);
}

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

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

.prose ol li {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 0.75rem;
    color: rgba(248, 244, 255, 0.8);
    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, #7B2DFF, #FF2D55);
    color: #F8F4FF;
    font-weight: 700;
    font-size: 0.875rem;
    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.5rem;
    margin-bottom: 0.5rem;
}

/* Prose Tables */
.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: #2A1A4A;
    border-radius: 0.75rem;
    overflow: hidden;
}

.prose .table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.5rem 0;
    border-radius: 0.75rem;
}

.prose thead {
    background: linear-gradient(135deg, #1A0A2E, #2A1A4A);
}

.prose th {
    padding: 1rem;
    text-align: left;
    color: #FFD700;
    font-family: 'Fredoka', cursive;
    font-weight: 600;
    font-size: 0.9375rem;
    border-bottom: 0.125rem solid rgba(255, 215, 0, 0.3);
}

.prose td {
    padding: 0.875rem 1rem;
    color: rgba(248, 244, 255, 0.8);
    border-bottom: 0.0625rem solid rgba(74, 58, 106, 0.5);
}

.prose tbody tr:hover {
    background: rgba(13, 5, 25, 0.4);
}

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

/* Prose Blockquotes */
.prose blockquote {
    border-left: 0.25rem solid #FF2D55;
    background: linear-gradient(135deg, rgba(255, 45, 85, 0.1), rgba(123, 45, 255, 0.1));
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 0.75rem 0.75rem 0;
    font-style: italic;
    color: rgba(248, 244, 255, 0.9);
}

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

.prose blockquote p::before {
    content: '"';
    color: #FF2D55;
    font-size: 1.5rem;
    font-weight: 700;
    margin-right: 0.25rem;
}

.prose blockquote p::after {
    content: '"';
    color: #FF2D55;
    font-size: 1.5rem;
    font-weight: 700;
    margin-left: 0.25rem;
}

/* Prose Code */
.prose code {
    background: rgba(123, 45, 255, 0.2);
    color: #FFD700;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.875em;
}

.prose pre {
    background: #1A0A2E;
    border: 0.0625rem solid #4A3A6A;
    border-radius: 0.75rem;
    padding: 1.25rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

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

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

/* Prose Images */
.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 1.5rem 0;
    box-shadow: 0 0.625rem 2.5rem rgba(0, 0, 0, 0.3);
    border: 0.125rem solid rgba(255, 215, 0, 0.2);
}

.prose figure {
    margin: 1.5rem 0;
}

.prose figcaption {
    text-align: center;
    color: rgba(248, 244, 255, 0.6);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    font-style: italic;
}

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

@media (max-width: 768px) {
    .prose {
        font-size: 1rem;
    }

    .prose h2 {
        font-size: 1.5rem;
        margin-top: 2rem;
    }

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

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

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

    .prose blockquote {
        padding: 1rem 1.25rem;
    }

    .marquee-container::before,
    .marquee-container::after {
        width: 2rem;
    }
}

@media (max-width: 480px) {
    .prose h2 {
        font-size: 1.375rem;
    }

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

    .prose ul li,
    .prose ol li {
        padding-left: 1.5rem;
    }

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

/* === Print Styles === */

@media print {
    .prose {
        color: #000;
    }

    .prose h2,
    .prose h3,
    .prose h4 {
        color: #000;
    }

    .prose a {
        color: #000;
        text-decoration: underline;
    }

    .prose table {
        background: #fff;
    }

    .prose th,
    .prose td {
        color: #000;
        border: 0.0625rem solid #ccc;
    }
}
