/* ============================================
   Hazeyn Haber Sistemi - Premium Styles v2.0
   ============================================ */

/* ===== Base Enhancements ===== */
::selection {
    background: rgba(192, 22, 28, 0.15);
    color: #c0161c;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* ===== Ticker Animation ===== */
@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.animate-ticker {
    animation: ticker 30s linear infinite;
}

.animate-ticker:hover {
    animation-play-state: paused;
}

/* ===== Scrollbar ===== */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ===== Hero Cards ===== */
.hero-card {
    box-shadow: 0 8px 32px -8px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.4s ease;
}

.hero-card:hover {
    box-shadow: 0 16px 48px -12px rgba(0, 0, 0, 0.3);
}

.hero-card-side {
    box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.4s ease, transform 0.3s ease;
}

.hero-card-side:hover {
    box-shadow: 0 8px 32px -6px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}

/* Category badges on hero */
.cat-badge {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.05em;
}

/* ===== News Cards ===== */
.news-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.12);
}

/* Featured cards */
.featured-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.12);
}

/* Breaking news cards */
.breaking-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.breaking-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -8px rgba(239, 68, 68, 0.12);
}

/* ===== Section Icons ===== */
.section-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.625rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.section-icon-sm {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 0.375rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ===== Sidebar Cards ===== */
.sidebar-card {
    transition: box-shadow 0.3s ease;
}

.sidebar-card:hover {
    box-shadow: 0 4px 16px -4px rgba(0, 0, 0, 0.06);
}

/* Popular rank numbers */
.popular-rank {
    transition: transform 0.2s ease;
}

.popular-rank:hover,
a:hover .popular-rank {
    transform: scale(1.1);
}

/* Category widget items */
.cat-widget-item {
    transition: all 0.2s ease;
}

/* ===== Image Effects ===== */
.img-zoom {
    overflow: hidden;
}

.img-zoom img {
    transition: transform 0.5s ease;
}

.img-zoom:hover img {
    transform: scale(1.08);
}

/* ===== Headline Gradient Overlay ===== */
.headline-overlay {
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.88) 0%,
            rgba(0, 0, 0, 0.5) 35%,
            rgba(0, 0, 0, 0.15) 60%,
            transparent 100%);
}

/* ===== Manşet Slider ===== */
.manset-slider {
    background: #111;
}

.manset-slide {
    display: none;
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}

.manset-slide.active {
    display: block;
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
    animation: mansetFadeIn 0.8s ease forwards;
}

@keyframes mansetFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.manset-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Prev/Next Okları */
.manset-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.manset-slider:hover .manset-arrow {
    opacity: 1;
}

.manset-arrow:hover {
    background: rgba(192, 22, 28, 0.85);
    border-color: rgba(192, 22, 28, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.manset-prev {
    left: 16px;
}

.manset-next {
    right: 16px;
}

/* Numaralı Göstergeler */
.manset-indicators {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10;
    display: flex;
    gap: 6px;
}

.manset-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.manset-dot:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.6);
}

.manset-dot.active {
    background: #c0161c;
    border-color: #c0161c;
    transform: scale(1.15);
    box-shadow: 0 2px 8px rgba(192, 22, 28, 0.5);
}

/* İlerleme Çubuğu */
.manset-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.15);
    z-index: 10;
}

.manset-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #c0161c, #e74c3c);
    width: 0%;
}

@media (max-width: 640px) {
    .manset-slider {
        min-height: 320px !important;
    }

    .manset-arrow {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }

    .manset-prev {
        left: 8px;
    }

    .manset-next {
        right: 8px;
    }

    .manset-indicators {
        bottom: 12px;
        right: 12px;
    }

    .manset-dot {
        width: 26px;
        height: 26px;
        font-size: 10px;
    }
}

/* ===== Flash Badge ===== */
.flash-badge {
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* ===== Kategori Nav Underline ===== */
.nav-link:hover {
    border-bottom-color: var(--cat-color, #c0161c) !important;
    color: var(--cat-color, #c0161c) !important;
}

/* ===== 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;
}

/* ===== News Detail Content ===== */
.news-content {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #1e293b;
}

.news-content p {
    margin-bottom: 1.25rem;
}

.news-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 1.5rem auto;
    display: block;
    box-shadow: 0 4px 16px -4px rgba(0, 0, 0, 0.1);
}

.news-content h2,
.news-content h3,
.news-content h4 {
    font-weight: 700;
    color: #0f172a;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.news-content h2 {
    font-size: 1.5rem;
}

.news-content h3 {
    font-size: 1.25rem;
}

.news-content blockquote {
    border-left: 4px solid #c0161c;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: linear-gradient(135deg, #fef2f2, #fff1f2);
    border-radius: 0 0.75rem 0.75rem 0;
    font-style: italic;
    color: #475569;
}

.news-content a {
    color: #c0161c;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.news-content ul,
.news-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.news-content li {
    margin-bottom: 0.5rem;
}

/* ===== Pagination ===== */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.pagination {
    display: flex;
    gap: 0.25rem;
    list-style: none;
    padding: 0;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.625rem;
    color: #475569;
    background: white;
    border: 1px solid #e2e8f0;
    transition: all 0.25s ease;
}

.page-link:hover {
    background: #c0161c;
    color: white;
    border-color: #c0161c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(192, 22, 28, 0.25);
}

.page-link.active {
    background: #c0161c;
    color: white;
    border-color: #c0161c;
    box-shadow: 0 4px 12px rgba(192, 22, 28, 0.25);
}

.ellipsis {
    display: flex;
    align-items: center;
    padding: 0 0.5rem;
    color: #94a3b8;
}

/* ===== Skeleton Loader ===== */
.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 0.375rem;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ===== Scroll Top ===== */
#scroll-top {
    transition: all 0.3s ease;
}

#scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

#scroll-top:hover {
    transform: scale(1.1);
}

/* ===== Breadcrumb ===== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: #94a3b8;
}

.breadcrumb a {
    color: #64748b;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #c0161c;
}

/* ===== Tag Badges ===== */
.tag-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
    background: #f1f5f9;
    color: #475569;
    transition: all 0.25s ease;
}

.tag-badge:hover {
    background: #c0161c;
    color: white;
    transform: translateY(-1px);
}

/* ===== Breaking News Red Dot ===== */
.breaking-dot {
    width: 10px;
    height: 10px;
    background: #ef4444;
    border-radius: 50%;
    display: inline-block;
    animation: dot-pulse 1.5s infinite;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

@keyframes dot-pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.7);
    }
}

/* ===== Admin Panel ===== */
.admin-sidebar a.active {
    background: rgba(192, 22, 28, 0.1);
    color: #c0161c;
    border-right: 3px solid #c0161c;
}

/* ===== Yazarlar Bölümü ===== */
.yazarlar-section {
    background: linear-gradient(180deg, #f8f9fa 0%, #eef0f3 50%, #f8f9fa 100%);
    padding: 2.5rem 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.yazar-card {
    padding: 1rem 0.5rem;
    transition: transform 0.3s ease;
}

.yazar-card:hover {
    transform: translateY(-4px);
}

.yazar-avatar-ring {
    width: fit-content;
    position: relative;
}

.yazar-avatar-ring::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c0161c, #f59e0b, #c0161c);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.yazar-card:hover .yazar-avatar-ring::before {
    opacity: 1;
}

.yazar-avatar-ring img {
    position: relative;
    z-index: 1;
}

.yazarlar-slider-wrap {
    position: relative;
}

@media (max-width: 1023px) {
    .yazar-card {
        width: calc(50% - 12px) !important;
    }
}

@media (max-width: 639px) {
    .yazar-card {
        width: calc(100% - 12px) !important;
    }

    .yazar-avatar-ring img {
        width: 5rem !important;
        height: 5rem !important;
    }
}

/* ===== Reklam Alanları ===== */
.ad-slot {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-slot:empty {
    display: none;
}

.ad-header {
    margin-bottom: 8px;
}

.ad-sidebar {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 8px;
}

.ad-between {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 8px;
}

/* ===== Aspect Ratio ===== */
.aspect-\[16\/10\] {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.aspect-\[16\/10\] img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
    .news-content {
        font-size: 0.975rem;
        line-height: 1.8;
    }
}

/* ===== Focus States (Accessibility) ===== */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #c0161c;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== Smooth Fade-in Animation ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-card,
.featured-card,
.breaking-card,
.sidebar-card {
    animation: fadeInUp 0.4s ease both;
}