/* ================================
   Citywinnerz Casino - Custom CSS
   City Winner Skyline Max Theme
   ================================ */

/* ---- Keyframe Animations ---- */

@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(1.05);
    }
}

@keyframes pulse-glow-delayed {
    0%, 100% {
        opacity: 0.15;
        transform: scale(1);
    }
    50% {
        opacity: 0.35;
        transform: scale(1.08);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-0.625rem);
    }
}

@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 0 0 1.25rem rgba(0, 212, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 2.5rem rgba(0, 212, 255, 0.6);
    }
}

/* ---- Animation Classes ---- */

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

.animate-pulse-glow-delayed {
    animation: pulse-glow-delayed 5s ease-in-out infinite;
    animation-delay: 1s;
}

.animate-shimmer {
    background-size: 200% auto;
    animation: shimmer 3s linear infinite;
}

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

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

/* ---- Marquee Styles ---- */

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

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

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

/* ---- Table Responsive Wrapper ---- */

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

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

/* ---- Global Overflow Control ---- */

html {
    overflow-x: clip;
    overflow-y: auto;
}

body {
    overflow-x: clip;
}

/* ---- Scrollbar Styling ---- */

::-webkit-scrollbar {
    width: 0.5rem;
    height: 0.5rem;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00d4ff, #8b5cf6);
    border-radius: 0.25rem;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #00d4ff, #ec4899);
}

/* ================================
   Prose Styling for Readability
   ================================ */

.prose {
    color: #d1d5db;
    font-size: 1rem;
    line-height: 1.75;
    max-width: 100%;
}

/* Headings */
.prose h2 {
    color: #ffffff;
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 0.125rem solid #2a3a5a;
    background: linear-gradient(90deg, #00d4ff, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.prose h3 {
    color: #f3f4f6;
    font-size: 1.375rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

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

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

.prose p:first-of-type {
    font-size: 1.125rem;
    color: #e5e7eb;
}

/* Links */
.prose a {
    color: #00d4ff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.prose a:hover {
    color: #ffd700;
    text-shadow: 0 0 0.5rem rgba(0, 212, 255, 0.4);
}

/* 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: #d1d5db;
}

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

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

.prose ol li {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 0.75rem;
    color: #d1d5db;
    counter-increment: item;
}

.prose ol li::before {
    content: counter(item);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.75rem;
    height: 1.75rem;
    background: linear-gradient(135deg, #00d4ff, #8b5cf6);
    color: #0a0e17;
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Blockquotes */
.prose blockquote {
    border-left: 0.25rem solid #00d4ff;
    background: linear-gradient(90deg, rgba(0, 212, 255, 0.1), transparent);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 0.5rem 0.5rem 0;
}

.prose blockquote p {
    color: #e5e7eb;
    font-style: italic;
    margin-bottom: 0;
}

/* Tables */
.prose .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.5rem 0;
    border-radius: 0.75rem;
    border: 0.0625rem solid #2a3a5a;
}

.prose table {
    width: 100%;
    min-width: 31.25rem;
    border-collapse: collapse;
    background: #1a2235;
}

.prose thead {
    background: #0f1729;
}

.prose th {
    padding: 1rem;
    text-align: left;
    color: #00d4ff;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 0.125rem solid #2a3a5a;
}

.prose td {
    padding: 0.875rem 1rem;
    color: #d1d5db;
    border-bottom: 0.0625rem solid #2a3a5a;
}

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

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

/* Images */
.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 1.5rem 0;
    border: 0.0625rem solid #2a3a5a;
}

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

/* Emphasis/Italic */
.prose em {
    color: #ffd700;
    font-style: italic;
}

/* Code */
.prose code {
    background: #1a2235;
    color: #00d4ff;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
    font-family: monospace;
}

.prose pre {
    background: #0f1729;
    border: 0.0625rem solid #2a3a5a;
    border-radius: 0.5rem;
    padding: 1rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

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

/* Horizontal Rule */
.prose hr {
    border: none;
    height: 0.0625rem;
    background: linear-gradient(90deg, transparent, #2a3a5a, #00d4ff, #2a3a5a, transparent);
    margin: 2.5rem 0;
}

/* ---- Inverse Prose (for light backgrounds) ---- */

.prose-invert {
    color: #d1d5db;
}

/* ---- Responsive Typography ---- */

@media (max-width: 48rem) {
    .prose {
        font-size: 0.9375rem;
    }

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

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

    .prose h4 {
        font-size: 1.0625rem;
    }

    .prose p:first-of-type {
        font-size: 1rem;
    }

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

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

/* ---- Focus States for Accessibility ---- */

a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 0.125rem solid #00d4ff;
    outline-offset: 0.125rem;
}

/* ---- Selection Color ---- */

::selection {
    background: rgba(0, 212, 255, 0.3);
    color: #ffffff;
}

/* ---- Details/Summary Styling ---- */

details summary {
    list-style: none;
}

details summary::-webkit-details-marker {
    display: none;
}

/* ---- Smooth Transitions ---- */

* {
    scroll-behavior: smooth;
}

/* ---- Print Styles ---- */

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

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

    .prose h2,
    .prose h3,
    .prose h4 {
        color: #000000;
        -webkit-text-fill-color: #000000;
        background: none;
    }
}
