/* 
 * SohbetOdası - Ana Stil Dosyası
 * Bootstrap 5 ile uyumlu
 */

/* Genel */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --dark-color: #212529;
    --light-color: #f8f9fa;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding-top: 56px;
}

/* Navbar */
.navbar-brand {
    font-weight: 600;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: calc(100vh - 56px);
}

.hero-illustration {
    position: relative;
    padding: 2rem;
}

.floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.floating-badge {
    position: absolute;
    font-size: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

.floating-badge:nth-child(1) { top: 20%; left: 20%; animation-delay: 0s; }
.floating-badge:nth-child(2) { top: 30%; right: 20%; animation-delay: 0.5s; }
.floating-badge:nth-child(3) { bottom: 30%; left: 30%; animation-delay: 1s; }
.floating-badge:nth-child(4) { bottom: 20%; right: 30%; animation-delay: 1.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Profil Resimleri */
.profil-kucuk {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

/* Feature Icons */
.feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* Oda Kartları */
.oda-karti {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.oda-karti:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.oda-karti .card {
    transition: all 0.3s ease;
}

/* Katılımcı sayısı badge hover */
.katilimci-sayisi {
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.katilimci-sayisi:hover {
    transform: scale(1.1);
    background-color: #0d6efd !important;
}

/* Oda ayarları butonu */
.oda-ayarlari-btn {
    opacity: 0.6;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.oda-karti:hover .oda-ayarlari-btn {
    opacity: 1;
}

.oda-ayarlari-btn:hover {
    transform: rotate(45deg);
}

.hover-shadow {
    transition: all 0.3s ease;
}

.hover-shadow:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Footer */
.footer {
    position: relative;
    bottom: 0;
    width: 100%;
}

footer a:hover {
    color: var(--bs-primary) !important;
}

/* Dil Badge'leri */
.dil-badge {
    font-size: 0.7rem;
    padding: 0.25em 0.5em;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

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

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

.slide-up {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Toast bildirimleri */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }
    
    .hero-section .d-flex {
        justify-content: center;
    }
    
    .hero-illustration {
        display: none;
    }
}

/* Açık Odalar Header */
.acik-odalar-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.acik-odalar-header .header-ust {
    order: 2;
}

.acik-odalar-header .header-orta {
    order: 1;
}

.acik-odalar-header .header-orta h2 {
    margin: 0;
}

.acik-odalar-header .header-alt {
    order: 3;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.acik-odalar-header .header-alt #odaArama {
    width: 200px;
}

/* Mobil Açık Odalar Header */
@media (max-width: 576px) {
    .acik-odalar-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .acik-odalar-header .header-ust {
        order: 1;
        width: 100%;
    }
    
    .acik-odalar-header .header-ust #odaOlusturBtnHeader {
        width: 100%;
    }
    
    .acik-odalar-header .header-orta {
        order: 2;
        text-align: center;
    }
    
    .acik-odalar-header .header-alt {
        order: 3;
        width: 100%;
    }
    
    .acik-odalar-header .header-alt #odaArama {
        width: 100%;
        flex: 1;
    }
}
