/* =============================================
   Candicabz Casino - Custom Styles
   Pop Drive Lite Theme
   ============================================= */

/* =============================================
   Base & Reset
   ============================================= */
html {
    scroll-behavior: smooth;
    overflow-x: clip;
    overflow-y: auto;
}

body {
    overflow-x: clip;
}

/* =============================================
   Animations - Keyframes
   ============================================= */

/* Parallax Animation */
@keyframes parallax-float-slow {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-1.25rem) translateX(0.625rem);
    }
    50% {
        transform: translateY(-0.625rem) translateX(-0.625rem);
    }
    75% {
        transform: translateY(-1.875rem) translateX(0.3125rem);
    }
}

@keyframes parallax-float-medium {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-1.875rem) scale(1.05);
    }
}

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

/* Pulse Glow */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 1.25rem rgba(99, 102, 241, 0.3);
    }
    50% {
        box-shadow: 0 0 2.5rem rgba(99, 102, 241, 0.5);
    }
}

/* Fade In Up */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(1.25rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================================
   Animation Classes
   ============================================= */
.parallax-slow {
    animation: parallax-float-slow 8s ease-in-out infinite;
}

.parallax-medium {
    animation: parallax-float-medium 6s ease-in-out infinite;
}

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

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

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

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

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

.fade-in-up {
    animation: fade-in-up 0.6s ease-out forwards;
}

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

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

/* =============================================
   Prose Styles - Typography for Markdown Content
   ============================================= */
.prose {
    color: #1e1b4b;
    line-height: 1.75;
    max-width: 100%;
}

/* Headings */
.prose h2 {
    color: #1e1b4b;
    font-size: clamp(1.5rem, 4vw, 1.875rem);
    font-weight: 700;
    margin-top: 2.5em;
    margin-bottom: 1em;
    line-height: 1.3;
    padding-bottom: 0.5em;
    border-bottom: 2px solid rgba(99, 102, 241, 0.2);
}

.prose h2:first-child {
    margin-top: 0;
}

.prose h3 {
    color: #312e81;
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 600;
    margin-top: 2em;
    margin-bottom: 0.75em;
    line-height: 1.4;
}

.prose h4 {
    color: #312e81;
    font-size: clamp(1.125rem, 2.5vw, 1.25rem);
    font-weight: 600;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

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

.prose p:last-child {
    margin-bottom: 0;
}

/* Links */
.prose a {
    color: #6366f1;
    text-decoration: underline;
    text-underline-offset: 0.125em;
    transition: color 0.2s ease;
}

.prose a:hover {
    color: #4f46e5;
}

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

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

.prose ol {
    list-style-type: decimal;
}

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

.prose li::marker {
    color: #6366f1;
}

.prose ul ul,
.prose ol ol,
.prose ul ol,
.prose ol ul {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

/* Nested list styles */
.prose ul ul {
    list-style-type: circle;
}

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

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

.prose thead {
    background: linear-gradient(to right, #1e1b4b, #312e81);
}

.prose th {
    color: #f8fafc;
    font-weight: 600;
    padding: 0.875em 1em;
    text-align: left;
}

.prose td {
    padding: 0.875em 1em;
    border-bottom: 1px solid #e2e8f0;
    color: #374151;
}

.prose tbody tr:hover {
    background-color: rgba(99, 102, 241, 0.05);
}

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

.prose tbody tr:nth-child(even):hover {
    background-color: rgba(99, 102, 241, 0.08);
}

/* Table wrapper for responsiveness in prose */
.prose .table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.5em 0;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
}

.prose .table-wrapper table {
    margin: 0;
}

/* Blockquotes */
.prose blockquote {
    border-left: 4px solid #6366f1;
    background: linear-gradient(to right, rgba(99, 102, 241, 0.08), transparent);
    padding: 1em 1.5em;
    margin: 1.5em 0;
    border-radius: 0 0.5rem 0.5rem 0;
    font-style: italic;
    color: #4b5563;
}

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

.prose blockquote p:not(:last-child) {
    margin-bottom: 0.75em;
}

/* Code */
.prose code {
    background-color: #f1f5f9;
    color: #6366f1;
    padding: 0.125em 0.375em;
    border-radius: 0.25rem;
    font-size: 0.875em;
    font-family: ui-monospace, monospace;
}

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

.prose pre code {
    background: none;
    color: inherit;
    padding: 0;
    font-size: 0.875em;
}

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

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

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

.prose em {
    font-style: italic;
}

/* Definition Lists */
.prose dl {
    margin: 1.5em 0;
}

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

.prose dd {
    margin-left: 1.5em;
    color: #374151;
}

/* =============================================
   Utility Classes
   ============================================= */
.text-balance {
    text-wrap: balance;
}

.text-pretty {
    text-wrap: pretty;
}

/* Hide scrollbar but keep functionality */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Custom scrollbar for tables */
.table-responsive::-webkit-scrollbar {
    height: 0.5rem;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 0.25rem;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #6366f1;
    border-radius: 0.25rem;
}

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

/* =============================================
   Responsive Adjustments
   ============================================= */
@media (max-width: 768px) {
    .prose h2 {
        margin-top: 2em;
    }
    
    .prose h3 {
        margin-top: 1.5em;
    }
    
    .prose ul,
    .prose ol {
        padding-left: 1.25em;
    }
    
    .prose blockquote {
        padding: 0.75em 1em;
        margin: 1.25em 0;
    }
    
    .prose table {
        font-size: 0.875em;
    }
    
    .prose th,
    .prose td {
        padding: 0.625em 0.75em;
    }
}

/* =============================================
   Details/Accordion Enhancement
   ============================================= */
details summary::-webkit-details-marker {
    display: none;
}

details summary {
    list-style: none;
}

details[open] summary {
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

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

/* =============================================
   Print Styles
   ============================================= */
@media print {
    .prose {
        color: #000;
    }
    
    .prose a {
        color: #000;
        text-decoration: underline;
    }
    
    .prose thead {
        background: #e5e7eb;
    }
    
    .prose th {
        color: #000;
    }
}
