/* =========================================
   1. GENEL AYARLAR & SIFIRLAMA
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #000;
    color: #fff;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Sayfa taşmasını engeller */
    /* Hafif merkez ışığı (Login ve Home için ortak modern arka plan) */
    background-image: radial-gradient(circle at center, #1a1a1a 0%, #000 70%);
}

/* Ortak Logo Stilleri */
.logo h1 {
    font-size: 2rem; /* Login sayfasında override edilebilir */
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
}

.logo span {
    color: #00e054; /* Marka Yeşili */
}

/* =========================================
   2. ANA SAYFA (HOME) DÜZENİ
   ========================================= */
.layout-container {
    display: flex;
    width: 100%;
    max-width: 1300px;
    height: 100vh;
    justify-content: center;
    gap: 30px;
}

/* --- SOL MENÜ (SIDEBAR) --- */
.sidebar-left {
    width: 250px;
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.sidebar-left .logo h1 {
    padding-left: 20px;
}

.menu {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-radius: 30px;
    text-decoration: none;
    color: #ccc;
    font-size: 0.95rem;
    transition: 0.3s;
}

.menu-item.active {
    background-color: #00e054;
    color: #000;
}

.menu-item:hover {
    background-color: #1a1a1a;
    color: #fff;
}

.menu-item i {
    margin-right: 15px;
    font-size: 1.1rem;
    width: 25px;
    text-align: center;
}

.profile-btn {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-radius: 30px;
    text-decoration: none;
    color: #ccc;
    margin-top: auto;
    transition: 0.3s;
}

.profile-btn:hover {
    background-color: #1a1a1a;
    color: #fff;
}

.profile-btn i {
    margin-right: 15px;
    width: 25px;
    text-align: center;
}
.logout:hover {
    background-color: #ff4c4c;
    color: #000;

}

/* --- ORTA ALAN (FEED) --- */
.main-feed {
    width: 520px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    padding: 20px 0;
}

.mobile-frame {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 35px;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.03);
    background-color: #111;
    border: 1px solid #222;
}

.feed-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Üst Sekmeler */
.top-tabs {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.tab-btn {
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    backdrop-filter: blur(5px);
    transition: 0.3s;
}

.tab-btn.active {
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: 600;
    border-color: rgba(255, 255, 255, 0.3);
}

/* Alt Aksiyon Butonları (Tinder Tarzı) */
.action-buttons {
    position: absolute;
    bottom: 30px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 60px;
    z-index: 10;
}

.btn-circle {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.btn-circle:hover {
    transform: scale(1.1);
}

.btn-reject {
    background-color: #ff2d2d;
}

.btn-accept {
    background-color: #00e054;
}

.shape-square {
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-radius: 4px;
}

.shape-circle {
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-radius: 50%;
}

/* --- SAĞ MENÜ (SIDEBAR) --- */
.sidebar-right {
    width: 300px;
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.search-box {
    position: relative;
    margin-bottom: 40px;
    margin-left: 20px;
}

.search-box input {
    width: 100%;
    background-color: #1a1a1a;
    border: none;
    padding: 12px 15px 12px 45px;
    border-radius: 25px;
    color: #fff;
    outline: none;
    font-size: 0.9rem;
}

.search-box input:focus {
    background-color: #222;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
    font-size: 0.9rem;
}

.recommendation-title {
    font-size: 0.95rem;
    color: #888;
    font-weight: 500;
    margin-left: 20px;
    margin-bottom: 20px;
}

/* --- FİLM LİSTESİ (ÖNERİLER) --- */
.movie-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-left: 20px;
    overflow-y: hidden; /* Liste uzamasın */
    min-height: 400px;
    padding-right: 5px;
}

.movie-item {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 8px;
    border-radius: 12px;
    transition: all 0.3s ease;
    opacity: 0;
    animation: slideIn 0.4s forwards;
}

.movie-item:hover {
    background-color: #111;
}

.movie-thumb {
    width: 50px;
    height: 75px;
    background-color: #333;
    border-radius: 8px;
    flex-shrink: 0;
    background-position: center;
    background-size: cover;
}

.movie-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.movie-info h4 {
    font-size: 0.9rem;
    font-weight: normal;
    margin-bottom: 3px;
    /* Çok satır kesme */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    /* Modern standart (destekleyen tarayıcılarda çalışır) */
    line-clamp: 2;
}


.movie-info span {
    font-size: 0.75rem;
    color: #00e054;
    font-weight: 600;
}

.movie-actions {
    display: flex;
    gap: 5px;
}

.action-btn {
    background: transparent;
    border: none;
    color: #555;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.2s;
    font-size: 0.9rem;
}

.action-btn:hover {
    background-color: #222;
    transform: scale(1.1);
}

.btn-fav:hover {
    color: #e74c3c;
    background-color: rgba(231, 76, 60, 0.1);
}

.btn-remove:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

/* =========================================
   3. GİRİŞ SAYFASI (LOGIN/REGISTER)
   ========================================= */
.login-card {
    width: 100%;
    max-width: 400px;
    background-color: #111;
    padding: 40px;
    border-radius: 35px;
    border: 1px solid #222;
    box-shadow: 0 0 50px rgba(0, 224, 84, 0.05);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.login-card .logo h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

/* Sekmeler */
.tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    position: relative;
}

.tabs .tab-btn {
    background: none;
    border: none;
    padding-bottom: 5px;
    border-radius: 0;
    color: #777;
    font-size: 1.1rem;
}

.tabs .tab-btn.active {
    background: none;
    color: #fff;
    font-weight: 600;
    border: none;
}

.tabs .tab-btn.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #00e054;
    box-shadow: 0 0 10px #00e054;
}

/* Formlar */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    transition: 0.3s;
}

.form-input {
    width: 100%;
    background-color: #1a1a1a;
    border: 1px solid #333;
    padding: 15px 15px 15px 50px;
    border-radius: 30px;
    color: #fff;
    outline: none;
    font-size: 1rem;
    transition: 0.3s;
}

.form-input:focus {
    border-color: #00e054;
    background-color: #222;
}

.form-input:focus + i {
    color: #00e054;
}

.submit-btn {
    width: 100%;
    background-color: #00e054;
    color: #000;
    border: none;
    padding: 15px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: #00c74a;
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(0, 224, 84, 0.4);
}

.form-box {
    display: none;
    animation: fadeIn 0.4s ease;
}

.form-box.active {
    display: block;
}

.footer-link {
    display: block;
    margin-top: 20px;
    font-size: 0.85rem;
    color: #777;
    text-decoration: none;
    transition: 0.3s;
}

.footer-link:hover {
    color: #00e054;
}

/* Sosyal Medya */
.social-login {
    margin-top: 30px;
    border-top: 1px solid #222;
    padding-top: 20px;
}

.social-text {
    font-size: 0.8rem;
    color: #555;
    margin-bottom: 15px;
    display: block;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #1a1a1a;
    border: 1px solid #333;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.3s;
}

.social-btn:hover {
    background-color: #333;
    border-color: #fff;
}

#btn-google:hover {
    color: #DB4437;
    border-color: #DB4437;
}

/* =========================================
   4. ANİMASYONLAR
   ========================================= */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn { 
    from { opacity: 0; transform: translateX(20px); } 
    to { opacity: 1; transform: translateX(0); } 
}

/* JS ile eklenen silinme efekti sınıfı */
.removing {
    opacity: 0 !important;
    transform: translateX(-30px) !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
}
/* --- PROFIL MODAL STİLLERİ --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex; /* JS ile flex yapılacak */
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #1a1a1a;
    width: 90%;
    max-width: 400px;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid #333;
    position: relative;
    text-align: center;
    box-shadow: 0 0 30px rgba(0, 224, 84, 0.2);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    color: #777;
    cursor: pointer;
}

.close-modal:hover { color: #fff; }

.current-photo-preview img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #00e054;
    margin-bottom: 20px;
}

.custom-file-upload {
    display: inline-block;
    padding: 10px 20px;
    cursor: pointer;
    background-color: #333;
    color: #fff;
    border-radius: 20px;
    transition: 0.3s;
}

.custom-file-upload:hover { background-color: #444; }

/* --- GÖRÜNÜM YÖNETİMİ --- */
.view-section {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.view-title {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #333;
    font-size: 1.2rem;
    background: #111;
}

/* --- BİLDİRİM LİSTESİ --- */
.notification-list {
    padding: 10px;
    height: calc(100% - 70px);
    overflow-y: auto;
}

.notif-item {
    display: flex;
    align-items: center;
    background-color: #1a1a1a;
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 10px;
    border: 1px solid #333;
    transition: 0.3s;
}

.notif-item:hover {
    border-color: #00e054;
}

.notif-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.notif-info {
    flex-grow: 1;
}

.notif-info h4 {
    font-size: 0.95rem;
    margin-bottom: 3px;
    color: #fff;
}

.notif-info p {
    font-size: 0.75rem;
    color: #888;
}

.notif-actions {
    display: flex;
    gap: 10px;
}

.btn-mini {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: 0.2s;
}

.btn-mini.accept { background-color: #00e054; color: #000; }
.btn-mini.reject { background-color: #ff2d2d; }
.btn-mini:hover { transform: scale(1.1); }

/* --- SOHBET ARAYÜZÜ --- */
.chat-header {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: #111;
    border-bottom: 1px solid #333;
    height: 60px;
}

.back-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    margin-right: 15px;
    cursor: pointer;
}

.header-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

.chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #000;
}

/* Mesaj Balonları */
.message-bubble {
    max-width: 75%;
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    line-height: 1.4;
    word-wrap: break-word;
}

.message-sent {
    align-self: flex-end;
    background-color: #00e054; /* Bizim mesajımız (Yeşil) */
    color: #000;
    border-bottom-right-radius: 2px;
}

.message-received {
    align-self: flex-start;
    background-color: #222; /* Karşı taraf (Gri) */
    color: #fff;
    border-bottom-left-radius: 2px;
}

/* Mesaj Yazma Alanı */
.chat-input-area {
    display: flex;
    padding: 10px;
    background-color: #111;
    border-top: 1px solid #333;
    height: 60px;
}

.chat-input-area input {
    flex-grow: 1;
    background-color: #1a1a1a;
    border: none;
    border-radius: 20px;
    padding: 0 15px;
    color: #fff;
    outline: none;
}

.send-btn {
    background: none;
    border: none;
    color: #00e054;
    font-size: 1.2rem;
    margin-left: 10px;
    cursor: pointer;
    transition: 0.2s;
}

.send-btn:hover { transform: scale(1.1); }

/* --- PROFİL KART & GÖRÜNTÜLEME --- */
.profile-inputs label {
    display: block;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 5px;
    margin-left: 10px;
}

.view-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #00e054;
    object-fit: cover;
    margin-bottom: 10px;
}

.user-age-badge {
    background-color: #333;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.8rem;
    color: #ccc;
    margin-top: 5px;
    display: inline-block;
}

.user-bio {
    font-style: italic;
    color: #ddd;
    margin-top: 15px;
    line-height: 1.4;
    background: #111;
    padding: 10px;
    border-radius: 10px;
}

.mini-fav-grid {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.mini-fav-item {
    width: 60px;
    height: 90px;
    background-size: cover;
    border-radius: 5px;
    border: 1px solid #333;
}

/* =========================================
   5. RESPONSIVE (MOBİL UYUMLULUK)
   ========================================= */

/* Mobil Üst Bar (Başlangıçta Gizli) */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 100;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid #333;
    backdrop-filter: blur(10px);
}

.mobile-toggle-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-logo {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
}

.mobile-logo span {
    color: #00e054;
}

/* --- TABLET VE MOBİL İÇİN MEDYA SORGULARI --- */

@media (max-width: 1200px) {
    .layout-container {
        gap: 15px;
        max-width: 100%;
        padding: 0 10px;
    }
    
    .sidebar-left {
        width: 200px;
    }
    
    .sidebar-right {
        width: 250px;
    }
    
    .main-feed {
        flex-grow: 1;
        width: auto;
    }
}

@media (max-width: 900px) {
    /* Yan menüleri gizle, sadece orta alan kalsın */
    .mobile-header {
        display: flex; /* Mobilde üst barı göster */
    }

    .layout-container {
        padding: 60px 0 0 0; /* Üst bar için boşluk */
        gap: 0;
    }

    /* Sol Menü (Off-Canvas) */
    .sidebar-left {
        position: fixed;
        left: -100%; /* Ekran dışına it */
        top: 60px;
        width: 80%;
        max-width: 300px;
        height: calc(100% - 60px);
        background-color: #000;
        z-index: 99;
        padding: 20px;
        transition: 0.3s ease;
        border-right: 1px solid #222;
        box-shadow: 10px 0 20px rgba(0,0,0,0.5);
    }

    .sidebar-left.active {
        left: 0; /* Açılınca ekrana getir */
    }

    /* Sağ Menü (Off-Canvas) */
    .sidebar-right {
        position: fixed;
        right: -100%; /* Ekran dışına it */
        top: 60px;
        width: 80%;
        max-width: 300px;
        height: calc(100% - 60px);
        background-color: #000;
        z-index: 99;
        padding: 20px;
        transition: 0.3s ease;
        border-left: 1px solid #222;
        box-shadow: -10px 0 20px rgba(0,0,0,0.5);
    }

    .sidebar-right.active {
        right: 0; /* Açılınca ekrana getir */
    }

    /* Orta Alan (Tam Ekran) */
    .main-feed {
        width: 100%;
        height: 100%;
        padding: 0;
    }

    .mobile-frame {
        border-radius: 0; /* Mobilde köşeleri düzelt */
        border: none;
    }

    /* Aksiyon Butonlarını biraz yukarı al */
    .action-buttons {
        bottom: 80px; 
    }
    
    /* Login Ekranı için Düzenleme */
    .login-card {
        width: 90%;
        padding: 30px 20px;
    }
}

/* Bindirme (Overlay) - Menü açılınca arkası kararsın */
.menu-overlay {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 98;
    backdrop-filter: blur(3px);
}

.menu-overlay.active {
    display: block;
}

/* --- MATCH INFO OVERLAY (DÜZELTME) --- */

/* Genel Stil (Masaüstü ve Mobil Ortak) */
.match-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    padding-bottom: 120px; /* Butonlar için alt boşluk */
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    pointer-events: none; /* Tıklamayı engelle, arkadaki resme izin ver */
    z-index: 5; /* Butonların altında kalsın ama resmin üstünde */
}

.match-info-content h2 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.match-score {
    font-size: 0.9rem;
    color: #00e054;
    font-weight: bold;
    margin-bottom: 5px;
}

.match-common {
    font-size: 0.85rem;
    opacity: 0.9;
    line-height: 1.4;
    /* Uzun metinleri sınırla */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- MOBİL İÇİN ÖZEL AYARLAR --- */
@media (max-width: 900px) {
    /* Butonları biraz daha aşağı alalım ki resim daha çok görünsün */
    .action-buttons {
        bottom: 30px !important; /* Önceki 80px'i eziyoruz */
    }

    /* Yazı alanını butonların hemen üzerine konumlandır */
    .match-info-overlay {
        padding-bottom: 110px; /* Butonların yüksekliği kadar boşluk bırak */
    }

    .match-info-content h2 {
        font-size: 1.5rem; /* Mobilde isim biraz daha küçük */
    }
}