/* Google Fonts Entegrasyonu */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #6366f1; /* Indigo */
    --primary-hover: #4f46e5;
    --secondary-color: #14b8a6; /* Teal */
    --accent-color: #f59e0b; /* Amber/Gold */
    --font-family: 'Outfit', sans-serif;
    
    /* Açık Tema Değişkenleri */
    --bg-gradient-1: #f8fafc;
    --bg-gradient-2: #e2e8f0;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --card-bg: rgba(255, 255, 255, 0.85);
    --card-border: rgba(255, 255, 255, 0.5);
    --card-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05), 0 5px 15px -3px rgba(0, 0, 0, 0.05);
    --nav-bg: rgba(255, 255, 255, 0.8);
    --nav-border: rgba(226, 232, 240, 0.8);
}

[data-bs-theme="dark"] {
    /* Karanlık Tema Değişkenleri */
    --bg-gradient-1: #0f172a; /* Slate 900 */
    --bg-gradient-2: #1e293b; /* Slate 800 */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --card-bg: rgba(30, 41, 59, 0.7);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-shadow: 0 10px 35px -5px rgba(0, 0, 0, 0.3), 0 5px 20px -3px rgba(0, 0, 0, 0.2);
    --nav-bg: rgba(15, 23, 42, 0.85);
    --nav-border: rgba(255, 255, 255, 0.05);
}

* {
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

html {
    font-size: 16px;
    height: 100%;
}

body {
    font-family: var(--font-family);
    background: linear-gradient(135deg, var(--bg-gradient-1) 0%, var(--bg-gradient-2) 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100%;
    display: flex;
    flex-direction: column;
    margin: 0;
}

/* Yapışkan Footer için flex düzeni */
main {
    flex: 1 0 auto;
    padding-bottom: 3rem;
}

footer {
    flex-shrink: 0;
    background: var(--nav-bg);
    border-top: 1px solid var(--nav-border);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: var(--text-secondary);
}

/* Navigasyon Çubuğu */
.navbar-custom {
    background: var(--nav-bg);
    border-bottom: 1px solid var(--nav-border);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: -0.5px;
    font-size: 1.4rem;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link {
    font-weight: 500;
    color: var(--text-secondary) !important;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
}

/* Glassmorphism Kartları */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 1.25rem;
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
}

.movie-card {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.2), var(--card-shadow);
}

/* Film Afiş Görseli */
.poster-container {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
    background: #1e293b;
}

.movie-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.movie-card:hover .movie-poster {
    transform: scale(1.05);
}

.rating-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(15, 23, 42, 0.85);
    color: #fff;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 4px 10px;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.rating-badge i {
    color: var(--accent-color);
}

.status-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    padding: 3px 8px;
}

/* Yıldız Derecelendirmesi */
.stars-display i {
    color: #cbd5e1;
    font-size: 1.1rem;
}

.stars-display i.filled {
    color: var(--accent-color);
}

/* Dashboard İstatistik Kartları */
.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-icon {
    position: absolute;
    right: -10px;
    bottom: -15px;
    font-size: 5.5rem;
    opacity: 0.08;
    transform: rotate(-15deg);
}

/* Butonlar ve Formlar */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    border: none;
    color: white;
    font-weight: 500;
    border-radius: 0.75rem;
    padding: 0.6rem 1.25rem;
    box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(99, 102, 241, 0.5);
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-color) 100%);
}

.form-control-custom {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1.5px solid var(--card-border);
    color: var(--text-primary);
    border-radius: 0.75rem;
    padding: 0.6rem 1rem;
}

.form-control-custom:focus {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.2);
    color: var(--text-primary);
}

/* Detay Sayfası Tasarımı */
.detail-backdrop {
    position: relative;
    height: 350px;
    border-radius: 1.5rem;
    overflow: hidden;
    margin-bottom: -150px;
    background-size: cover;
    background-position: center;
}

.detail-backdrop-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.4) 0%, var(--bg-gradient-1) 100%);
}

.detail-content {
    position: relative;
    z-index: 10;
}

.detail-poster {
    border: 4px solid var(--card-bg);
    border-radius: 1.25rem;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
}

/* Animasyonlar */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Kaydırma Çubuğu */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-gradient-1);
}
::-webkit-scrollbar-thumb {
    background: var(--card-border);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}