/* css/filmler.css */

.films-page {
    padding-bottom: 50px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 15px;
}

.page-title {
    font-size: 18px;
    color: #fff;
    font-weight: 700;
}

/* --- 5'Lİ GRİD YAPISI --- */
.films-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); 
    gap: 15px;
}

/* --- FİLM KARTI (Dış Çerçeve Sabit) --- */
.film-card {
    background-color: var(--bg-content);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden; /* Resim büyüdüğünde dışarı taşmaması için kritik */
    text-decoration: none;
    position: relative;
    transition: border-color 0.3s ease; /* Sadece kenarlık rengi yumuşak değişsin */
}

/* Mouse geldiğinde sadece kenarlık turkuaz olsun, kart büyümesin */
.film-card:hover {
    border-color: var(--accent);
    transform: none; /* KARTIN KOMPLE BÜYÜMESİNİ İPTAL ETTİK */
}

/* --- RESİM KONTEYNERİ (SKELETON EKLENDİ) --- */
.image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 2/3;
    overflow: hidden; /* ZOOM EFEKTİ İÇİN ŞART */
    
    /* Skeleton Loading Arka Planı */
    background: linear-gradient(90deg, #161b22 25%, #21262d 50%, #161b22 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
}

.image-container img {
    position: relative;
    z-index: 2; /* Resim yüklendiğinde iskeletin üstüne çıksın */
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, opacity 0.3s ease; /* Yumuşak zoom geçişi */
}

/* --- IŞIK YANSIMASI (SHIMMER) ANİMASYONU --- */
@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* --- HOVER: SADECE RESİM BÜYÜR --- */
.film-card:hover .image-container img {
    transform: scale(1.15); /* RESİM KUTU İÇİNDE %15 BÜYÜR */
    opacity: 0.6; /* Play butonu için hafif karartma */
}

/* Kalite Etiketi */
.quality-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--accent);
    color: #000;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 2px;
    z-index: 2;
}

/* Play Butonu */
.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.6);
    width: 45px;
    height: 45px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 18px;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 5;
}

.film-card:hover .play-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Bilgi Alanı (Sabit kalır) */
.film-info {
    padding: 12px;
    background-color: var(--bg-content);
    border-top: 1px solid var(--border);
}

.film-title {
    font-size: 13px;
    color: #fff;
    margin: 0 0 5px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
}

.film-meta {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--text-muted);
}

.film-imdb i { color: gold; margin-right: 2px; }

/* SAYFALAMA BUTONLARI */
.pagination {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.page-btn {
    padding: 6px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    transition: 0.2s;
}

.page-btn.active {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}