:root {
    --brand-yellow: #F5D913;
    --brand-yellow-dark: #E0C300;
    --brand-navy: #14182B;
    --brand-navy-soft: #1D2238;
    --text-dark: #14182B;
    --text-muted: #6B7280;
    --border-soft: #ECECEC;
    --bg-page: #F7F7F9;
}

body {
    background-color: var(--bg-page);
    color: var(--text-dark);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.site-footer {
    flex-shrink: 0;
}

.icon {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: -0.15em;
}
.icon-btn .icon {
    width: 18px;
    height: 18px;
}
.brand-mark .icon {
    width: 22px;
    height: 22px;
}

h1, h2, h3, h4, h5, h6,
.fw-brand {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-weight: 600;
    color: var(--text-dark);
}

a {
    color: var(--text-dark);
}

/* Top utility bar / crypto ticker */
.topbar {
    background-color: var(--brand-navy);
    color: #C9CCDA;
    font-size: 0.8rem;
    overflow: hidden;
    white-space: nowrap;
    flex-shrink: 0;
}
.topbar a {
    color: #C9CCDA;
    text-decoration: none;
}
.topbar a:hover {
    color: var(--brand-yellow);
}

.ticker-wrap {
    overflow: hidden;
    width: 100%;
}
.ticker-track {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    animation: ticker-scroll 40s linear infinite;
    will-change: transform;
}
.ticker-wrap:hover .ticker-track {
    animation-play-state: paused;
}
.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1.25rem;
    border-right: 1px solid var(--brand-navy-soft);
}
.ticker-symbol {
    font-weight: 700;
    color: #fff;
}
.ticker-price {
    color: #C9CCDA;
}
.ticker-change.up {
    color: #3DDC84;
}
.ticker-change.down {
    color: #FF6B6B;
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 575.98px) {
    .ticker-item { padding: 0.4rem 0.85rem; font-size: 0.75rem; }
}

/* Main header */
.site-header {
    background-color: #fff;
    border-bottom: 1px solid var(--border-soft);
    flex-shrink: 0;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--brand-yellow);
    border-radius: 10px;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.brand-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--text-dark);
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.category-nav .nav-link {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0.85rem;
    background: none;
    transition: color 0.15s ease;
}
.category-nav .nav-link:hover {
    color: var(--brand-yellow-dark);
    background: none;
}
.category-nav .nav-link.active {
    color: var(--text-dark);
    font-weight: 700;
    background: none;
    position: relative;
}
.category-nav .nav-link.active::after {
    content: "";
    position: absolute;
    left: 0.85rem;
    right: 0.85rem;
    bottom: 0.1rem;
    height: 2px;
    background-color: var(--brand-yellow);
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--bg-page);
    color: var(--text-dark);
    border: none;
    text-decoration: none;
}
.icon-btn:hover {
    background-color: var(--brand-yellow);
    color: var(--text-dark);
}

.search-form {
    position: relative;
    align-items: center;
}
.search-form input {
    width: 160px;
    border-radius: 999px;
    padding-right: 2.5rem;
    background-color: var(--bg-page);
    border: 1px solid var(--border-soft);
}
.search-form button {
    position: absolute;
    right: 0;
    background: transparent;
}
.search-form button:hover {
    background-color: transparent;
    color: var(--brand-yellow-dark);
}

/* Category / source pill badges used across cards */
.pill-badge {
    display: inline-block;
    background-color: var(--brand-yellow);
    color: var(--text-dark);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
}
.pill-badge.pill-muted {
    background-color: #EEF0F4;
    color: var(--text-muted);
}

.btn-brand {
    background-color: var(--brand-yellow);
    border-color: var(--brand-yellow);
    color: var(--text-dark);
    font-weight: 600;
}
.btn-brand:hover {
    background-color: var(--brand-yellow-dark);
    border-color: var(--brand-yellow-dark);
    color: var(--text-dark);
}
.btn-outline-brand {
    border: 1px solid #D8DAE3;
    color: var(--text-dark);
    font-weight: 500;
    background: #fff;
}
.btn-outline-brand:hover {
    background-color: var(--brand-yellow);
    border-color: var(--brand-yellow);
    color: var(--text-dark);
}
.btn-outline-brand.active {
    background-color: var(--brand-navy);
    border-color: var(--brand-navy);
    color: #fff;
}

.card {
    border: none;
    box-shadow: 0 1px 4px rgba(20, 24, 43, 0.06);
    border-radius: 12px;
}

.card-img-top {
    background-color: #e9ecef;
}

/* Hero article */
.hero-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-height: 360px;
    display: flex;
    align-items: flex-end;
    color: #fff;
    background-size: cover;
    background-position: center;
}
.hero-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(10, 12, 25, 0.88) 0%, rgba(10, 12, 25, 0.15) 65%, rgba(10, 12, 25, 0) 100%);
}
.hero-card .hero-content {
    position: relative;
    z-index: 2;
    padding: 1.75rem;
}
.hero-card h1, .hero-card h2 {
    color: #fff;
}
.hero-meta {
    font-size: 0.85rem;
    color: #D8DAE3;
}

/* Sidebar tabs (Recent / Top Story) */
.side-tabs .nav-link {
    color: var(--text-muted);
    font-weight: 600;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.5rem 0.25rem;
    margin-right: 1.25rem;
}
.side-tabs .nav-link.active {
    color: var(--text-dark);
    border-bottom-color: var(--brand-yellow);
    background: none;
}

.mini-news-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-soft);
}
.mini-news-item:last-child {
    border-bottom: none;
}
.mini-news-item img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    background-color: #e9ecef;
}
.mini-news-item h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
    line-height: 1.3;
}
.mini-news-item .meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Section headings */
.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}
.section-heading h2 {
    font-size: 1.25rem;
    margin: 0;
    position: relative;
    padding-left: 0.85rem;
}
.section-heading h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.15rem;
    bottom: 0.15rem;
    width: 5px;
    border-radius: 3px;
    background-color: var(--brand-yellow);
}
.section-arrows button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border-soft);
    background: #fff;
    color: var(--text-muted);
}

.pager-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-soft);
    background: #fff;
    color: var(--text-dark);
    text-decoration: none;
}
.pager-arrow:hover {
    background-color: var(--brand-yellow);
    border-color: var(--brand-yellow);
    color: var(--text-dark);
}
.pager-arrow.disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* Dark spotlight panel */
.spotlight-panel {
    background-color: var(--brand-navy);
    border-radius: 16px;
    padding: 1.5rem;
    color: #fff;
}
.spotlight-panel h2 {
    color: #fff;
    font-size: 1.1rem;
}
.spotlight-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--brand-navy-soft);
}
.spotlight-item:last-child {
    border-bottom: none;
}
.spotlight-item img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}
.spotlight-item h3 {
    font-size: 0.85rem;
    color: #fff;
    margin-bottom: 0.15rem;
    line-height: 1.3;
}
.spotlight-item .meta {
    font-size: 0.72rem;
    color: #9EA3B8;
}

/* Reklam alanları */
.ad-slot {
    border: 2px dashed #D8DAE3;
    border-radius: 12px;
    background-color: #FBFBFC;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    color: var(--text-muted);
    text-align: center;
    width: 100%;
}
.ad-slot-label {
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dark);
}
.ad-slot-size {
    font-size: 0.72rem;
}

.ad-banner {
    min-height: 90px;
    margin-bottom: 1.75rem;
    flex-shrink: 0;
}
.ad-banner-bottom {
    min-height: 90px;
    margin: 2rem 0;
    flex-shrink: 0;
}

.ad-square {
    max-width: 300px;
    min-height: 250px;
    margin: 0 auto 1.5rem;
}

/* Okurken sağ sidebar'ı takip ettirir (haber sayfası); makale/sidebar'ın
   sonuna gelince kendi kutusunun (parent .row) dışına taşmaz, otomatik durur. */
.sticky-sidebar {
    position: sticky;
    top: 20px;
    align-self: flex-start;
}

@media (max-width: 991.98px) {
    .sticky-sidebar {
        position: static;
    }
}

footer.site-footer {
    background-color: var(--brand-navy);
    color: #9EA3B8;
}
footer.site-footer a {
    color: #C9CCDA;
    text-decoration: none;
}
footer.site-footer a:hover {
    color: var(--brand-yellow);
}
footer.site-footer .brand-name {
    color: #fff;
}

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1050;
    background-color: var(--brand-navy);
    color: #E5E7F0;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.2);
}
.cookie-banner a {
    color: var(--brand-yellow);
}
.cookie-banner a:hover {
    color: var(--brand-yellow-dark);
}

/* Zengin metin editöründen gelen haber içeriği */
.article-content {
    line-height: 1.75;
    color: var(--text-dark);
}
.article-content h1, .article-content h2, .article-content h3,
.article-content h4, .article-content h5, .article-content h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}
.article-content p {
    margin-bottom: 1.1rem;
}
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1rem 0;
}
.article-content a {
    color: var(--brand-navy);
    text-decoration: underline;
    text-decoration-color: var(--brand-yellow);
    text-decoration-thickness: 2px;
}
.article-content blockquote {
    border-left: 4px solid var(--brand-yellow);
    background-color: var(--bg-page);
    padding: 0.75rem 1.25rem;
    margin: 1.25rem 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}
.article-content ul, .article-content ol {
    margin-bottom: 1.1rem;
    padding-left: 1.5rem;
}
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.25rem;
}
.article-content table td, .article-content table th {
    border: 1px solid var(--border-soft);
    padding: 0.5rem 0.75rem;
}
.article-content pre, .article-content code {
    background-color: var(--bg-page);
    border-radius: 6px;
}
.article-content pre {
    padding: 1rem;
    overflow-x: auto;
}
.article-content code {
    padding: 0.15rem 0.4rem;
}
.article-content iframe {
    max-width: 100%;
    border-radius: 12px;
}

/* Auth cards */
.auth-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 4px rgba(20, 24, 43, 0.06);
    padding: 2rem;
}

@media (max-width: 991.98px) {
    .hero-card { min-height: 280px; }
}

@media (max-width: 575.98px) {
    .hero-card { min-height: 220px; }
    .hero-card h1, .hero-card h2 { font-size: 1.25rem; }
    .brand-name { font-size: 1.1rem; }
    .section-heading h2 { font-size: 1.05rem; }
}
