/* Winningz Rush Turbo Theme - Custom CSS */
/* Animation Keyframes, Prose Styling, and Overrides */

/* =====================================================
   ROOT VARIABLES
   ===================================================== */
:root {
    --rush-dark: #0a0a12;
    --rush-darker: #050508;
    --rush-purple: #8b5cf6;
    --rush-pink: #ec4899;
    --rush-cyan: #06b6d4;
    --rush-orange: #f97316;
    --rush-gold: #fbbf24;
    --rush-surface: #15151f;
    --rush-border: #2a2a3d;
}

/* =====================================================
   GLOBAL STYLES
   ===================================================== */
html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--rush-dark);
    color: #e5e7eb;
    line-height: 1.6;
}

/* =====================================================
   ANIMATION KEYFRAMES
   ===================================================== */

/* Gradient Animation */
@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradient-shift 4s ease infinite;
}

/* Glow Pulse Animation */
@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 0 0 1.25rem rgba(139, 92, 246, 0.4),
                    0 0 2.5rem rgba(236, 72, 153, 0.2);
    }
    50% {
        box-shadow: 0 0 1.875rem rgba(139, 92, 246, 0.6),
                    0 0 3.75rem rgba(236, 72, 153, 0.4);
    }
}

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

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

.marquee-bg {
    display: flex;
    animation: marquee 20s linear infinite;
    white-space: nowrap;
}

/* Particle Animation */
@keyframes particle-float {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-1.25rem) translateX(0.625rem) scale(1.1);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-0.625rem) translateX(-0.625rem) scale(0.9);
        opacity: 0.4;
    }
    75% {
        transform: translateY(-1.875rem) translateX(0.3125rem) scale(1.05);
        opacity: 0.7;
    }
}

@keyframes particle-rise {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

.particles-container {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particles-container::before,
.particles-container::after {
    content: '';
    position: absolute;
    width: 0.375rem;
    height: 0.375rem;
    background: var(--rush-cyan);
    border-radius: 50%;
    animation: particle-rise 15s linear infinite;
    left: 20%;
    box-shadow: 0 0 0.625rem var(--rush-cyan);
}

.particles-container::after {
    width: 0.25rem;
    height: 0.25rem;
    background: var(--rush-pink);
    animation-duration: 12s;
    animation-delay: 3s;
    left: 70%;
    box-shadow: 0 0 0.625rem var(--rush-pink);
}

/* Motion Blur Hover Effect */
.motion-blur-hover {
    transition: all 0.3s ease;
}

.motion-blur-hover:hover {
    filter: blur(0);
    text-shadow: 0.125rem 0 0.125rem rgba(139, 92, 246, 0.3),
                 -0.125rem 0 0.125rem rgba(236, 72, 153, 0.3);
}

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

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

/* Pulse Ring Animation */
@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.pulse-ring::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 0.125rem solid var(--rush-purple);
    animation: pulse-ring 1.5s ease-out infinite;
}

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

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

/* =====================================================
   PROSE STYLING FOR MARKDOWN CONTENT
   ===================================================== */
.prose {
    max-width: 65ch;
    width: 100%;
    font-size: 1.0625rem;
    line-height: 1.75;
    color: #d1d5db;
}

/* Headings */
.prose h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 0.125rem solid var(--rush-border);
    line-height: 1.3;
}

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

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

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

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

/* Links */
.prose a {
    color: var(--rush-cyan);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    border-bottom: 0.0625rem solid transparent;
}

.prose a:hover {
    color: var(--rush-pink);
    border-bottom-color: var(--rush-pink);
}

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

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

/* Lists - Unordered */
.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, var(--rush-purple), var(--rush-pink));
    border-radius: 50%;
}

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

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

.prose ol li::before {
    content: counter(prose-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.5rem;
    height: 1.5rem;
    background: linear-gradient(135deg, var(--rush-purple), var(--rush-pink));
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
    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;
}

/* Blockquotes */
.prose blockquote {
    border-left: 0.25rem solid var(--rush-purple);
    background: var(--rush-surface);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 0.5rem 0.5rem 0;
    font-style: italic;
    color: #e5e7eb;
}

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

.prose blockquote p:last-child {
    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 var(--rush-border);
}

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

.prose thead {
    background: var(--rush-surface);
}

.prose th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #ffffff;
    border-bottom: 0.125rem solid var(--rush-border);
    white-space: nowrap;
}

.prose td {
    padding: 0.875rem 1rem;
    border-bottom: 0.0625rem solid var(--rush-border);
    color: #d1d5db;
}

.prose tbody tr:hover {
    background: rgba(21, 21, 31, 0.5);
}

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

/* Code Blocks */
.prose code {
    background: var(--rush-surface);
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
    color: var(--rush-cyan);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.prose pre {
    background: var(--rush-darker);
    border: 0.0625rem solid var(--rush-border);
    border-radius: 0.75rem;
    padding: 1.25rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

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

/* Horizontal Rules */
.prose hr {
    border: none;
    height: 0.0625rem;
    background: linear-gradient(90deg, transparent, var(--rush-purple), var(--rush-pink), transparent);
    margin: 2.5rem 0;
}

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

/* Definition Lists */
.prose dl {
    margin-bottom: 1.5rem;
}

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

.prose dd {
    margin-left: 1.5rem;
    color: #d1d5db;
}

/* =====================================================
   SPECIAL PROSE ELEMENTS
   ===================================================== */

/* Info Boxes / Callouts */
.prose .callout,
.prose .info-box {
    background: var(--rush-surface);
    border: 0.0625rem solid var(--rush-border);
    border-left: 0.25rem solid var(--rush-cyan);
    padding: 1rem 1.25rem;
    border-radius: 0 0.5rem 0.5rem 0;
    margin: 1.5rem 0;
}

.prose .callout-warning {
    border-left-color: var(--rush-orange);
}

.prose .callout-success {
    border-left-color: #22c55e;
}

/* =====================================================
   RESPONSIVE ADJUSTMENTS
   ===================================================== */
@media (max-width: 48rem) {
    .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.75rem;
    }
    
    .prose blockquote {
        padding: 1rem;
        margin: 1rem 0;
    }
}

@media (max-width: 30rem) {
    .prose {
        font-size: 0.9375rem;
    }
    
    .prose h2 {
        font-size: 1.375rem;
    }
    
    .prose h3 {
        font-size: 1.125rem;
    }
    
    .prose ul li,
    .prose ol li {
        padding-left: 1.5rem;
    }
}

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

::-webkit-scrollbar-track {
    background: var(--rush-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--rush-border);
    border-radius: 0.25rem;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--rush-purple);
}

/* =====================================================
   SELECTION STYLING
   ===================================================== */
::selection {
    background: rgba(139, 92, 246, 0.3);
    color: #ffffff;
}

::-moz-selection {
    background: rgba(139, 92, 246, 0.3);
    color: #ffffff;
}

/* =====================================================
   FOCUS STATES FOR ACCESSIBILITY
   ===================================================== */
a:focus-visible,
button:focus-visible {
    outline: 0.125rem solid var(--rush-cyan);
    outline-offset: 0.125rem;
}

details summary:focus-visible {
    outline: 0.125rem solid var(--rush-cyan);
    outline-offset: 0.125rem;
    border-radius: 0.5rem;
}

/* =====================================================
   ADDITIONAL UTILITY CLASSES
   ===================================================== */
.text-gradient {
    background: linear-gradient(135deg, var(--rush-purple), var(--rush-pink), var(--rush-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.border-gradient {
    border: 0.125rem solid transparent;
    background: linear-gradient(var(--rush-surface), var(--rush-surface)) padding-box,
                linear-gradient(135deg, var(--rush-purple), var(--rush-pink)) border-box;
}

.glow-purple {
    box-shadow: 0 0 1.25rem rgba(139, 92, 246, 0.3);
}

.glow-pink {
    box-shadow: 0 0 1.25rem rgba(236, 72, 153, 0.3);
}

.glow-cyan {
    box-shadow: 0 0 1.25rem rgba(6, 182, 212, 0.3);
}
