/* Son Eklenen Filmler Bölümü - Modern Grid Tasarım */
.recent-movies-section {
    padding: 60px 0;
    background: #0a0e1a;
    position: relative;
}

.recent-movies-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.recent-movies-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.recent-movies-section .section-title {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.recent-movies-section .section-title i {
    color: #e50914;
    font-size: 24px;
}

.recent-movies-section .view-all-btn {
    background: linear-gradient(135deg, #e50914 0%, #b20710 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.recent-movies-section .view-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
    text-decoration: none;
    color: white;
}

/* Movies Grid - Modern Design */
.recent-movies-section .movies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    overflow-x: auto;
    grid-auto-rows: 1fr; /* Tüm satırları eşit yükseklikte yapar */
    align-items: stretch; /* Kartları dikey olarak esnetir */
}

@media (min-width: 640px) {
    .recent-movies-section .movies-grid {
        grid-template-columns: repeat(6, 1fr);
        overflow-x: visible;
        grid-auto-rows: 1fr; /* Desktop'ta da eşit yükseklik */
        align-items: stretch; /* Kartları dikey olarak esnetir */
    }
}

/* Movie Card - Modern Style */
.recent-movies-section .movie-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: transparent;
    display: flex;
    flex-direction: column;
    height: 100%; /* Kartları eşit yükseklikte yapar */
}

.recent-movies-section .movie-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%; /* Link'i de tam yükseklikte yapar */
}

/* Movie Poster Container */
.recent-movies-section .movie-poster {
    position: relative;
    border: 1px solid #222;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 2/3; /* Standart poster oranı - sabit boyut */
    flex-shrink: 0; /* Poster boyutunu sabit tutar */
}

.recent-movies-section .movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Resmi tam kaplar, oranlı keser */
    object-position: center; /* Resmi ortalar */
    transition: transform 0.3s ease;
}

.recent-movies-section .movie-card:hover .movie-poster img {
    transform: scale(1.05);
}

/* Language Badges */
.recent-movies-section .language-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    gap: 8px;
    z-index: 2;
}

.recent-movies-section .language-badge {
    background: #252627;
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 500;
    min-width: fit-content;
}

/* Bottom Info Bar */
.recent-movies-section .movie-bottom-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    min-height: 28px;
    padding: 0 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.recent-movies-section .movie-year {
    color: white;
    font-size: 12px;
    font-weight: 500;
}

.recent-movies-section .movie-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.recent-movies-section .movie-rating svg {
    width: 16px;
    height: 16px;
    fill: rgb(245, 197, 24);
}

.recent-movies-section .movie-rating-score {
    color: white;
    font-size: 12px;
    font-weight: 700;
}

/* Movie Info */
.recent-movies-section .movie-info {
    padding: 12px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-grow: 1; /* Kalan alanı doldurur */
    min-height: 80px; /* Minimum yükseklik arttırıldı genre için */
}

.recent-movies-section .movie-title {
    color: white;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.2;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 2 satır göster */
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1; /* Başlık alanını esnek yapar */
}

@media (min-width: 640px) {
    .recent-movies-section .movie-title {
        font-size: 15px;
    }
}

.recent-movies-section .movie-genre {
    color: #888;
    font-size: 12px;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: auto; /* Genre'yi alta yaslı */
}

/* Hover Effects */
.recent-movies-section .movie-card:hover {
    transform: translateY(-4px);
}

.recent-movies-section .movie-card:hover .movie-poster {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .recent-movies-section {
        padding: 40px 0;
    }
    
    .recent-movies-section .section-header {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .recent-movies-section .section-title {
        font-size: 24px;
    }
    
    .recent-movies-section .movies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .recent-movies-section .movie-title {
        font-size: 13px;
    }
    
    .recent-movies-section .movie-genre {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .recent-movies-section .container {
        padding: 0 15px;
    }
    
    .recent-movies-section .movies-grid {
        gap: 12px;
    }
    
    .recent-movies-section .language-badges {
        top: 6px;
        left: 6px;
        gap: 4px;
    }
    
    .recent-movies-section .language-badge {
        padding: 2px 6px;
        font-size: 9px;
    }
}
