/* --- ACİL SAĞLIK-SEN | BUGATTI DESIGN SYSTEM V2.0 --- */

/* 1. DEĞİŞKENLER VE AYARLAR */
:root {
    /* Renk Paleti */
    --primary: #020617;       /* Gece Yarısı Siyahı (Zemin) */
    --primary-light: #1e293b; /* Koyu Gri (Kartlar) */
    --accent: #ef4444;        /* Acil Kırmızısı (Neon) */
    --accent-dark: #b91c1c;
    --text-main: #f8fafc;     /* Beyazımsı Metin */
    --text-muted: #94a3b8;    /* Sönük Gri */
    --glass-border: rgba(255, 255, 255, 0.1); /* İnce Çizgiler */
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--primary);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 2. HEADER (NAVİGASYON) */
header {
    background: rgba(2, 6, 23, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 999;
    padding: 1rem 0;
}

header .container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -1px;
}
.logo span { color: var(--accent); }

/* Menü Linkleri */
.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

.nav-menu ul li a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
    letter-spacing: 0.5px;
    display: flex; /* İkon ile yazıyı hizala */
    align-items: center;
    gap: 8px;
}

.nav-menu ul li a:hover { color: white; }

/* Alt Çizgi Animasyonu */
.nav-menu ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent);
    transition: var(--transition);
}
.nav-menu ul li a:hover::after { width: 100%; }

/* Hamburger İkonu */
.hamburger-menu {
    display: none;
    font-size: 1.8rem;
    color: white;
    cursor: pointer;
}

/* 3. GENEL BUTONLAR */
.btn-uye {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    padding: 10px 25px;
    border-radius: 50px;
    color: white !important;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
}
.btn-uye:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.6);
}
.btn-uye::after { content: none; }


/* 4. FORM VE INPUT TASARIMLARI */
.container-main {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
    padding-bottom: 50px;
}

.form-card, form { width: 100%; }

.input-group { margin-bottom: 20px; }

.input-group label {
    display: block;
    color: var(--text-main);
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
}

.input-wrapper { position: relative; }

.input-wrapper .icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
    pointer-events: none;
    z-index: 2;
}

/* Input, Select, Textarea Ortak Stil */
.input-wrapper input, 
.input-wrapper textarea,
.input-wrapper select {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 15px 15px 15px 50px; /* İkon boşluğu */
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.input-wrapper input:focus, 
.input-wrapper textarea:focus,
.input-wrapper select:focus {
    border-color: var(--accent);
    outline: none;
    background: rgba(0,0,0,0.5);
}

/* Textarea İkon Ayarı */
.textarea-wrapper .icon {
    top: 25px;
    transform: none;
}

/* Başarı/Hata Mesajları */
.alert-success { background: rgba(34, 197, 94, 0.2); color: #4ade80; padding: 15px; border-radius: 10px; margin-bottom: 20px; border: 1px solid rgba(34, 197, 94, 0.3); text-align: center; }
.alert-warning { background: rgba(234, 179, 8, 0.2); color: #facc15; padding: 15px; border-radius: 10px; margin-bottom: 20px; border: 1px solid rgba(234, 179, 8, 0.3); text-align: center; }


/* 5. ANA SAYFA KARTLARI */
.hero-wrapper {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-color: var(--primary);
}
.hero-content { z-index: 2; padding: 20px; }
.hero-title { font-family: 'Montserrat', sans-serif; font-size: 3.5rem; font-weight: 800; line-height: 1.1; margin-bottom: 20px; color: white; }
.hero-desc { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 30px; }

.stats-grid, .news-grid { display: grid; gap: 30px; }
.stats-grid { grid-template-columns: repeat(3, 1fr); margin-top: -80px; position: relative; z-index: 10;}
.news-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.stat-card, .news-card {
    background: var(--primary-light);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    transition: var(--transition);
}
.stat-card:hover, .news-card:hover { transform: translateY(-10px); border-color: var(--accent); }
.news-card { padding: 0; overflow: hidden; }
.news-content { padding: 25px; }


/* 6. MAAŞ HESAPLAMA ROBOTU (YENİ EKLENDİ) */
.test-banner {
    background: linear-gradient(45deg, #f59e0b, #d97706);
    color: #fff;
    text-align: center;
    padding: 15px;
    border-radius: 10px;
    font-weight: 800;
    margin-bottom: 30px;
    border: 2px dashed rgba(255,255,255,0.5);
    animation: flashBorder 2s infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
}

@keyframes flashBorder {
    0% { box-shadow: 0 0 5px #f59e0b; }
    50% { box-shadow: 0 0 20px #f59e0b; }
    100% { box-shadow: 0 0 5px #f59e0b; }
}

.calculator-wrapper { display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px; }
.calc-form { background: var(--primary-light); padding: 30px; border-radius: 20px; border: 1px solid var(--glass-border); }

/* Select okunu özelleştirme */
.calc-form select { appearance: none; cursor: pointer; }
.input-wrapper::after {
    content: '\f078';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}
.input-wrapper:has(input)::after { display: none; }

.result-box {
    background: rgba(2, 6, 23, 0.8);
    border: 1px solid var(--accent);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    position: sticky;
    top: 100px;
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.1);
}

.amount-display {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent);
    font-family: 'Montserrat', sans-serif;
    text-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}
.amount-display small { font-size: 1.5rem; font-weight: 400; }
.detail-row { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 0.95rem; color: white; }


/* 7. KURUMSAL & MEVZUAT ÖZEL TASARIMLARI */
.baskan-wrapper {
    display: flex; background: var(--primary-light); border: 1px solid var(--glass-border);
    border-radius: 20px; overflow: hidden; margin-bottom: 60px; box-shadow: var(--shadow-xl); min-height: 400px;
}
.baskan-img { flex: 1; min-width: 350px; background-size: cover; background-position: center; }
.baskan-img img { width: 100%; height: 100%; object-fit: cover; }
.baskan-content { flex: 2; padding: 50px; display: flex; flex-direction: column; justify-content: center; }
.imza-bolumu { margin-top: 30px; border-left: 4px solid var(--accent); padding-left: 20px; }

.vizyon-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.v-card {
    background: rgba(255, 255, 255, 0.02); padding: 40px 30px; border-radius: 20px;
    border: 1px solid var(--glass-border); transition: var(--transition); text-align: center;
}
.v-card:hover { background: var(--primary-light); transform: translateY(-10px); }
.v-card.active { border: 1px solid var(--accent); background: linear-gradient(160deg, rgba(239, 68, 68, 0.1), transparent); }
.icon-box {
    width: 80px; height: 80px; background: var(--primary); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; margin: 0 auto 25px auto;
    font-size: 2rem; color: var(--accent); border: 1px solid var(--glass-border);
}

/* Mevzuat Grid */
.mevzuat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(450px, 1fr)); gap: 25px; }
.doc-card {
    display: flex; align-items: center; background: var(--primary-light); padding: 25px;
    border-radius: 16px; text-decoration: none; border: 1px solid var(--glass-border); transition: var(--transition);
}
.doc-card:hover { border-color: var(--accent); transform: translateX(10px); background: rgba(30, 41, 59, 1); }
.doc-icon {
    width: 60px; height: 60px; background: rgba(239, 68, 68, 0.1); color: var(--accent);
    border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin-right: 20px;
}
.doc-icon.type-law { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.doc-icon.type-money { background: rgba(34, 197, 94, 0.1); color: #22c55e; }
.doc-icon.type-alert { background: rgba(251, 191, 36, 0.1); color: #f59e0b; }
.doc-info { flex: 1; }
.doc-info h4 { color: white; font-size: 1.1rem; margin-bottom: 5px; font-weight: 600; }
.doc-info span { color: var(--text-muted); font-size: 0.85rem; }
.doc-arrow { color: var(--text-muted); font-size: 1.2rem; transition: var(--transition); opacity: 0.5; }
.doc-card:hover .doc-arrow { color: white; transform: scale(1.2); opacity: 1; }


/* 8. WHATSAPP BUTONU */
.whatsapp-float {
    position: fixed; width: 60px; height: 60px; bottom: 30px; right: 30px;
    background-color: #25d366; color: #FFF; border-radius: 50px; text-align: center;
    font-size: 30px; z-index: 1000; display: flex; align-items: center; justify-content: center;
    text-decoration: none; animation: pulse-green 2s infinite;
}
.tooltip-text {
    visibility: hidden; width: 140px; background-color: var(--primary-light); color: #fff;
    text-align: center; border-radius: 6px; padding: 5px 0; position: absolute; right: 75px; top: 15px;
    font-size: 0.8rem; border: 1px solid var(--glass-border); opacity: 0; transition: opacity 0.3s;
}
.whatsapp-float:hover .tooltip-text { visibility: visible; opacity: 1; }
@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}


/* 9. MOBİL UYUMLULUK (RESPONSIVE) */
@media (max-width: 768px) {
    /* Header & Menü */
    header .container { justify-content: space-between; position: relative; }
    .hamburger-menu { display: block; }
    .nav-menu {
        position: absolute; top: 100%; left: 0; width: 100%; background: rgba(2, 6, 23, 0.98);
        border-bottom: 1px solid var(--glass-border); max-height: 0; overflow: hidden;
        transition: max-height 0.5s ease-in-out; box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    }
    .nav-menu.aktif { max-height: 600px; padding: 20px 0; }
    .nav-menu ul { flex-direction: column; gap: 20px; width: 100%; text-align: center; }
    .nav-menu ul li a { display: flex; justify-content: center; padding: 10px; font-size: 1.2rem; }
    .btn-uye { width: 80%; display: inline-block; margin: 10px auto; }

    /* Sayfa Elementleri */
    .hero-title { font-size: 2.2rem; }
    .stats-grid { grid-template-columns: 1fr; margin-top: 20px; }
    .container-main > div { grid-template-columns: 1fr !important; }
    
    /* Hakkımızda & Mevzuat */
    .baskan-wrapper { flex-direction: column; }
    .baskan-img { height: 250px; }
    .baskan-content { padding: 30px; }
    .mevzuat-grid { grid-template-columns: 1fr; }
    .doc-card { flex-direction: row; }

    /* Maaş Robotu */
    .calculator-wrapper { grid-template-columns: 1fr; }
    .result-box { position: static; margin-top: 20px; }
    .test-banner { font-size: 0.8rem; flex-direction: column; }
}

/* --- SELECT MENÜ (DROPDOWN) DÜZELTMESİ --- */

/* Select Kutusunun Kendisi */
.input-wrapper select {
    appearance: none; /* Varsayılan ok işaretini ve stili kaldır */
    -webkit-appearance: none;
    -moz-appearance: none;
    
    background-color: rgba(0, 0, 0, 0.4) !important; /* Koyu zemin */
    color: white !important; /* Beyaz yazı */
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 15px 15px 15px 50px; /* İkon için soldan boşluk */
    width: 100%;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Üzerine gelince veya tıklayınca */
.input-wrapper select:focus,
.input-wrapper select:hover {
    border-color: var(--accent); /* Kırmızı kenarlık */
    background-color: rgba(0, 0, 0, 0.6) !important;
    outline: none;
}

/* --- AÇILAN LİSTE (OPTIONS) DÜZELTMESİ --- */
/* Burası çok önemli: Açılan listenin içi de siyah olsun */
.input-wrapper select option {
    background-color: #020617; /* Sitemizin ana arka plan rengi */
    color: white;
    padding: 10px;
}