/* ==========================================
   HEADER AKSIYONLAR
   ========================================== */

.main-header__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Arama */
.main-header__action-btn {
    background: none; border: none; cursor: pointer;
    padding: 8px 10px; font-size: 20px;
    color: #351C42; transition: color .3s;
    display: flex; align-items: center;
}
.main-header__action-btn:hover { color: #e30613; }

/* Dil seçici */
.main-header__lang { position: relative; }
.main-header__lang-btn {
    display: flex; align-items: center; gap: 5px;
    background: none; border: 1.5px solid #e5e7eb;
    border-radius: 8px; padding: 7px 12px; cursor: pointer;
    font: 600 14px/1 var(--idea-heading-font,"Quicksand",sans-serif);
    color: #351C42; transition: border-color .25s, color .25s;
}
.main-header__lang-btn:hover { border-color: #e30613; color: #e30613; }
.lang-code { font-size: 13px; }
.main-header__lang-dropdown {
    display: none; position: absolute;
    top: calc(100% + 4px); right: 0;
    background: #fff; border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,.12);
    list-style: none; margin: 0; padding: 6px;
    min-width: 130px; z-index: 99999;
}
.main-header__lang.open .main-header__lang-dropdown { display: block; }
.main-header__lang-dropdown li a {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 12px; border-radius: 6px;
    font: 600 14px/1 var(--idea-heading-font,"Quicksand",sans-serif);
    color: #351C42; text-decoration: none; transition: background .2s;
}
.main-header__lang-dropdown li a:hover,
.main-header__lang-dropdown li a.active { background: #fef2f2; color: #e30613; }

/* Giriş */
.main-header__login-btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 20px; border: 2px solid #e30613;
    border-radius: 8px; color: #e30613;
    font: 700 14px/1 var(--idea-heading-font,"Quicksand",sans-serif);
    text-decoration: none; white-space: nowrap; transition: all .25s;
}
.main-header__login-btn:hover { background: #e30613; color: #fff; }

/* CTA */
.main-header__cta-btn {
    display: inline-flex; align-items: center;
    padding: 10px 22px; background: #e30613;
    color: #fff !important; border-radius: 8px;
    font: 700 14px/1 var(--idea-heading-font,"Quicksand",sans-serif);
    text-decoration: none; white-space: nowrap;
    transition: background .25s, box-shadow .25s;
    box-shadow: 0 4px 14px rgba(227,6,19,.3);
}
.main-header__cta-btn:hover {
    background: #c10510;
    box-shadow: 0 6px 20px rgba(227,6,19,.4);
}

/* ==========================================
   CHEVRON ANİMASYON
   ========================================== */
.ak-chevron {
    font-size: 10px; margin-left: 5px;
    transition: transform .3s; display: inline-block;
}
.ak-mega-li:hover > a .ak-chevron { transform: rotate(180deg); }

/* ==========================================
   DROPDOWN TEMEL YAPI
   (idea.css ile çakışmaz: div kullanıyoruz, ul değil)
   ========================================== */
.ak-mega-li { position: relative !important; }

.ak-mega {
    position: absolute;
    top: calc(100% + 4px);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(0,0,0,.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .25s, visibility .25s, transform .25s;
    z-index: 9999;
    border-top: 3px solid #e30613;
    overflow: hidden;
}
.ak-mega-li:hover > .ak-mega {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ==========================================
   EĞİTİMLER - MEGA MENÜ
   ========================================== */
.ak-mega--edu {
    left: -40px;
    width: 560px;
}

/* Üst başlık bandı */
.ak-mega__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px 14px;
    border-bottom: 1px solid #f3f4f6;
}
.ak-mega__header-text h4 {
    margin: 0 0 3px;
    font: 700 15px/1 var(--idea-heading-font,"Quicksand",sans-serif);
    color: #1a1a2e;
}
.ak-mega__header-text p {
    margin: 0;
    font-size: 12px;
    color: #9ca3af;
}
.ak-mega__header-link {
    font: 600 13px/1 var(--idea-heading-font,"Quicksand",sans-serif);
    color: #e30613; text-decoration: none;
    display: flex; align-items: center; gap: 5px;
    transition: gap .2s;
    white-space: nowrap;
}
.ak-mega__header-link:hover { gap: 8px; }

/* 2-3 kolonlu grid */
.ak-mega__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 14px 14px 10px;
}

.ak-mega__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 10px;
    text-decoration: none;
    color: #374151;
    transition: background .18s;
}
.ak-mega__item:hover { background: #fef2f2; }
.ak-mega__item:hover .ak-mega__item-arrow { opacity: 1; color: #e30613; }
.ak-mega__item:hover .ak-mega__item-label { color: #e30613; }

.ak-mega__item-icon {
    width: 34px; height: 34px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--ic) 12%, white);
    color: var(--ic);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; flex-shrink: 0;
    transition: background .18s;
}
.ak-mega__item:hover .ak-mega__item-icon {
    background: var(--ic);
    color: #fff;
}

.ak-mega__item-label {
    font: 600 13px/1.3 var(--idea-heading-font,"Quicksand",sans-serif);
    flex: 1;
    transition: color .18s;
}
.ak-mega__item-arrow {
    font-size: 10px; color: #d1d5db;
    opacity: 0; transition: opacity .18s, color .18s;
}

/* Alt hızlı erişim */
.ak-mega__footer {
    display: flex;
    gap: 4px;
    padding: 10px 14px 14px;
    border-top: 1px solid #f3f4f6;
    background: #fafafa;
}
.ak-mega__footer-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 20px;
    background: #f3f4f6;
    color: #555;
    font: 600 12px/1 var(--idea-heading-font,"Quicksand",sans-serif);
    text-decoration: none;
    transition: background .18s, color .18s;
}
.ak-mega__footer-btn i { font-size: 11px; }
.ak-mega__footer-btn:hover { background: #e30613; color: #fff; }

/* ==========================================
   ALT MENÜLÜ MENÜLER - EĞİTİMLER TARZI
   ========================================== */
.ak-mega--children {
    right: 0;
    width: 320px;
}

.ak-mega__grid--1col {
    grid-template-columns: 1fr;
}

/* ==========================================
   color-mix fallback (eski tarayıcılar için)
   ========================================== */
@supports not (background: color-mix(in srgb, red 12%, white)) {
    .ak-mega__item-icon { background: #f3f4f6; }
}

/* ==========================================
   MOBİL
   ========================================== */
@media (max-width: 1199px) {
    .main-header__action-btn,
    .main-header__lang,
    .main-header__login-btn,
    .main-header__cta-btn { display: none; }
    .main-header__actions { gap: 0; }
    .ak-mega { display: none !important; }
}

/* ==========================================
   MOBİL NAV - DİL SEÇİCİ
   ========================================== */
.mobile-nav__lang {
    display: flex;
    gap: 8px;
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,.1);
    margin-top: 8px;
}
.mobile-nav__lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1.5px solid rgba(255,255,255,.25);
    color: rgba(255,255,255,.75);
    font: 600 14px/1 var(--idea-heading-font,"Quicksand",sans-serif);
    text-decoration: none;
    transition: all .2s;
    flex: 1;
    justify-content: center;
}
.mobile-nav__lang-btn:hover,
.mobile-nav__lang-btn.active {
    background: #e30613;
    border-color: #e30613;
    color: #fff;
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .ak-mega--edu { width: 500px; left: -20px; }
    .ak-mega__grid { grid-template-columns: 1fr 1fr; }
}
