/* City Winner Casino - Custom Styles */
/* Skyline Flow Theme - Balanced urban lighting with smooth transitions */

/* ==========================================
   Global Overrides
   ========================================== */
html {
    overflow-x: clip;
    overflow-y: auto;
    scroll-behavior: smooth;
}

body {
    overflow-x: clip;
}

/* ==========================================
   Animations & Keyframes
   ========================================== */

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

.animate-marquee {
    animation: marquee 40s linear infinite;
}

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

/* Parallax Float Effect */
@keyframes parallaxFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-1.25rem) rotate(1deg);
    }
}

.animate-parallax {
    animation: parallaxFloat 6s ease-in-out infinite;
}

/* Pulse Glow */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 1.25rem rgba(245, 185, 66, 0.3);
    }
    50% {
        box-shadow: 0 0 2.5rem rgba(245, 185, 66, 0.6);
    }
}

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

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

.animate-shimmer {
    background: linear-gradient(
        90deg,
        rgba(245, 185, 66, 0) 0%,
        rgba(245, 185, 66, 0.3) 50%,
        rgba(245, 185, 66, 0) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
}

/* Fade In Up */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(1.875rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Skyline Drift */
@keyframes skylineDrift {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-3.125rem);
    }
}

.animate-skyline {
    animation: skylineDrift 20s linear infinite alternate;
}

/* ==========================================
   Scrollbar Styling
   ========================================== */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Custom scrollbar for visible areas */
::-webkit-scrollbar {
    width: 0.5rem;
    height: 0.5rem;
}

::-webkit-scrollbar-track {
    background: #121a2d;
    border-radius: 0.25rem;
}

::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 0.25rem;
}

::-webkit-scrollbar-thumb:hover {
    background: #f5b942;
}

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

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

/* ==========================================
   Prose Styling for Markdown Content
   ========================================== */
.prose {
    color: #e2e8f0;
    font-size: 1rem;
    line-height: 1.75;
    max-width: 100%;
}

/* Headings */
.prose h2 {
    color: #e2e8f0;
    font-size: 1.875rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 0.125rem solid rgba(245, 185, 66, 0.3);
    line-height: 1.3;
}

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

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

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

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

/* Links */
.prose a {
    color: #f5b942;
    text-decoration: none;
    border-bottom: 0.0625rem solid transparent;
    transition: border-color 0.3s ease, color 0.3s ease;
}

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

/* 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: #94a3b8;
}

.prose ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.625rem;
    width: 0.5rem;
    height: 0.5rem;
    background: linear-gradient(135deg, #f5b942 0%, #fbbf24 100%);
    border-radius: 50%;
}

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

.prose ol li {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 0.75rem;
    color: #94a3b8;
    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: linear-gradient(135deg, #1e293b 0%, #121a2d 100%);
    border: 0.0625rem solid rgba(245, 185, 66, 0.3);
    border-radius: 0.5rem;
    color: #f5b942;
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.prose .table-responsive {
    overflow-x: auto;
    margin-bottom: 1.5rem;
    border-radius: 0.75rem;
    border: 0.0625rem solid rgba(30, 41, 59, 0.5);
}

.prose table th {
    background: rgba(30, 41, 59, 0.5);
    color: #e2e8f0;
    font-weight: 600;
    text-align: left;
    padding: 0.875rem 1rem;
    border-bottom: 0.125rem solid rgba(245, 185, 66, 0.2);
}

.prose table td {
    padding: 0.875rem 1rem;
    border-bottom: 0.0625rem solid rgba(30, 41, 59, 0.3);
    color: #94a3b8;
}

.prose table tr:hover td {
    background: rgba(30, 41, 59, 0.3);
}

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

/* Blockquotes */
.prose blockquote {
    border-left: 0.25rem solid #f5b942;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.5) 0%, rgba(18, 26, 45, 0.5) 100%);
    margin: 1.5rem 0;
    padding: 1.25rem 1.5rem;
    border-radius: 0 0.75rem 0.75rem 0;
    font-style: italic;
}

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

/* Code */
.prose code {
    background: rgba(30, 41, 59, 0.5);
    color: #14b8a6;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-family: 'Fira Code', 'Consolas', monospace;
}

.prose pre {
    background: #121a2d;
    border: 0.0625rem solid #1e293b;
    border-radius: 0.75rem;
    padding: 1.25rem;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

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

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

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

/* Horizontal Rules */
.prose hr {
    border: none;
    height: 0.0625rem;
    background: linear-gradient(90deg, transparent 0%, #f5b942 50%, transparent 100%);
    margin: 2.5rem 0;
}

/* Images */
.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
    margin: 1.5rem 0;
    box-shadow: 0 0.625rem 2.5rem rgba(0, 0, 0, 0.3);
}

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

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

.prose dd {
    color: #94a3b8;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

/* ==========================================
   Details/Summary (FAQ Style)
   ========================================== */
details summary::-webkit-details-marker {
    display: none;
}

details summary::marker {
    display: none;
}

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

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

/* Gradient Text Helper */
.gradient-text {
    background: linear-gradient(135deg, #f5b942 0%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card Hover Effect */
.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(245, 185, 66, 0.15);
}

/* ==========================================
   Responsive Adjustments
   ========================================== */
@media (max-width: 768px) {
    .prose h2 {
        font-size: 1.5rem;
    }
    
    .prose h3 {
        font-size: 1.25rem;
    }
    
    .prose {
        font-size: 0.9375rem;
    }
    
    .prose table {
        font-size: 0.875rem;
    }
    
    .prose table th,
    .prose table td {
        padding: 0.625rem 0.75rem;
    }
}

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