/* =======================================================
    LOREFIX ANA STİL DOSYASI (index.css) - TAM VERSİYON
======================================================= */

:root {
    --primary-color: #007bff;
    --secondary-color: #f06292;
    --dark-color: #333;
    --light-color: #f8f9fa;
    --white-color: #fff;
    --header-height: 70px;
    
    /* Sektör Renkleri */
    --car-service-color: #3f51b5;
    --building-service-color: #009688;
    --education-service-color: #f39c12;
    --care-service-color: #8e44ad;
    --shipping-service-color: #e67e22;
    --software-service-color: #2c3e50;
}

/* Genel Reset */
* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', Arial, sans-serif; }

body { 
    display: flex; 
    flex-direction: column; 
    min-height: 100vh; /* SAYFAYI EKRANA YAYAR, FOOTER'I DİBE İTER */
    line-height: 1.6; 
    color: var(--dark-color); 
    background-color: var(--light-color); 
}

a { text-decoration: none; transition: 0.3s; }

/* --- HEADER --- */
.main-header { 
    background: var(--white-color); 
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); 
    height: var(--header-height); 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
}

.header-flex { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    height: 100%; 
    max-width: 1200px; 
    margin: auto; 
    padding: 0 20px; 
}

.logo { display: flex; align-items: center; font-size: 1.4rem; font-weight: bold; color: var(--dark-color); }

.logo-circle { 
    display: inline-flex; 
    justify-content: center; 
    align-items: center; 
    width: 26px; 
    height: 26px; 
    border-radius: 50%; 
    margin-right: 2px; 
    color: var(--white-color); 
    font-size: 0.8rem; 
}

.logo-circle.blue { background: var(--primary-color); }
.logo-circle.pink { background: var(--secondary-color); }

.header-right-btns { display: flex; align-items: center; gap: 10px; }

.btn-auth { 
    padding: 8px 16px; 
    border-radius: 5px; 
    font-weight: bold; 
    font-size: 13px; 
    color: white; 
}

.auth-user { background: var(--primary-color); }
.auth-pro { background: var(--secondary-color); }

/* --- SESLİ ARAMA --- */
.voice-search-wrapper { display: flex; justify-content: center; margin: 20px 0 30px 0; }

.voice-input-box { 
    display: flex; 
    align-items: center; 
    background: white; 
    border: 1px solid #ddd; 
    border-radius: 30px; 
    padding: 5px 15px; 
    width: 95%; 
    max-width: 320px; 
    justify-content: space-between;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

#voice-status { font-size: 0.9rem; color: #777; font-style: italic; }

.voice-btn-small { 
    background: var(--secondary-color); 
    color: white; 
    border: none; 
    width: 32px; 
    height: 32px; 
    border-radius: 50%; 
    cursor: pointer; 
}

/* --- SEKTÖR GRID --- */
.main-content { 
    flex: 1; /* İÇERİK AZ OLSA BİLE FOOTER'I DİBE İTER */
    padding: 20px 0; 
    text-align: center; 
}

.main-content h1 { margin-bottom: 20px; font-size: 2rem; padding: 0 10px; }

.services-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); 
    gap: 15px; 
    max-width: 1000px; 
    margin: auto; 
    padding: 0 20px;
}

.btn-sector { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    gap: 10px; 
    padding: 20px; 
    border-radius: 12px; 
    color: white !important; 
    font-weight: bold; 
    font-size: 0.95rem; 
    min-height: 110px; 
    transition: 0.3s;
}

.btn-sector i { font-size: 1.6rem; }
.btn-sector:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

/* Sektör Arka Planları */
.bg-car { background-color: var(--car-service-color); }
.bg-build { background-color: var(--building-service-color); }
.bg-edu { background-color: var(--education-service-color); }
.bg-care { background-color: var(--care-service-color); }
.bg-ship { background-color: var(--shipping-service-color); }
.bg-soft { background-color: var(--software-service-color); }

/* --- GİRİŞ SEÇENEKLERİ --- */
.auth-container { margin-top: 40px; display: flex; justify-content: center; gap: 15px; padding: 0 20px; }

.btn-auth-outline { 
    padding: 10px 20px; 
    border-radius: 25px; 
    font-weight: bold; 
    border: 2px solid;
    display: flex; 
    align-items: center; 
    gap: 8px; 
    font-size: 0.9rem;
}

.auth-user-outline { border-color: var(--primary-color); color: var(--primary-color); }
.auth-pro-outline { border-color: var(--secondary-color); color: var(--secondary-color); }

/* --- HEADER PROFİL KUTUSU (Geliştirildi) --- */
.header-profile-container { position: relative; user-select: none; }

.header-profile-trigger {
    display: flex; align-items: center; gap: 10px; background: #fff;
    padding: 4px 15px; border-radius: 50px; border: 1px solid #eee;
    cursor: pointer; transition: all 0.3s ease;
}

.header-profile-trigger:hover {
    border-color: var(--secondary-color);
    background-color: #fcfcfc;
}

.h-name { font-weight: 700; font-size: 13px; color: #333; text-transform: lowercase; }

.drop-arrow { font-size: 10px; color: #888; margin-left: 5px; }

.h-avatar-img { 
    width: 38px; height: 38px; border-radius: 50%; object-fit: cover; 
    border: 2px solid #fff; box-shadow: 0 2px 4px rgba(0,0,0,0.1); 
}

/* --- DROPDOWN MENÜ (Pembe & Modern) --- */
.profile-dropdown-menu {
    display: none; position: absolute; top: 55px; right: 0;
    background: var(--white-color); min-width: 230px; border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); z-index: 1001; padding: 0 0 8px 0;
    border: 1px solid #f0f0f0; overflow: hidden;
}

.show-dropdown { display: block !important; }

/* Menü Üst Başlık Alanı */
.dropdown-header {
    padding: 15px 20px;
    background-color: #fffafa; /* Çok hafif pembe zemin */
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 5px;
    text-align: left;
}

.dropdown-header strong {
    display: block;
    font-size: 14px;
    color: #222;
    margin-bottom: 2px;
}

.user-role-text {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: var(--secondary-color); /* LOREFIX PEMBESİ */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Menü Seçenekleri */
.profile-dropdown-menu a { 
    padding: 12px 20px; display: flex; align-items: center; 
    gap: 15px; color: #444; font-size: 14px; transition: 0.2s; 
    font-weight: 500;
}

.profile-dropdown-menu a i {
    width: 20px;
    text-align: center;
    font-size: 16px;
    color: var(--primary-color); /* İkonlar Varsayılan Mavi */
}

/* Hover: Üzerine gelince pembeleşme */
.profile-dropdown-menu a:hover { 
    background-color: #fff5f8; 
    color: var(--secondary-color); 
}

.profile-dropdown-menu a:hover i {
    color: var(--secondary-color);
}

/* Ayırıcı Çizgi */
.dropdown-divider {
    height: 1px;
    background-color: #f0f0f0;
    margin: 5px 0;
}

/* Çıkış Yap Kısmı */
.h-logout-link {
    border-top: 1px solid #f0f0f0 !important;
    margin-top: 5px;
    color: #d9534f !important;
}

.h-logout-link i { color: #d9534f !important; }


/* --- FOOTER DÜZELTME (10 CM SORUNUNU ÇÖZEN KISIM) --- */
.main-footer { 
    background: #252525; 
    color: white; 
    padding: 20px 0 10px 0 !important; /* DİKEY ALANI KISALTTIK */
    margin-top: auto; 
    border-top: 3px solid var(--primary-color);
}

.footer-content { max-width: 1000px; margin: 0 auto; padding: 0 20px; }

.footer-grid { 
    display: flex; 
    justify-content: space-between; 
    gap: 30px;
    text-align: left;
}

.footer-section { flex: 1; }

.footer-section h3 { 
    color: var(--primary-color); 
    font-size: 0.9rem; 
    margin-bottom: 8px !important; 
    text-transform: uppercase;
    font-weight: 800;
}

.footer-section p { color: #aaa; font-size: 0.8rem; line-height: 1.4; }

.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 4px; }

.footer-links li a { 
    color: #aaa !important; 
    text-decoration: none; 
    font-size: 0.8rem;
}

.social-icons { margin-top: 10px; }

.social-icons a { 
    color: var(--primary-color); 
    font-size: 1.2rem; 
    margin-right: 15px; 
    display: inline-block; 
}

.footer-hr { border: 0; border-top: 1px solid #333; margin: 10px 0 !important; }

.footer-bottom { text-align: center; color: #666; font-size: 0.75rem; padding-bottom: 5px; }

/* --- MOBİL UYUMLULUK --- */
@media (max-width: 768px) {
    .footer-grid { flex-direction: column; text-align: center; gap: 20px; }
    .services-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .auth-container { flex-direction: column; align-items: center; }
}

@media (max-width: 600px) {
    .header-flex { justify-content: space-between !important; padding: 0 15px; }
}