/* /assets/css/style.css - FİNAL SÜRÜM (TÜM ÖZELLİKLER DAHİL) */

/* ==========================================================================
   1. GENEL AYARLAR ve ANİMASYONLAR
   ========================================================================== */

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInSlideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes zoomIn { from { transform: scale(1.2); } to { transform: scale(1); } }
@keyframes typing-dots { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-3px); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); } 70% { box-shadow: 0 0 0 10px rgba(220, 53, 69, 0); } 100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); } }

body { font-family: 'Poppins', sans-serif; background-color: #f8f9fa; margin: 0; color: #333; animation: fadeIn 0.5s ease-in-out; }
body.auth-page { overflow: hidden; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }

/* ==========================================================================
   2. ANA SAYFA (LANDING PAGE - index.php)
   ========================================================================== */

.landing-header { background: transparent; padding: 20px 0; position: fixed; width: 100%; z-index: 1000; transition: background-color 0.4s ease, box-shadow 0.4s ease; }
.landing-header.scrolled { background-color: #ffffff; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.landing-header nav { display: flex; justify-content: space-between; align-items: center; }
.landing-header .logo { font-size: 28px; font-weight: 700; color: #fff; text-decoration: none; }
.landing-header.scrolled .logo { color: #e94057; }
.nav-menu { list-style: none; display: flex; gap: 40px; margin: 0; padding: 0; }
.nav-menu a { color: #fff; text-decoration: none; font-weight: 600; position: relative; padding-bottom: 5px; }
.landing-header.scrolled .nav-menu a { color: #333; }
.nav-menu a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background-color: #e94057; transition: width 0.3s ease; }
.nav-menu a:hover::after { width: 100%; }
.nav-buttons a { text-decoration: none; font-weight: 600; padding: 10px 20px; border-radius: 25px; transition: all 0.3s ease; }
.btn-login { color: #fff; }
.landing-header.scrolled .btn-login { color: #333; }
.btn-login:hover { background-color: rgba(255,255,255,0.1); }
.landing-header.scrolled .btn-login:hover { background-color: #f1f1f1; }
.btn-signup { background-color: #e94057; color: #fff; }
.btn-signup:hover { background-color: #d63045; transform: translateY(-2px); }
#hero { height: 100vh; background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.pexels.com/photos/3769747/pexels-photo-3769747.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1') no-repeat center center/cover; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; }
.hero-content { max-width: 800px; animation: fadeInSlideUp 1s ease-out; }
.hero-content h1 { font-size: 4rem; font-weight: 700; margin-bottom: 20px; }
.hero-content p { font-size: 1.25rem; margin-bottom: 40px; opacity: 0.9; }
.section { padding: 80px 0; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 60px; color: #333; }
.features-grid, .steps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; }
.feature-card, .step-card { text-align: center; padding: 30px; background: #fff; border-radius: 10px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); }
.feature-icon { width: 80px; height: 80px; margin-bottom: 20px; }
.feature-card h3, .step-card h3 { font-size: 1.5rem; margin-bottom: 15px; }
.step-card span { display: inline-block; width: 60px; height: 60px; line-height: 60px; border-radius: 50%; background-color: #e94057; color: #fff; font-size: 2rem; font-weight: 700; margin-bottom: 20px; }
.landing-footer { background-color: #343a40; color: #fff; text-align: center; padding: 20px 0; }

/* ==========================================================================
   3. GİRİŞ ve KAYIT SAYFALARI (giris.php, kayit.php)
   ========================================================================== */

.auth-page-header { background-color: #ffffff; padding: 0 40px; height: 70px; display: flex; align-items: center; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08); width: 100%; box-sizing: border-box; }
.auth-page-header .logo { color: #e94057; font-size: 24px; font-weight: 700; text-decoration: none; }
.auth-wrapper { display: grid; grid-template-columns: repeat(2, 1fr); height: calc(100vh - 70px); width: 100%; }
.auth-panel-image { background: url('https://yakindas.com/assets/images/anasayfa-gorsel-1.jpg') no-repeat center center/cover; animation: zoomIn 1.5s ease-out; }
.auth-panel-form { display: flex; justify-content: center; align-items: center; padding: 20px 40px; overflow-y: auto; }
.form-container { max-width: 450px; text-align: left; width: 100%; padding: 0; background: none; box-shadow: none; animation: none; }
.form-container h2 { font-size: 2.2rem; margin-bottom: 8px; color: #e94057; }
.form-container p { font-size: 1rem; color: #666; margin-bottom: 20px; }
.input-group { margin-bottom: 12px; }
.input-group label { display: block; margin-bottom: 4px; font-weight: 600; font-size: 13px; }
.input-group input, .input-group select { width: 100%; padding: 9px 15px; border: 1px solid #ddd; border-radius: 8px; box-sizing: border-box; font-size: 15px; transition: all 0.3s ease; }
.input-group input:focus, .input-group select:focus { box-shadow: 0 0 0 4px rgba(233, 64, 87, 0.2); border-color: #e94057; outline: none; }
.btn { width: 100%; padding: 12px; border: none; border-radius: 8px; background-color: #e94057; color: white; font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; margin-top: 10px; }
.btn.btn-hero { font-size: 1.2rem; padding: 15px 40px; }
.btn:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 10px 20px rgba(233, 64, 87, 0.2); }
.form-link { text-align: left; margin-top: 15px; font-size: 14px; }
.form-link a { color: #e94057; text-decoration: none; font-weight: 600; }
.mesaj { padding: 12px; margin-bottom: 15px; border-radius: 8px; font-size: 14px; }
.mesaj.hata { background-color: #ffebee; color: #c62828; border: 1px solid #c62828; }
.mesaj.basari { background-color: #e8f5e9; color: #2e7d32; border: 1px solid #2e7d32; }
#password-strength-bar { width: 100%; height: 4px; background-color: #eee; border-radius: 5px; margin-top: 6px; overflow: hidden; }
#password-strength-bar .bar { height: 100%; width: 0; border-radius: 5px; transition: width 0.3s ease, background-color 0.3s ease; }
#password-strength-text { font-size: 12px; margin-top: 3px; display: block; height: 15px; }
.terms-group { display: flex; align-items: center; margin-bottom: 15px; }
.terms-group input[type="checkbox"] { margin-right: 10px; width: 16px; height: 16px; }
.terms-group label { font-size: 13px; color: #555; }
.terms-group a { color: #e94057; text-decoration: none; font-weight: 600; }
.terms-group a:hover { text-decoration: underline; }

/* ==========================================================================
   4. UYGULAMA İÇİ (anasayfa.php) - FİNAL TASARIM
   ========================================================================== */

.app-header { background-color: #ffffff; padding: 15px 0; border-bottom: 1px solid #f0f0f0; box-shadow: 0 4px 12px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 900; }
.app-header .container { display: flex; justify-content: space-between; align-items: center; }
.app-header .logo { font-size: 24px; font-weight: 700; color: #e94057; }
.app-header .user-info { display: flex; align-items: center; }
.app-header .user-info span { margin-right: 15px; font-weight: 600; }
.app-header .logout-link { font-size: 14px; color: #777; text-decoration: none; transition: color 0.3s ease; }
.app-header .logout-link:hover { color: #e94057; }
.mesafe-filtreleri { display: flex; justify-content: center; margin: 40px 0; background-color: #fff; padding: 6px; border-radius: 30px; width: max-content; margin-left: auto; margin-right: auto; box-shadow: 0 5px 20px rgba(0,0,0,0.08); }
.filtre-btn { padding: 10px 25px; border: none; border-radius: 25px; background-color: transparent; color: #555; font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; }
.filtre-btn:hover { color: #e94057; }
.filtre-btn.aktif { background-color: #e94057; color: #fff; box-shadow: 0 4px 12px rgba(233, 64, 87, 0.3); }
#kullanici-listesi { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; padding: 20px 0; }
.kullanici-karti-yeni { background-color: #fff; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); overflow: hidden; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); opacity: 0; transform: translateY(30px); animation: fadeInSlideUp 0.6s ease-out forwards; }
.kullanici-karti-yeni:hover { transform: translateY(-10px); box-shadow: 0 15px 35px rgba(0,0,0,0.12); }
.kart-gorsel { height: 320px; background-size: cover; background-position: center; position: relative; display: flex; align-items: flex-end; color: #fff; padding: 20px; box-sizing: border-box; }
.kart-gorsel-overlay { position: relative; z-index: 2; text-shadow: 0 2px 5px rgba(0,0,0,0.5); }
.kart-gorsel::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 60%; background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%); z-index: 1; }
.kart-gorsel h3 { margin: 0 0 5px 0; font-size: 1.5rem; }
.kart-gorsel .mesafe { margin: 0; font-size: 0.9rem; display: flex; align-items: center; gap: 5px; }
.online-nokta { position: absolute; top: 15px; right: 15px; width: 12px; height: 12px; background-color: #28a745; border-radius: 50%; border: 2px solid #fff; z-index: 3; }
.kart-icerik { padding: 20px; }
.kart-icerik .bio { font-size: 0.9rem; color: #666; height: 55px; overflow: hidden; margin: 0 0 20px 0; }
.sohbet-btn-yeni { width: 100%; padding: 12px 20px; border: none; border-radius: 10px; background-color: #e94057; color: white; font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; }
.sohbet-btn-yeni:hover { background-color: #d63045; transform: scale(1.05); }

/* --- Sohbet ve Modal Pencereleri (GELİŞMİŞ MEDYA DESTEKLİ) --- */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.4); display: flex; justify-content: center; align-items: center; z-index: 2000; opacity: 0; visibility: hidden; transition: all 0.4s ease; backdrop-filter: blur(5px); }
.modal-overlay.visible { opacity: 1; visibility: visible; }
.modal-content, #sohbet-penceresi { transition: all 0.4s ease; transform: scale(0.9) translateY(20px); }
.modal-overlay.visible .modal-content, .modal-overlay.visible #sohbet-penceresi { transform: scale(1) translateY(0); }
#sohbet-penceresi { width: 100%; max-width: 380px; height: 70vh; min-height: 500px; max-height: 650px; margin: 0 20px 0 0; background-color: #fff; border-radius: 16px; box-shadow: 0 10px 40px rgba(0,0,0,0.2); display: flex; flex-direction: column; overflow: hidden; align-self: flex-end; }
#sohbet-header { background-color: #fff; color: #333; padding: 12px 15px; display: flex; align-items: center; border-bottom: 1px solid #f0f0f0; gap: 12px; }
.sohbet-header-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.header-info { display: flex; flex-direction: column; flex-grow: 1; overflow: hidden; }
#sohbet-edilen-kisi { font-weight: 600; font-size: 1rem; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
#sohbet-kapat-btn { background: #f0f0f0; border: none; color: #888; font-size: 20px; cursor: pointer; line-height: 1; border-radius: 50%; width: 30px; height: 30px; flex-shrink: 0; transition: background-color 0.3s, color 0.3s; }
#sohbet-kapat-btn:hover { background-color: #e94057; color: #fff; }
#mesajlar-alani { flex-grow: 1; padding: 20px; overflow-y: auto; background-color: #f7f7f7; background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23e9e9e9' fill-opacity='0.4' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E"); }
.liste-bilgi { text-align: center; color: #999; font-size: 18px; margin-top: 50px; grid-column: 1 / -1; }
.mesaj { margin-bottom: 2px; display: flex; flex-direction: column; }
.mesaj p, .mesaj .video-bubble, .mesaj .chat-audio { max-width: 75%; margin: 2px 0; width: fit-content; }
.mesaj p { padding: 10px 15px; border-radius: 18px; line-height: 1.5; word-wrap: break-word; position: relative; }
.mesaj.gonderen { align-items: flex-end; }
.mesaj.alan { align-items: flex-start; }
.mesaj.gonderen p { background-color: #e94057; color: white; border-bottom-right-radius: 4px; padding-right: 25px; }
.mesaj.alan p { background-color: #fff; color: #333; border: 1px solid #f0f0f0; border-bottom-left-radius: 4px; }
.mesaj.gonderen.okundu p::after { content: '✔'; position: absolute; right: 8px; bottom: 8px; font-size: 12px; color: #ffffff; opacity: 0.8; }
.mesaj p.image-bubble { padding: 5px; }
.chat-image { max-width: 100%; border-radius: 14px; display: block; cursor: pointer; }
.video-bubble { padding: 5px; border-radius: 18px; position: relative; cursor: pointer; background-color: #e94057; }
.alan .video-bubble { background-color: #fff; border: 1px solid #f0f0f0; }
.chat-video { max-width: 100%; border-radius: 14px; display: block; }
.play-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 50px; height: 50px; background-color: rgba(0,0,0,0.5); border-radius: 50%; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.play-icon::after { content: ''; width: 0; height: 0; border-top: 10px solid transparent; border-bottom: 10px solid transparent; border-left: 16px solid #fff; margin-left: 4px;}
.chat-audio { width: 250px; }
#yaziyor-gostergesi { font-size: 0.8rem; font-style: italic; color: #888; height: 0; opacity: 0; transition: all 0.3s ease; display: flex; align-items: center; }
#yaziyor-gostergesi.aktif { height: 16px; opacity: 1; }
#yaziyor-gostergesi .dot { display: inline-block; width: 3px; height: 3px; background-color: #aaa; border-radius: 50%; margin: 0 1px; animation: typing-dots 1.4s infinite; margin-left: 4px; }
#yaziyor-gostergesi .dot:nth-child(2) { animation-delay: 0.2s; }
#yaziyor-gostergesi .dot:nth-child(3) { animation-delay: 0.4s; }
#mesaj-gonderme-formu { display: flex; align-items: flex-end; padding: 10px; border-top: 1px solid #f0f0f0; background-color: #fff; gap: 5px; }
#dosya-ekle-btn, #ses-kayit-btn { background-color: transparent; border: none; color: #888; border-radius: 50%; width: 42px; height: 42px; cursor: pointer; display: flex; justify-content: center; align-items: center; flex-shrink: 0; transition: all 0.3s ease; }
#dosya-ekle-btn:hover, #ses-kayit-btn:hover { background-color: #f0f0f0; color: #e94057; }
#ses-kayit-btn.recording { color: #fff; background-color: #dc3545; animation: pulse 1.5s infinite; }
#mesaj-input { flex-grow: 1; border: none; padding: 10px 15px; font-size: 1rem; background-color: #f0f0f0; border-radius: 20px; resize: none; max-height: 100px; overflow-y: auto; }
#mesaj-input:focus { outline: none; }
#gonder-btn { background-color: #e94057; border: none; color: white; border-radius: 50%; width: 42px; height: 42px; cursor: pointer; display: flex; justify-content: center; align-items: center; flex-shrink: 0; transition: transform 0.2s; }
#gonder-btn:hover { transform: scale(1.1); }
#gonder-btn svg { width: 20px; height: 20px; margin-left: 2px; }
#lightbox-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.85); display: flex; justify-content: center; align-items: center; z-index: 3000; opacity: 0; visibility: hidden; transition: all 0.4s ease; backdrop-filter: blur(8px); }
#lightbox-overlay.visible { opacity: 1; visibility: visible; }
#lightbox-close { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 40px; font-weight: bold; cursor: pointer; }
#lightbox-content { transform: scale(0.8); transition: transform 0.4s ease; }
#lightbox-overlay.visible #lightbox-content { transform: scale(1); }
#lightbox-content img, #lightbox-content video { max-width: 90vw; max-height: 90vh; box-shadow: 0 0 50px rgba(0,0,0,0.5); border-radius: 8px; }