/* AnkaHukuk Üyelik Sistemi — EA Tarzı */

/* FORM WRAPPER */
.ahu-form-wrap {
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
  border: 1px solid #e8e4dc;
}
.ahu-form-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 22px;
  font-weight: 700;
  color: #0f1f3d;
  margin-bottom: 20px;
  text-align: center;
}
.ahu-up-tease {
  background: linear-gradient(90deg, #0f1f3d, #1e3563);
  color: #fff;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 13.5px;
  margin-bottom: 20px;
  text-align: center;
}
.ahu-up-tease strong { color: #e4a83c; }

/* FORM FIELDS */
.ahu-fg { margin-bottom: 14px; }
.ahu-fg label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 5px;
}
.ahu-req { color: #be3527; }
.ahu-fg input,
.ahu-fg select,
.ahu-fg textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid #e5e7eb;
  border-radius: 9px;
  font-size: 14.5px;
  color: #111827;
  font-family: inherit;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  background: #fff;
}
.ahu-fg input:focus,
.ahu-fg select:focus,
.ahu-fg textarea:focus {
  border-color: #0f1f3d;
  box-shadow: 0 0 0 3px rgba(15,31,61,.07);
}

/* PHONE */
.ahu-phone-row { display: flex; align-items: center; gap: 0; }
.ahu-flag {
  background: #f3f4f6;
  border: 1.5px solid #e5e7eb;
  border-right: none;
  border-radius: 9px 0 0 9px;
  padding: 10px 12px;
  font-size: 14px;
  white-space: nowrap;
  color: #374151;
}
.ahu-phone-row input {
  border-radius: 0 9px 9px 0 !important;
}

/* PASSWORD */
.ahu-pass-wrap { position: relative; }
.ahu-pass-wrap input { padding-right: 44px; }
.ahu-eye {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; font-size: 16px; color: #9ca3af;
}
.ahu-pass-strength {
  height: 4px; border-radius: 2px; margin-top: 6px;
  background: #e5e7eb; overflow: hidden;
}
.ahu-pass-strength::after {
  content: '';
  display: block;
  height: 100%;
  width: var(--str, 0%);
  background: var(--str-color, #e5e7eb);
  transition: width .3s, background .3s;
  border-radius: 2px;
}

/* CHECKBOXES */
.ahu-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
  line-height: 1.5;
}
.ahu-check input[type="checkbox"] {
  width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px;
  accent-color: #0f1f3d;
}
.ahu-check a { color: #1a5fa8; text-decoration: underline; }
.ahu-agreements {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 13px;
  margin-bottom: 14px;
}

/* BUTTONS */
.ahu-btn {
  width: 100%;
  padding: 12px;
  background: #0f1f3d;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s;
  margin-bottom: 8px;
}
.ahu-btn:hover { background: #1e3563; }
.ahu-btn-outline {
  background: none;
  border: 1.5px solid #e5e7eb;
  color: #374151;
}
.ahu-btn-outline:hover { background: #f9fafb; }
.ahu-btn-sm { width: auto; padding: 10px 16px; font-size: 13px; margin: 0; }

/* ALERTS */
.ahu-alert {
  padding: 11px 14px;
  border-radius: 9px;
  font-size: 13.5px;
  margin-bottom: 14px;
}
.ahu-alert.error   { background: #fce9e9; color: #7f1d1d; border: 1px solid #fca5a5; }
.ahu-alert.success { background: #dcfce7; color: #14532d; border: 1px solid #86efac; }

/* SMS */
.ahu-sms-info {
  background: #eff6ff; border: 1px solid #bfdbfe;
  border-radius: 10px; padding: 12px;
  font-size: 13px; color: #1e40af;
  margin-bottom: 14px; text-align: center;
}
.ahu-code-row { display: flex; gap: 8px; align-items: center; }
.ahu-code-row input { font-size: 22px; letter-spacing: 8px; text-align: center; flex: 1; }
.ahu-countdown { font-size: 12px; color: #9ca3af; margin-top: 5px; }

/* DIVIDER */
.ahu-divider {
  text-align: center; position: relative;
  font-size: 12px; color: #9ca3af; margin: 14px 0;
}
.ahu-divider::before, .ahu-divider::after {
  content: ''; position: absolute; top: 50%;
  width: 44%; height: 1px; background: #e5e7eb;
}
.ahu-divider::before { left: 0; }
.ahu-divider::after  { right: 0; }

.ahu-row-between { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.ahu-link { color: #1a5fa8; font-size: 13px; text-decoration: none; }
.ahu-link:hover { text-decoration: underline; }
.ahu-switch { text-align: center; font-size: 13px; color: #6b7280; }

/* ── PROFİL ── */
.ahu-profile { max-width: 640px; margin: 0 auto; }
.ahu-prof-header {
  display: flex; align-items: center; gap: 18px;
  background: linear-gradient(135deg, #0f1f3d, #1e3563);
  border-radius: 14px; padding: 22px;
  margin-bottom: 22px; color: #fff;
}
.ahu-prof-av {
  width: 64px; height: 64px; border-radius: 50%;
  background: #c8922a; color: #0f1f3d;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; flex-shrink: 0;
  border: 3px solid rgba(255,255,255,.2);
}
.ahu-prof-info { flex: 1; }
.ahu-prof-info h2 { font-size: 18px; font-weight: 700; margin-bottom: 3px; }
.ahu-prof-role  { font-size: 12.5px; color: rgba(255,255,255,.55); margin-bottom: 2px; }
.ahu-prof-email { font-size: 12px; color: rgba(255,255,255,.45); }
.ahu-prof-pts   { text-align: center; flex-shrink: 0; }
.ahu-pts-num { font-size: 28px; font-weight: 800; color: #e4a83c; font-family: Georgia, serif; }
.ahu-pts-lbl { font-size: 11px; color: rgba(255,255,255,.45); }

.ahu-section-title {
  font-size: 13.5px; font-weight: 700; color: #0f1f3d;
  margin-bottom: 12px; padding-bottom: 8px;
  border-bottom: 1px solid #e8e4dc;
}
.ahu-badges { margin-bottom: 22px; }
.ahu-badge-list { display: flex; gap: 10px; flex-wrap: wrap; }
.ahu-badge-item {
  background: #fff; border: 1px solid #e8e4dc;
  border-radius: 10px; padding: 10px 14px;
  text-align: center; font-size: 22px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.ahu-badge-name { font-size: 11px; color: #374151; font-weight: 600; }
.ahu-edit-profile {
  background: #f9fafb; border: 1px solid #e5e7eb;
  border-radius: 12px; padding: 18px;
}

/* MENÜ BUTONU */
.ahu-menu-btns { display: flex; gap: 8px; align-items: center; }
.ahu-menu-btn-ghost {
  padding: 6px 14px; border: 1px solid rgba(255,255,255,.3);
  border-radius: 18px; color: rgba(255,255,255,.85); font-size: 13px;
  text-decoration: none; transition: .15s;
}
.ahu-menu-btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.ahu-menu-btn-primary {
  padding: 7px 16px; background: #c8922a; border-radius: 18px;
  color: #0f1f3d; font-size: 13px; font-weight: 700;
  text-decoration: none; transition: .15s;
}
.ahu-menu-btn-primary:hover { background: #e4a83c; }
.ahu-menu-user { display: flex; align-items: center; gap: 8px; }
.ahu-menu-av {
  width: 32px; height: 32px; border-radius: 50%;
  background: #c8922a; color: #0f1f3d;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
}
.ahu-menu-name { font-size: 13px; color: #fff; font-weight: 600; }
.ahu-menu-pts  { font-size: 11.5px; color: #e4a83c; }

/* ZATEN GİRİŞ */
.ahu-already-logged {
  display: flex; align-items: center; justify-content: space-between;
  background: #dcfce7; border: 1px solid #86efac;
  border-radius: 10px; padding: 12px 16px; font-size: 14px;
}
.ahu-logout-link { color: #be3527; font-size: 13px; text-decoration: none; }

/* Responsive */
@media(max-width: 480px) {
  .ahu-form-wrap { padding: 22px 16px; }
  .ahu-prof-header { flex-wrap: wrap; }
}


/* ═══════════════════════════════════════════════════════
   MENÜ — Profil Dropdown + Bildirim Zili
═══════════════════════════════════════════════════════ */

/* Menü item wrapper — temadaki li ile aynı hizaya gel */
.ahu-nav-item {
    position: relative;
    display: inline-flex !important;
    align-items: center !important;
    vertical-align: middle !important;
    float: none !important;
    list-style: none;
    padding: 0 !important;
    margin: 0 !important;
    /* Temadaki menü satır yüksekliğine kilitle */
    height: 100%;
    self-align: center;
}

/* Tema menü ul'una yönelik hizalama düzeltmesi */
.ahu-nav-item a,
.ahu-nav-item button {
    vertical-align: middle;
}

/* Bazı temalar li içine line-height verir, sıfırla */
.ahu-nav-notif,
.ahu-nav-profil {
    line-height: 1 !important;
}

/* ── TAGDIV NEWSPAPER TEMA ÖZEL DÜZELTME ──
   Menü ul'u flex ise li'ler otomatik ortalanır.
   Ama tema kendi li'lerine padding/margin veriyorsa
   aşağıdaki ile ezmek gerekir.
   Gerekirse DevTools'da kontrol edin. */
ul.sf-menu > .ahu-nav-item,
ul.main-menu > .ahu-nav-item,
nav ul > .ahu-nav-item,
#td-header-menu > .ahu-nav-item,
.td-header-menu-wrap ul > .ahu-nav-item,
.td-header-wrap ul > .ahu-nav-item {
    display: inline-flex !important;
    align-items: center !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    self-align: center !important;
}

/* Profil + Zil butonları için margin düzenle */
.ahu-nav-notif { margin-left: 6px !important; }
.ahu-nav-profil { margin-left: 4px !important; }
.ahu-nav-giris  { margin-left: 8px !important; }
.ahu-nav-kayit  { margin-left: 4px !important; }

/* ── GİRİŞ YAPMAMIŞ BUTONLAR ── */
.ahu-nav-ghost {
    padding: 5px 14px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 18px;
    color: rgba(255,255,255,.85) !important;
    font-size: 13px !important;
    text-decoration: none !important;
    transition: background .15s;
    white-space: nowrap;
}
.ahu-nav-ghost:hover { background: rgba(255,255,255,.1) !important; color: #fff !important; }
.ahu-nav-primary {
    padding: 6px 16px;
    background: #c8922a;
    border-radius: 18px;
    color: #0f1f3d !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: background .15s;
    white-space: nowrap;
    margin-left: 6px;
}
.ahu-nav-primary:hover { background: #e4a83c !important; }

/* ── BİLDİRİM ZİLİ ── */
.ahu-notif-btn {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    color: rgba(255,255,255,.8);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; position: relative;
    transition: background .15s;
    margin-right: 4px;
}
.ahu-notif-btn:hover { background: rgba(255,255,255,.18); color: #fff; }
.ahu-notif-dot {
    position: absolute; top: -3px; right: -3px;
    min-width: 16px; height: 16px;
    background: #be3527; color: #fff;
    border-radius: 8px; font-size: 9px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--nav-bg, #0f1f3d);
    padding: 0 3px;
}

/* ── PROFİL BUTONU — link + ayrı dropdown oku ── */
.ahu-profil-btn-wrap {
    display: flex; align-items: center;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 20px;
    overflow: hidden;
    transition: background .15s;
}
.ahu-profil-btn-wrap:hover { background: rgba(255,255,255,.16); }
.ahu-profil-btn-link {
    display: flex; align-items: center; gap: 7px;
    padding: 4px 8px 4px 4px;
    text-decoration: none !important;
    color: #fff !important;
}
.ahu-profil-caret-btn {
    display: flex; align-items: center; justify-content: center;
    width: 26px; height: 100%;
    background: rgba(255,255,255,.08);
    border: none; border-left: 1px solid rgba(255,255,255,.12);
    cursor: pointer; color: rgba(255,255,255,.7);
    padding: 0; transition: background .15s;
}
.ahu-profil-caret-btn:hover { background: rgba(255,255,255,.2); color: #fff; }
.ahu-nav-av {
    width: 26px; height: 26px; border-radius: 50%;
    background: #c8922a; color: #0f1f3d;
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 800; flex-shrink: 0;
}
.ahu-nav-pts {
    font-size: 12px; color: #e4a83c; font-weight: 700;
    white-space: nowrap;
}
.ahu-caret {
    opacity: .6; transition: transform .2s; flex-shrink: 0;
}
.ahu-nav-profil.open .ahu-caret { transform: rotate(180deg); }

/* ── DROPDOWN ORTAK ── */
.ahu-notif-dd,
.ahu-profil-dd {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0,0,0,.18);
    z-index: 9000;
    opacity: 0;
    transform: translateY(-8px) scale(.97);
    pointer-events: none;
    transition: opacity .2s, transform .2s;
}
.ahu-notif-dd.open,
.ahu-profil-dd.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

/* ── BİLDİRİM DROPDOWN ── */
.ahu-notif-dd { width: 320px; }
.ahu-dd-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 13px 16px 10px;
    border-bottom: 1px solid #f0ede6;
}
.ahu-dd-title { font-size: 14px; font-weight: 700; color: #0f1f3d; }
.ahu-dd-mark-all {
    font-size: 11.5px; color: #1a5fa8;
    background: none; border: none; cursor: pointer;
    font-family: inherit; padding: 0;
}
.ahu-dd-mark-all:hover { text-decoration: underline; }
.ahu-notif-list { max-height: 320px; overflow-y: auto; }
.ahu-notif-loading { padding: 20px; text-align: center; color: #9ca3af; font-size: 13px; }
.ahu-notif-item {
    display: flex; gap: 10px;
    padding: 11px 16px;
    border-bottom: 1px solid #f9f9f7;
    cursor: pointer; transition: background .12s;
    position: relative;
}
.ahu-notif-item:hover { background: #f9f9f7; }
.ahu-notif-item.unread { background: #fffbf0; }
.ahu-notif-item.unread::before {
    content: '';
    position: absolute; left: 5px; top: 50%; transform: translateY(-50%);
    width: 6px; height: 6px; border-radius: 50%; background: #1a5fa8;
}
.ahu-notif-ico {
    width: 34px; height: 34px; border-radius: 50%;
    background: #f0ede6;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; flex-shrink: 0;
}
.ahu-notif-body { flex: 1; }
.ahu-notif-text { font-size: 13px; color: #1a1a18; line-height: 1.45; margin-bottom: 3px; }
.ahu-notif-time { font-size: 11px; color: #9ca3af; }
.ahu-dd-footer {
    padding: 10px 16px;
    border-top: 1px solid #f0ede6;
    text-align: center;
}
.ahu-dd-footer a { font-size: 13px; color: #1a5fa8; text-decoration: none; }
.ahu-dd-footer a:hover { text-decoration: underline; }

/* ── PROFİL DROPDOWN ── */
.ahu-profil-dd { width: 280px; }
.ahu-dd-user-card {
    display: flex; align-items: center; gap: 12px;
    padding: 16px 16px 13px;
    border-bottom: 1px solid #f0ede6;
    background: linear-gradient(135deg, #0f1f3d, #1e3563);
    border-radius: 14px 14px 0 0;
}
.ahu-dd-av {
    width: 44px; height: 44px; border-radius: 50%;
    background: #c8922a; color: #0f1f3d;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 800; flex-shrink: 0;
    border: 2px solid rgba(255,255,255,.2);
}
.ahu-dd-user-info { flex: 1; min-width: 0; }
.ahu-dd-user-name {
    font-size: 13.5px; font-weight: 700; color: #fff;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    margin-bottom: 2px;
}
.ahu-dd-user-role { font-size: 11px; color: rgba(255,255,255,.5); }
.ahu-dd-badges { display: flex; gap: 4px; margin-top: 5px; }
.ahu-dd-badge { font-size: 15px; }
.ahu-dd-pts-box { text-align: center; flex-shrink: 0; }
.ahu-dd-pts-num {
    font-size: 20px; font-weight: 800; color: #e4a83c;
    font-family: Georgia, serif; line-height: 1;
}
.ahu-dd-pts-lbl { font-size: 10px; color: rgba(255,255,255,.4); margin-top: 2px; }

.ahu-dd-links { padding: 8px; }
.ahu-dd-link {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 10px;
    border-radius: 8px;
    font-size: 13.5px; color: #374151 !important;
    text-decoration: none !important;
    transition: background .12s;
}
.ahu-dd-link:hover { background: #f9f9f7; color: #0f1f3d !important; }
.ahu-dd-link-ico { font-size: 15px; width: 20px; text-align: center; flex-shrink: 0; }
.ahu-dd-link-badge {
    margin-left: auto;
    font-size: 10px; font-weight: 700;
    padding: 1px 6px; border-radius: 6px;
    background: #f0ede6; color: #374151;
}
.ahu-dd-link-badge.ahu-badge-red { background: #fce9e9; color: #be3527; }
.ahu-dd-divider { height: 1px; background: #f0ede6; margin: 6px 8px; }
.ahu-dd-logout { color: #be3527 !important; }
.ahu-dd-logout:hover { background: #fce9e9 !important; }

/* Responsive */
@media(max-width: 768px) {
    .ahu-nav-pts { display: none; }
    .ahu-nav-ghost { display: none; }
    .ahu-notif-dd { right: -60px; width: 290px; }
    .ahu-profil-dd { right: 0; width: 260px; }
}


/* ═══════════════════════════════════════════════════════
   TEPKİ SİSTEMİ — Yazı sonunda gösterilir
═══════════════════════════════════════════════════════ */
.ahu-reactions {
    margin: 32px 0 24px;
    background: #f8f9fb;
    border: 1px solid #e8e4dc;
    border-radius: 14px;
    padding: 18px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.ahu-rxn-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 14px; flex-wrap: wrap; gap: 6px;
}
.ahu-rxn-title  { font-size: 14px; font-weight: 700; color: #0f1f3d; }
.ahu-rxn-total  { font-size: 12px; color: #9ca3af; }
.ahu-rxn-grid   { display: flex; flex-wrap: wrap; gap: 8px; }

.ahu-rxn-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 13px 7px 10px;
    border-radius: 20px;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    cursor: pointer;
    font-size: 13.5px; font-weight: 600;
    font-family: inherit;
    transition: border-color .18s, background .18s, transform .18s, box-shadow .18s;
    white-space: nowrap;
}
.ahu-rxn-btn:hover {
    border-color: var(--rxn-color, #0f1f3d);
    background: var(--rxn-bg, #f0f0f0);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.ahu-rxn-btn.ahu-rxn-active {
    border-color: var(--rxn-color, #0f1f3d) !important;
    background: var(--rxn-bg, #f0f0f0) !important;
    color: var(--rxn-color, #0f1f3d) !important;
}
.ahu-rxn-emoji  { font-size: 17px; line-height: 1; }
.ahu-rxn-label  { font-size: 13px; color: #374151; }
.ahu-rxn-btn.ahu-rxn-active .ahu-rxn-label { color: var(--rxn-color, #0f1f3d); }
.ahu-rxn-cnt {
    font-size: 11.5px; font-weight: 700;
    background: #f0ede6; color: #6b7280;
    border-radius: 7px; padding: 1px 6px; min-width: 18px; text-align: center;
}
.ahu-rxn-btn.ahu-rxn-active .ahu-rxn-cnt {
    background: var(--rxn-color, #0f1f3d);
    color: #fff;
}
.ahu-rxn-btn.ahu-rxn-pop .ahu-rxn-emoji {
    animation: ahu-pop .35s cubic-bezier(.34,1.56,.64,1);
}
@keyframes ahu-pop {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.6) rotate(-8deg); }
    100% { transform: scale(1.2) rotate(-3deg); }
}
.ahu-rxn-login-note {
    margin-top: 10px; font-size: 12.5px; color: #9ca3af;
    padding-top: 10px; border-top: 1px solid #e5e7eb;
}
.ahu-rxn-login-note a { color: #1a5fa8; }

@media(max-width:480px) {
    .ahu-rxn-btn { padding: 6px 10px; font-size: 12.5px; }
    .ahu-rxn-label { display: none; }
}
