/* ==========================================================================
   Panteon Casino - Custom CSS
   Theme: Panteon Legacy North (warmer lighting, deeper gold accents)
   ========================================================================== */

/* ==========================================================================
   CSS Custom Properties
   ========================================================================== */
:root {
    --panteon-black: #0a0908;
    --panteon-dark: #1a1714;
    --panteon-bronze: #2d2520;
    --panteon-gold: #c9a227;
    --panteon-gold-light: #e4c76b;
    --panteon-gold-deep: #8b6914;
    --panteon-warm: #f5e6c8;
    --panteon-cream: #faf6ed;
    --panteon-amber: #d4a017;
    --panteon-copper: #b87333;
}

/* ==========================================================================
   Global Overflow Control
   ========================================================================== */
html {
    overflow-x: clip;
    overflow-y: auto;
}

body {
    overflow-x: clip;
}

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

/* 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-track:hover {
    animation-play-state: paused;
}

/* Parallax Effect */
@keyframes parallax-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-1rem);
    }
}

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

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(1.25rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

/* Shimmer Effect */
@keyframes shimmer {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 100% 0;
    }
}

.shimmer {
    background: linear-gradient(
        90deg,
        var(--panteon-gold) 0%,
        var(--panteon-gold-light) 50%,
        var(--panteon-gold) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

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

.table-responsive table {
    min-width: 37.5rem;
}

/* ==========================================================================
   Scrollbar Styling
   ========================================================================== */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

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

/* Custom Scrollbar for Content Areas */
.custom-scrollbar::-webkit-scrollbar {
    width: 0.5rem;
    height: 0.5rem;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: var(--panteon-dark);
    border-radius: 0.25rem;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: var(--panteon-gold-deep);
    border-radius: 0.25rem;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: var(--panteon-gold);
}

/* ==========================================================================
   Prose Styling for Markdown Content
   ========================================================================== */
.prose {
    color: var(--panteon-cream);
    line-height: 1.7;
    max-width: 100%;
}

/* Headings */
.prose h2 {
    font-family: Georgia, serif;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--panteon-gold);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 0.125rem solid rgba(201, 162, 39, 0.2);
    line-height: 1.3;
}

.prose h3 {
    font-family: Georgia, serif;
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 600;
    color: var(--panteon-gold-light);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.prose h4 {
    font-family: Georgia, serif;
    font-size: clamp(1.125rem, 2.5vw, 1.25rem);
    font-weight: 600;
    color: var(--panteon-cream);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

/* Paragraphs */
.prose p {
    margin-bottom: 1.25rem;
    color: rgba(250, 246, 237, 0.85);
    font-size: clamp(0.9375rem, 2vw, 1rem);
    line-height: 1.8;
}

.prose p:first-of-type {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
}

/* Links */
.prose a {
    color: var(--panteon-gold);
    text-decoration: underline;
    text-underline-offset: 0.1875rem;
    transition: color 0.2s ease;
}

.prose a:hover {
    color: var(--panteon-gold-light);
}

/* Strong and Emphasis */
.prose strong {
    color: var(--panteon-cream);
    font-weight: 600;
}

.prose em {
    color: var(--panteon-gold-light);
    font-style: italic;
}

/* Unordered 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: rgba(250, 246, 237, 0.85);
    font-size: clamp(0.9375rem, 2vw, 1rem);
    line-height: 1.7;
}

.prose ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.625rem;
    width: 0.5rem;
    height: 0.5rem;
    background: var(--panteon-gold);
    border-radius: 50%;
}

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

.prose ol li {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 0.75rem;
    color: rgba(250, 246, 237, 0.85);
    font-size: clamp(0.9375rem, 2vw, 1rem);
    line-height: 1.7;
    counter-increment: list-counter;
}

.prose ol li::before {
    content: counter(list-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.75rem;
    height: 1.75rem;
    background: var(--panteon-bronze);
    border: 0.125rem solid var(--panteon-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--panteon-gold);
}

/* Blockquotes */
.prose blockquote {
    border-left: 0.25rem solid var(--panteon-gold);
    background: var(--panteon-bronze);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 0.5rem 0.5rem 0;
    font-style: italic;
}

.prose blockquote p {
    color: var(--panteon-warm);
    margin-bottom: 0;
    font-size: clamp(1rem, 2.5vw, 1.125rem);
}

.prose blockquote p::before {
    content: '"';
    color: var(--panteon-gold);
    font-size: 1.5rem;
    margin-right: 0.25rem;
}

.prose blockquote p::after {
    content: '"';
    color: var(--panteon-gold);
    font-size: 1.5rem;
    margin-left: 0.25rem;
}

/* Tables */
.prose .table-responsive {
    overflow-x: auto;
    margin: 1.5rem 0;
    border-radius: 0.75rem;
    border: 0.0625rem solid rgba(201, 162, 39, 0.2);
}

.prose table {
    width: 100%;
    min-width: 25rem;
    border-collapse: collapse;
    font-size: clamp(0.8125rem, 1.8vw, 0.9375rem);
}

.prose thead {
    background: var(--panteon-bronze);
}

.prose th {
    padding: 0.875rem 1rem;
    text-align: left;
    font-weight: 700;
    color: var(--panteon-gold);
    font-family: Georgia, serif;
    white-space: nowrap;
}

.prose td {
    padding: 0.875rem 1rem;
    color: rgba(250, 246, 237, 0.85);
    border-top: 0.0625rem solid rgba(201, 162, 39, 0.1);
}

.prose tbody tr {
    background: var(--panteon-dark);
    transition: background 0.2s ease;
}

.prose tbody tr:hover {
    background: rgba(45, 37, 32, 0.5);
}

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

/* Code */
.prose code {
    background: var(--panteon-bronze);
    color: var(--panteon-gold-light);
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
    font-family: 'Courier New', monospace;
}

.prose pre {
    background: var(--panteon-bronze);
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 0.0625rem solid rgba(201, 162, 39, 0.2);
}

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

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

/* First Paragraph Emphasis */
.prose > p:first-of-type::first-letter {
    font-family: Georgia, serif;
    font-size: 3em;
    float: left;
    line-height: 1;
    margin-right: 0.5rem;
    margin-top: 0.25rem;
    color: var(--panteon-gold);
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 48rem) {
    .prose h2 {
        margin-top: 2rem;
    }

    .prose h3 {
        margin-top: 1.5rem;
    }

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

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

    .prose blockquote {
        padding: 1rem 1.25rem;
        margin: 1rem 0;
    }

    .prose > p:first-of-type::first-letter {
        font-size: 2.5em;
    }
}

/* ==========================================================================
   Selection Styling
   ========================================================================== */
::selection {
    background: var(--panteon-gold);
    color: var(--panteon-black);
}

::-moz-selection {
    background: var(--panteon-gold);
    color: var(--panteon-black);
}

/* ==========================================================================
   Focus States for Accessibility
   ========================================================================== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 0.125rem solid var(--panteon-gold);
    outline-offset: 0.125rem;
}

/* ==========================================================================
   Details/Summary Styling
   ========================================================================== */
details summary::-webkit-details-marker {
    display: none;
}

details summary::marker {
    display: none;
}

/* ==========================================================================
   Mobile Menu Animation
   ========================================================================== */
#mobile-menu {
    transition: all 0.3s ease-in-out;
}

#mobile-menu.hidden {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

#mobile-menu:not(.hidden) {
    max-height: 25rem;
    opacity: 1;
}

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

.card-hover:hover {
    transform: translateY(-0.25rem);
    box-shadow: 0 1.25rem 2.5rem rgba(201, 162, 39, 0.15);
}

/* ==========================================================================
   Button Shine Effect
   ========================================================================== */
.btn-shine {
    position: relative;
    overflow: hidden;
}

.btn-shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s ease;
}

.btn-shine:hover::before {
    left: 100%;
}

/* ==========================================================================
   Loading Skeleton
   ========================================================================== */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--panteon-bronze) 25%,
        var(--panteon-dark) 50%,
        var(--panteon-bronze) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
    body {
        background: white;
        color: black;
    }

    .prose {
        color: black;
    }

    .prose h2,
    .prose h3,
    .prose h4 {
        color: black;
    }

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

    header,
    footer,
    .no-print {
        display: none;
    }
}
