/* City Winner Skyline Lite Theme - Custom CSS */
/* Keyframes, Animations & Prose Styling */

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

/* Tilt Animation */
@keyframes tilt {
    0%, 100% {
        transform: rotate(-1deg) scale(1);
    }
    25% {
        transform: rotate(1deg) scale(1.01);
    }
    50% {
        transform: rotate(-0.5deg) scale(1);
    }
    75% {
        transform: rotate(0.5deg) scale(1.01);
    }
}

.tilt-animation {
    animation: tilt 6s ease-in-out infinite;
}

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

.marquee-container {
    overflow: hidden;
    width: 100%;
}

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

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

/* Subtle Glow Animation */
@keyframes subtle-glow {
    0%, 100% {
        box-shadow: 0 0 1.25rem rgba(212, 168, 83, 0.1);
    }
    50% {
        box-shadow: 0 0 1.875rem rgba(212, 168, 83, 0.2);
    }
}

/* ===== TABLE RESPONSIVENESS ===== */

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

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

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

.prose {
    color: #b8d4e8;
    font-size: 1rem;
    line-height: 1.75;
    max-width: 100%;
}

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

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

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

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

.prose p:first-of-type {
    font-size: 1.0625rem;
}

/* Links */
.prose a {
    color: #d4a853;
    text-decoration: underline;
    text-decoration-color: rgba(212, 168, 83, 0.4);
    text-underline-offset: 0.1875rem;
    transition: all 0.2s ease;
}

.prose a:hover {
    color: #f0c674;
    text-decoration-color: #f0c674;
}

/* 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: #b8d4e8;
    padding-left: 0.375rem;
}

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

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

/* Tables */
.prose .table-responsive {
    margin: 1.5rem 0;
    border-radius: 0.75rem;
    border: 0.0625rem solid rgba(61, 90, 115, 0.5);
    overflow: hidden;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.prose thead {
    background: rgba(36, 52, 71, 0.8);
}

.prose th {
    padding: 0.875rem 1rem;
    text-align: left;
    font-weight: 600;
    color: #e8f4fc;
    border-bottom: 0.0625rem solid rgba(61, 90, 115, 0.5);
}

.prose td {
    padding: 0.75rem 1rem;
    color: #b8d4e8;
    border-bottom: 0.0625rem solid rgba(36, 52, 71, 0.5);
}

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

.prose tbody tr:nth-child(odd) {
    background: rgba(15, 20, 25, 0.5);
}

.prose tbody tr:nth-child(even) {
    background: rgba(15, 20, 25, 0.3);
}

.prose tbody tr:hover {
    background: rgba(36, 52, 71, 0.4);
}

/* Blockquotes */
.prose blockquote {
    border-left: 0.25rem solid #d4a853;
    padding-left: 1.25rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #7ec8e3;
    background: rgba(26, 35, 50, 0.5);
    padding: 1rem 1.25rem;
    border-radius: 0 0.5rem 0.5rem 0;
}

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

/* Code */
.prose code {
    background: rgba(36, 52, 71, 0.8);
    color: #7ec8e3;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.prose pre {
    background: rgba(26, 35, 50, 0.9);
    border: 0.0625rem solid rgba(61, 90, 115, 0.5);
    border-radius: 0.75rem;
    padding: 1rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

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

/* Images */
.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 1.5rem 0;
    border: 0.0625rem solid rgba(61, 90, 115, 0.3);
}

/* Horizontal Rule */
.prose hr {
    border: none;
    border-top: 0.0625rem solid rgba(61, 90, 115, 0.5);
    margin: 2rem 0;
}

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

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

/* Definition Lists */
.prose dl {
    margin: 1.25rem 0;
}

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

.prose dd {
    margin-left: 1.5rem;
    color: #b8d4e8;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */

@media (max-width: 48rem) {
    .prose {
        font-size: 0.9375rem;
    }
    
    .prose h2 {
        font-size: 1.5rem;
        margin-top: 2rem;
    }
    
    .prose h3 {
        font-size: 1.25rem;
        margin-top: 1.5rem;
    }
    
    .prose ul,
    .prose ol {
        padding-left: 1.25rem;
    }
    
    .prose blockquote {
        padding: 0.75rem 1rem;
    }
}

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

/* Ensure no horizontal overflow */
html,
body {
    overflow-x: clip;
    overflow-y: auto;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

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

/* Summary marker removal for FAQ */
details summary::-webkit-details-marker {
    display: none;
}

/* Selection styling */
::selection {
    background: rgba(212, 168, 83, 0.3);
    color: #e8f4fc;
}

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

::-webkit-scrollbar-track {
    background: #1a2332;
}

::-webkit-scrollbar-thumb {
    background: #3d5a73;
    border-radius: 0.25rem;
}

::-webkit-scrollbar-thumb:hover {
    background: #5b8fb9;
}

/* Prose content wrapper for better readability */
.prose-content {
    line-height: 1.7;
}

.prose-content p {
    margin-bottom: 1rem;
}

.prose-content ul,
.prose-content ol {
    margin-bottom: 1rem;
}

.prose-content li {
    margin-bottom: 0.375rem;
}
