/* DuoGuGP - Financial News Theme */

/* Ticker animation */
@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.ticker-track { animation: ticker-scroll 50s linear infinite; }
.ticker-track:hover { animation-play-state: paused; }

/* Line clamp */
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #f5f5f4; }
::-webkit-scrollbar-thumb { background: #bcccdc; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #8ba3c0; }

/* Pagination */
.pagination { display: flex; gap: 0.25rem; justify-content: center; align-items: center; flex-wrap: wrap; }
.pagination a, .pagination span {
    min-width: 2.25rem; height: 2.25rem;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0 0.625rem; font-size: 0.875rem; font-weight: 500;
    background: transparent; color: #57534e;
    text-decoration: none; border: 1px solid transparent;
}
.pagination a:hover { background: #f0f4f8; color: #0f172a; border-color: #bcccdc; }
.pagination .active { background: #0f172a; color: #ffffff; }
.pagination .disabled { opacity: 0.35; pointer-events: none; }

/* Focus */
a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 2px solid #f59e0b;
    outline-offset: 2px;
}
::selection { background: #0f172a; color: #ffffff; }

/* Print */
@media print {
    header, footer, aside, .no-print { display: none !important; }
    main { padding: 0 !important; }
    body { background: white !important; color: black !important; font-size: 12pt; }
    .article-content { max-width: 100% !important; font-family: Georgia, serif; }
    a { color: #000; text-decoration: none; }
}

/* Article content - Newspaper style */
.article-content { font-family: 'Merriweather', Georgia, serif; }
.article-content h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 1.5rem; font-weight: 700; margin: 2.5rem 0 1rem; color: #0f172a; padding-bottom: 0.5rem; border-bottom: 1px solid #e7e5e4; }
.article-content h3 { font-family: 'Playfair Display', Georgia, serif; font-size: 1.25rem; font-weight: 600; margin: 2rem 0 0.75rem; color: #1e3550; }
.article-content p { margin-bottom: 1.25rem; line-height: 1.85; color: #44403c; font-size: 1.05rem; }
.article-content ul, .article-content ol { margin-bottom: 1.25rem; padding-left: 1.5rem; }
.article-content li { margin-bottom: 0.5rem; color: #44403c; line-height: 1.7; }
.article-content a { color: #b45309; text-decoration: underline; text-underline-offset: 2px; }
.article-content a:hover { color: #d97706; }
.article-content img { max-width: 100%; border-radius: 0.5rem; margin: 1.5rem 0; }
.article-content blockquote { border-left: 3px solid #f59e0b; padding: 1.25rem 1.5rem; background: #fffbeb; border-radius: 0 0.5rem 0.5rem 0; margin: 1.5rem 0; font-style: italic; color: #78350f; }
.article-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.9rem; }
.article-content th, .article-content td { border: 1px solid #d6d3d1; padding: 0.75rem 1rem; text-align: left; }
.article-content th { background: #f0f4f8; font-weight: 600; color: #0f172a; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.05em; }
.article-content code { background: #f0f4f8; padding: 0.15rem 0.4rem; border-radius: 0.25rem; font-size: 0.9em; color: #2a4768; }
.article-content pre { background: #0f172a; color: #e7e5e4; padding: 1.25rem; border-radius: 0.5rem; overflow-x: auto; margin: 1.5rem 0; }
.article-content pre code { background: none; padding: 0; color: inherit; }

/* Drop cap for first paragraph */
.article-content > p:first-of-type::first-letter {
    float: left;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 4rem;
    font-weight: 900;
    line-height: 0.8;
    padding-right: 0.5rem;
    padding-top: 0.15rem;
    color: #0f172a;
}

/* Category badge */
.category-badge {
    display: inline-flex; align-items: center;
    padding: 0.2rem 0.6rem;
    background: #f0f4f8; color: #2a4768;
    font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.05em; transition: all 0.2s ease;
}
.category-badge:hover { background: #d9e2ec; color: #0f172a; }

/* Button */
.btn-primary {
    background: #0f172a; color: #ffffff;
    padding: 0.625rem 1.5rem; font-weight: 600;
    transition: all 0.2s ease; letter-spacing: 0.03em;
}
.btn-primary:hover { background: #1e3550; }

/* Card hover */
.card-hover:hover { border-color: #f59e0b; box-shadow: 0 3px 20px rgba(15, 23, 42, 0.08); }

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #0f172a, #2a4768);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
