/* SuperQuantum Play Prime Theme - Custom CSS */
/* Keyframes, Animations & Prose Styling */

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

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

/* Particle Float Animation */
@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-30vh) translateX(10vw) scale(1.2);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-60vh) translateX(-5vw) scale(0.8);
        opacity: 0.4;
    }
    75% {
        transform: translateY(-80vh) translateX(15vw) scale(1.1);
        opacity: 0.2;
    }
}

/* Glow Pulse Animation */
@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 1.25rem rgba(255, 0, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 2.5rem rgba(0, 255, 255, 0.5);
    }
}

/* Neon Flicker Animation */
@keyframes neonFlicker {
    0%, 100% {
        opacity: 1;
    }
    92% {
        opacity: 1;
    }
    93% {
        opacity: 0.8;
    }
    94% {
        opacity: 1;
    }
    96% {
        opacity: 0.9;
    }
    97% {
        opacity: 1;
    }
}

/* ============================================
   ANIMATION CLASSES
   ============================================ */

/* Marquee Container */
.marquee-container {
    position: relative;
    width: 100%;
}

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

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

/* Double the content for seamless loop */
.marquee-content::after {
    content: "";
    display: flex;
}

/* Particle Styles */
.particles-container {
    z-index: 0;
}

.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.particle-1 {
    width: 0.5rem;
    height: 0.5rem;
    background: #ff00ff;
    left: 10%;
    bottom: 0;
    animation: particleFloat 15s ease-in-out infinite;
}

.particle-2 {
    width: 0.375rem;
    height: 0.375rem;
    background: #00ffff;
    left: 30%;
    bottom: 0;
    animation: particleFloat 18s ease-in-out infinite;
    animation-delay: -3s;
}

.particle-3 {
    width: 0.625rem;
    height: 0.625rem;
    background: #ffff00;
    left: 50%;
    bottom: 0;
    animation: particleFloat 12s ease-in-out infinite;
    animation-delay: -6s;
}

.particle-4 {
    width: 0.25rem;
    height: 0.25rem;
    background: #ff00ff;
    left: 70%;
    bottom: 0;
    animation: particleFloat 20s ease-in-out infinite;
    animation-delay: -9s;
}

.particle-5 {
    width: 0.5rem;
    height: 0.5rem;
    background: #00ffff;
    left: 85%;
    bottom: 0;
    animation: particleFloat 16s ease-in-out infinite;
    animation-delay: -12s;
}

.particle-6 {
    width: 0.375rem;
    height: 0.375rem;
    background: #ffff00;
    left: 95%;
    bottom: 0;
    animation: particleFloat 14s ease-in-out infinite;
    animation-delay: -4s;
}

/* Glow Effect on Cards */
.game-card:hover {
    animation: glowPulse 2s ease-in-out infinite;
}

/* Nav Link Underline Animation */
.nav-link {
    position: relative;
}

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

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

/* ============================================
   TABLE RESPONSIVE
   ============================================ */

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

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

/* ============================================
   PROSE STYLING FOR MARKDOWN CONTENT
   ============================================ */

.prose {
    color: #e5e7eb;
    line-height: 1.75;
    max-width: 100%;
}

/* Headings */
.prose h2 {
    color: #00ffff;
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 0.125rem solid rgba(255, 0, 255, 0.3);
    line-height: 1.3;
}

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

.prose h4 {
    color: #ffff00;
    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: #00ffff;
    text-decoration: none;
    border-bottom: 0.0625rem solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.prose a:hover {
    color: #ff00ff;
    border-bottom-color: #ff00ff;
}

/* Lists */
.prose ul,
.prose ol {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.prose ul {
    list-style-type: none;
}

.prose ul li {
    position: relative;
    padding-left: 1.5rem;
    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, #ff00ff, #00ffff);
    border-radius: 50%;
}

.prose ol {
    list-style-type: none;
    counter-reset: item;
}

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

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

/* Blockquotes */
.prose blockquote {
    border-left: 0.25rem solid #ff00ff;
    background: rgba(31, 15, 53, 0.8);
    padding: 1rem 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;
}

/* Tables */
.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9375rem;
}

.prose .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.5rem 0;
}

.prose thead {
    background: linear-gradient(90deg, rgba(255, 0, 255, 0.2), rgba(0, 255, 255, 0.2));
}

.prose th {
    padding: 0.875rem 1rem;
    text-align: left;
    font-weight: 600;
    color: #00ffff;
    border-bottom: 0.125rem solid rgba(255, 0, 255, 0.3);
    white-space: nowrap;
}

.prose td {
    padding: 0.875rem 1rem;
    border-bottom: 0.0625rem solid rgba(255, 0, 255, 0.1);
    color: #d1d5db;
}

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

/* Code */
.prose code {
    background: rgba(31, 15, 53, 0.8);
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
    color: #ffff00;
    border: 0.0625rem solid rgba(255, 0, 255, 0.2);
}

.prose pre {
    background: rgba(31, 15, 53, 0.9);
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 0.0625rem solid rgba(255, 0, 255, 0.2);
}

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

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

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

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

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

/* ============================================
   RESPONSIVE TYPOGRAPHY
   ============================================ */

@media (max-width: 48rem) {
    .prose h2 {
        font-size: 1.5rem;
        margin-top: 2rem;
    }
    
    .prose h3 {
        font-size: 1.25rem;
    }
    
    .prose p:first-of-type {
        font-size: 1rem;
    }
    
    .prose ul li,
    .prose ol li {
        padding-left: 1.25rem;
    }
    
    .prose th,
    .prose td {
        padding: 0.625rem 0.75rem;
        font-size: 0.875rem;
    }
}

/* ============================================
   UTILITY OVERRIDES
   ============================================ */

/* Ensure proper scrolling for details/summary */
details summary::-webkit-details-marker {
    display: none;
}

/* Focus states for accessibility */
a:focus,
button:focus {
    outline: 0.125rem solid #00ffff;
    outline-offset: 0.125rem;
}

/* Selection styling */
::selection {
    background: rgba(255, 0, 255, 0.4);
    color: #ffffff;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 0.5rem;
    height: 0.5rem;
}

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

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

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

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .particles-container,
    .marquee-container {
        display: none;
    }
    
    .prose {
        color: #000000;
    }
    
    .prose h2,
    .prose h3,
    .prose h4 {
        color: #000000;
    }
    
    .prose a {
        color: #000000;
        text-decoration: underline;
    }
}
