/* News Index & Category Styles */

/* Hero Section */
.news-hero {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
    border-radius: 28px;
    padding: 40px 30px;
    margin-bottom: 30px;
    text-align: center;
    border: 1px solid var(--border-light);
}

.news-hero h1 {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.news-hero p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Category Header */
.category-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-light);
}

.category-title {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.category-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Filters Bar */
.news-filters-bar {
    margin-bottom: 30px;
}

.filter-form .filter-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-form select,
.filter-form input {
    background: var(--input-bg);
    border: 1px solid var(--border-light);
    padding: 10px 18px;
    border-radius: 40px;
    color: var(--text-primary);
    font-size: 0.85rem;
    outline: none;
    transition: 0.2s;
}

.filter-form select:focus,
.filter-form input:focus {
    border-color: var(--accent);
}

.filter-form button {
    background: var(--accent);
    border: none;
    padding: 10px 24px;
    border-radius: 40px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.filter-form button:hover {
    background: var(--accent-hover);
}

.reset-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-episode);
    border: 1px solid var(--border-light);
    padding: 10px 18px;
    border-radius: 40px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: 0.2s;
}

.reset-btn:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
    margin: 30px 0;
}

/* News Card */
.news-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
    border: 1px solid var(--border-light);
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.3);
    border-color: var(--accent);
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.news-card:hover .card-image img {
    transform: scale(1.05);
}

.card-category {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
}

.card-category.sinema { background: #e50914; }
.card-category.dizi { background: #0078ff; }
.card-category.platform { background: #00a86b; }
.card-category.oyuncu { background: #9b59b6; }
.card-category.roportaj { background: #f39c12; }
.card-category.fragman { background: #e67e22; }
.card-category.default { background: #6c757d; }

.play-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

.card-body {
    padding: 18px;
}

.card-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-excerpt {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}

.card-footer {
    display: flex;
    gap: 16px;
    font-size: 0.7rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-light);
    padding-top: 12px;
}

.card-footer span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-card);
    border-radius: 28px;
    grid-column: 1 / -1;
}

.no-results i {
    color: var(--text-muted);
    margin-bottom: 15px;
}

.no-results p {
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.btn-primary {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 10px 24px;
    border-radius: 40px;
    text-decoration: none;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.pagination .page-item {
    list-style: none;
}

.pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 40px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: 0.2s;
}

.pagination .page-link:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.pagination .active .page-link {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .news-hero {
        padding: 30px 20px;
    }
    .news-hero h1 {
        font-size: 1.6rem;
    }
    .filter-form .filter-group {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-form select,
    .filter-form input,
    .filter-form button,
    .reset-btn {
        width: 100%;
    }
    .card-title {
        font-size: 0.95rem;
    }
}

/* Sayfalama Konteyneri */
.pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 20px 0;
    gap: 5px;
}

/* Normal Sayfa Butonları */
.pagination li a, 
.pagination li span {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

/* Üzerine Gelindiğinde (Hover) */
.pagination li a:hover {
    background-color: #fce4e4; /* Çok açık kırmızı bir efekt */
    color: #d32f2f;
    border-color: #d32f2f;
}

/* AKTİF SAYFA (Kırmızı Zemin, Beyaz Yazı) */
.pagination li.active span, 
.pagination li.active a {
    background-color: #d32f2f; /* Kırmızı Zemin */
    color: #ffffff; /* Beyaz Yazı */
    border-color: #d32f2f;
}

/* Önceki/Sonraki Butonları Pasifken */
.pagination li.disabled span {
    color: #ccc;
    background-color: #f9f9f9;
    border-color: #ddd;
}

/* Laravel'in 'Showing 1 to 12 of 14 results' yazısını gizlemek istersen: */
p.text-sm.text-gray-700.leading-5 {
    display: none;
}