/* ======================================== */
/* uye/style.css - Üye Portalı Stil Dosyası */
/* ======================================== */

/* 1. Genel Sayfa Stilleri */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f4f7f6;
    margin: 0;
    padding: 0;
}
.konteyner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* 2. Giriş ve Doğrulama Sayfası Stilleri */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}
.login-container {
    background: #ffffff;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
    text-align: center;
    border-top: 5px solid #134977;
}
.login-logo img {
    max-width: 150px;
    margin-bottom: 15px;
}
.login-container h1, .login-container h2 {
    color:#333;
    margin-top:0;
    border: none;
    padding-bottom: 0;
    margin-bottom: 10px;
}
.form-grup {
    margin-bottom: 20px;
    text-align: left;
}
.form-grup label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}
.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
}
button[type="submit"], .islem-butonu {
    padding: 12px 20px;
    background-color: #5cb85c;
    border: none;
    color: white !important;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
    display: inline-block;
    box-sizing: border-box;
}
button[type="submit"] { width: 100%; }
button[type="submit"]:hover { background-color: #4cae4c; }

/* 3. Portal İçi Menü Stilleri */
.portal-menu {
    background: #134977;
    color: #fff;
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    z-index: 100;
}
.portal-menu .konteyner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.portal-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: white;
}
.portal-logo img { height: 40px; }
.portal-logo span { font-weight: bold; font-size: 18px; }
.portal-linkler {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0;
    padding: 0;
}
.portal-linkler li { position: relative; }
.portal-linkler a {
    color: white;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 6px;
    transition: background 0.3s;
    display: flex;
    align-items: center;
}
.portal-linkler a:hover,
.portal-linkler a.aktif {
    background: rgba(255,255,255,0.17);
    color: #fff;
}
.hosgeldin-mesaji { font-size: 14px; opacity: 0.8; }

.dropdown-menu {
    display: none;
    position: absolute;
    list-style: none;
    top: 100%;
    left: 0;
    background: #fff;
    color: #134977;
    min-width: 190px;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.13);
    padding: 10px 0;
    z-index: 2000;
}
.dropdown-menu li a {
    color: #134977 !important;
    background: none !important;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 0;
}
.dropdown-menu li a:hover {
    background: #f1f5fa !important;
    color: #134977 !important;
}

/* Desktop hover açılır */
@media (min-width: 769px) {
    .portal-linkler .dropdown:hover > .dropdown-menu {
        display: block;
    }
}



/* 4. Portal İçi İçerik Alanları */
.portal-icerik {
    margin: 40px 0;
    background: #fff;
    padding: 30px 40px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
.portal-icerik h1 { text-align: left; border-bottom: 2px solid #134977; margin-bottom: 20px; }
.islem-butonu.duzenle-btn { background-color: #0275d8; }
.liste-bos-mesaj { padding: 20px; text-align: center; background-color: #f9f9f9; border-radius: 5px; }

/* Bilgilerim Sayfası Stilleri */
.bilgi-listesi { margin-top: 30px; border: 1px solid #e7e7e7; border-radius: 8px; overflow: hidden; }
.bilgi-satiri { display: flex; justify-content: space-between; padding: 15px; border-bottom: 1px solid #e7e7e7; }
.bilgi-satiri:last-child { border-bottom: none; }
.bilgi-satiri:nth-child(even) { background-color: #f8f9fa; }
.bilgi-satiri .etiket { font-weight: 600; color: #555; }
.bilgi-satiri .veri { font-weight: 500; color: #333; }

/* Mesajlaşma Stilleri */
.mesaj-listesi { margin-top: 30px; }
.mesaj-listesi .liste-baslik { display: grid; grid-template-columns: 3fr 1fr 1.5fr; padding: 12px 15px; background-color: #f2f2f2; font-weight: bold; border-bottom: 2px solid #ddd; }
.mesaj-satiri { display: grid; grid-template-columns: 3fr 1fr 1.5fr; padding: 15px; border-bottom: 1px solid #eee; text-decoration: none; color: #333; transition: background-color 0.2s; align-items: center; }
.mesaj-satiri:hover { background-color: #f9f9f9; }
.mesaj-akisi { border: 1px solid #ddd; border-radius: 8px; padding: 20px; height: 400px; overflow-y: auto; display: flex; flex-direction: column; background-color: #f8f9fa; gap: 10px; }
.mesaj-balonu { max-width: 70%; padding: 15px 20px; border-radius: 20px; margin-bottom: 5px; line-height: 1.5; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); }
.gonderen-bilgisi { font-weight: bold; font-size: 12px; margin-bottom: 3px; opacity: 0.8; }
.mesaj-tarihi { font-size: 10px; color: #999; margin-top: 5px; text-align: right; opacity: 0.7; }
.gelen-mesaj { background-color: #ffffff; border: 1px solid #e7e7e7; align-self: flex-start; border-top-left-radius: 4px; }
.giden-mesaj { background-color: #d4edda; color: #155724; align-self: flex-end; border-top-right-radius: 4px; }

/* 5. Portal Mobil Uyumluluk */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
}
.menu-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
    border-radius: 3px;
    transition: all 0.3s;
}

@media (max-width: 768px) {
    .konteyner { flex-direction: row; }
    .menu-toggle { display: block; }
    .portal-linkler {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100vw;
        background: #2a3e54;
        box-shadow: 0 6px 15px rgba(0,0,0,0.13);
        z-index: 9999;
        gap: 0;
    }
    .portal-linkler.aktif { display: flex; }
    .portal-linkler li {
        width: 100%;
        text-align: left;
    }
    .portal-linkler li a {
        width: 100%;
        font-size: 16px;
        padding: 18px 24px;
        border-radius: 0;
        border-bottom: 1px solid #405570;
        background: none;
    }
    .hosgeldin-mesaji {
        order: -1;
        border-bottom: 1px solid #405570;
        padding: 18px 24px 18px 29px;
        background: #24364b;
        width: 100%;
        color: #b9c8d6;
        /* Ek olarak: */
        box-sizing: border-box;
    }
    .dropdown-menu {
        display: none;
        position: static;
        background: #e9eef2 !important;
        color: #134977;
        min-width: 100%;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        z-index: 99;
    }
    .dropdown-menu.mobil-aktif {
        display: block !important;
    }
    .dropdown-menu li a {
        color: #134977 !important;
        padding: 16px 38px;
        font-weight: 500;
        background: none !important;
        border-radius: 0;
    }
    .dropdown-menu li a:hover {
        background: #e4e8ef !important;
        color: #134977 !important;
    }

    .mesaj-header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .mesaj-listesi .liste-baslik { display: none; }
    .mesaj-satiri { display: block; border: 1px solid #ddd; border-radius: 8px; margin-bottom: 10px; padding: 10px; }
    .mesaj-satiri > div { display: flex; justify-content: space-between; padding: 8px 5px; border-bottom: 1px solid #eee; }
    .mesaj-satiri > div:last-child { border-bottom: none; }
    .mesaj-satiri > div::before { content: attr(data-label); font-weight: bold; padding-right: 10px; }
}



/* ETKİNLİKLERİM Sayfasını Düzenleyer */
.etkinlik-listesi { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.etkinlik-karti { background: #fff; border: 1px solid #ddd; border-radius: 8px; overflow: hidden; }
.etkinlik-karti.gecmis { opacity: 0.7; }
.etkinlik-icerik { padding: 20px; }
.etkinlik-icerik h3 { margin-top: 0; border: none; padding: 0; }
.durum-etiketi { font-weight: bold; padding: 3px 8px; border-radius: 15px; font-size: 12px; }
.durum-onaylandı { color: #155724; background-color: #d4edda; }
.durum-onay-bekliyor { color: #856404; background-color: #fff3cd; }



/* === PORTAL İÇİ YAKLAŞAN ETKİNLİKLER STİLLERİ (GÜNCELLENDİ) === */
.etkinlik-karti-portal { display: flex; flex-direction: column; background-color: #fff; border: 1px solid #e9ecef; border-left: 5px solid #5cb85c; border-radius: 8px; padding: 20px; gap: 15px; }
.etkinlik-bilgi h3 { margin: 0 0 10px 0; font-size: 18px; border: none; padding: 0; color: #134977; }
.etkinlik-aciklama-portal { font-size: 15px; line-height: 1.6; color: #495057; margin-bottom: 15px; }
.etkinlik-meta { display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: 13px; color: #495057; }
.etkinlik-meta span { display: flex; align-items: center; gap: 8px; }
.etkinlik-meta .fas { color: #6c757d; }
.etkinlik-eylem { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; }
.kayit-ol-btn { background-color: #d9534f; color: white !important; padding: 10px 20px; border-radius: 5px; text-decoration: none; font-size: 14px; font-weight: bold; border: none; cursor: pointer; transition: background-color 0.3s; }
.kayit-ol-btn:hover { background-color: #c9302c; }
.kayit-ol-btn.kayitli { background-color: #5cb85c; cursor: default; }
.kayit-ol-btn.pasif { background-color: #6c757d; cursor: not-allowed; }
.detay-link { font-size: 13px; color: #0275d8; text-decoration: underline; }


/* Kampanya Stilleri */
.kampanya-listesi { margin-top: 30px; display: flex; flex-direction: column; gap: 20px; }
.kampanya-karti { background: #f8f9fa; border: 1px solid #ddd; border-left: 5px solid #0275d8; border-radius: 8px; padding: 20px; }
.kampanya-karti h3 { margin-top: 0; }
.kod-alani { background: #fff; border: 1px dashed #ccc; padding: 15px; border-radius: 5px; display: flex; flex-direction: column; gap: 5px; font-size: 1.1em; letter-spacing: 1px; }