/* Win Place Motion Grid Theme - Custom CSS */
/* Keyframes, Animations & Prose Styling */

/* ===========================
   HTML & Body Overflow Control
   =========================== */
html,
body {
    overflow-x: clip;
    overflow-y: auto;
}

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

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

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

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

/* ===========================
   Parallax Base Styles
   =========================== */
.parallax-hero {
    will-change: transform;
    transition: transform 0.1s ease-out;
}

/* ===========================
   Game Card Hover Effects
   =========================== */
.game-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
    transform: translateY(-0.5rem);
}

/* ===========================
   FAQ Accordion Transitions
   =========================== */
.faq-toggle i {
    transition: transform 0.3s ease;
}

.faq-content {
    transition: all 0.3s ease;
}

/* ===========================
   Button Pulse Animation
   =========================== */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
    }
    50% {
        box-shadow: 0 0 0 0.75rem rgba(245, 158, 11, 0);
    }
}

.btn-pulse {
    animation: pulse-glow 2s infinite;
}

/* ===========================
   Scrollbar Styling
   =========================== */
.scrollbar-thin::-webkit-scrollbar {
    height: 0.5rem;
}

.scrollbar-thin::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 0.25rem;
}

.scrollbar-thin::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 0.25rem;
}

.scrollbar-thin::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* ===========================
   Table Responsive Wrapper
   =========================== */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

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

/* ===========================
   PROSE STYLING FOR MARKDOWN
   =========================== */
.prose {
    color: #334155;
    font-size: 1rem;
    line-height: 1.75;
    max-width: 100%;
}

/* Headings */
.prose h2 {
    color: #1e3a5f;
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    border-bottom: 2px solid #f59e0b;
    padding-bottom: 0.5rem;
}

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

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

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

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

/* Links */
.prose a {
    color: #1e3a5f;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: #f59e0b;
    text-underline-offset: 0.25em;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.prose a:hover {
    color: #f59e0b;
    text-decoration-color: #1e3a5f;
}

/* Lists */
.prose ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.prose ol {
    list-style-type: decimal;
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.prose li {
    margin-bottom: 0.5rem;
    color: #475569;
    padding-left: 0.375rem;
}

.prose li::marker {
    color: #f59e0b;
}

.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: 4px solid #f59e0b;
    background: linear-gradient(to right, #fef3c7, transparent);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #334155;
    border-radius: 0 0.5rem 0.5rem 0;
}

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

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

.prose thead {
    background: #1e3a5f;
    color: #ffffff;
}

.prose th {
    padding: 0.875rem 1rem;
    text-align: left;
    font-weight: 600;
}

.prose td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    color: #475569;
}

.prose tbody tr:hover {
    background: #f8fafc;
}

.prose tbody tr:nth-child(even) {
    background: #f1f5f9;
}

.prose tbody tr:nth-child(even):hover {
    background: #e2e8f0;
}

/* Table Responsive Wrapper for Prose */
.prose .table-responsive,
.prose > div:has(table) {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.5rem 0;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Code */
.prose code {
    background: #f1f5f9;
    color: #1e3a5f;
    padding: 0.2em 0.4em;
    border-radius: 0.25rem;
    font-size: 0.875em;
    font-family: ui-monospace, monospace;
}

.prose pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.25rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

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

/* Images */
.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Horizontal Rule */
.prose hr {
    border: none;
    border-top: 2px solid #e2e8f0;
    margin: 2.5rem 0;
}

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

.prose em {
    font-style: italic;
}

/* ===========================
   Responsive Typography
   =========================== */
@media (max-width: 768px) {
    .prose {
        font-size: 0.9375rem;
    }
    
    .prose h2 {
        font-size: 1.5rem;
    }
    
    .prose h3 {
        font-size: 1.25rem;
    }
    
    .prose p:first-of-type {
        font-size: 1rem;
    }
}

/* ===========================
   Hero Section Enhancements
   =========================== */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(245, 158, 11, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(45, 90, 135, 0.2) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

/* ===========================
   Smooth Transitions
   =========================== */
a,
button {
    transition: all 0.2s ease;
}

/* ===========================
   Focus States for Accessibility
   =========================== */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #f59e0b;
    outline-offset: 2px;
}

/* ===========================
   Print Styles
   =========================== */
@media print {
    .prose {
        color: #000;
    }
    
    .prose a {
        color: #000;
        text-decoration: underline;
    }
    
    .prose h2,
    .prose h3,
    .prose h4 {
        color: #000;
    }
}
