/* Custom CSS for 香港體育博彩站 */
/* Theme: Deep Green #0A1F0A + Neon Yellow #CCFF00 + White #FFFFFF */

:root {
    --bg: #0A1F0A;
    --bg-card: #0D2B0D;
    --accent: #CCFF00;
    --accent-hover: #e0ff4d;
    --white: #FFFFFF;
    --text-muted: #9ca3af;
    --text-dim: #6b7280;
    --border: #1a3a1a;
    --radius: 10px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg);
    color: var(--white);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.3px;
}

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

.animate-ticker {
    animation: ticker 40s linear infinite;
    display: inline-flex;
}

.ticker-bar {
    position: relative;
}

.ticker-content {
    display: inline-flex;
    gap: 0;
}

/* Pulse animation */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

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

/* Article Content Styles */
.article-content h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent);
}

.article-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.article-content p {
    color: #d1d5db;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.article-content ul, .article-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    color: #d1d5db;
}

.article-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.article-content a {
    color: var(--accent);
    text-decoration: underline;
    transition: color 0.2s;
}

.article-content a:hover {
    color: var(--white);
}

.article-content blockquote {
    border-left: 3px solid var(--accent);
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    background-color: var(--bg-card);
    border-radius: 0 var(--radius) var(--radius) 0;
    color: #d1d5db;
    font-style: italic;
}

.article-content strong {
    color: var(--white);
    font-weight: 700;
}

.article-content code {
    background-color: var(--bg-card);
    color: var(--accent);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--border);
    margin-bottom: 1rem;
    border-radius: var(--radius);
    overflow: hidden;
}

.article-content th {
    background-color: var(--bg-card);
    color: var(--accent);
    font-weight: 700;
    padding: 0.75rem 1rem;
    text-align: left;
    border: 1px solid var(--border);
    font-size: 0.9rem;
}

.article-content td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    color: #d1d5db;
    font-size: 0.9rem;
}

.article-content tr:nth-child(even) {
    background-color: rgba(13, 43, 13, 0.5);
}

/* Line clamp */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
    .article-content h2 {
        font-size: 1.3rem;
    }
    .article-content h3 {
        font-size: 1.1rem;
    }
}

/* Print */
@media print {
    header, footer, .ticker-bar {
        display: none;
    }
    body {
        background: white;
        color: black;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}
