/* =============================================
   MEGA MENU / DROPDOWN
   ============================================= */

body.mega-menu-open {
    overflow: hidden;
}

.header-main {
    position: relative;
    z-index: 100;
}

.header-main__trigger {
    width: 100%;
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}

.header-main__item--dropdown.is-open .header-main__chevron,
.header-main__trigger[aria-expanded="true"] .header-main__chevron {
    transform: rotate(180deg);
}

.header-main__chevron {
    transition: transform var(--transition);
}

/* Mobil accordion */
.header-accordion--mobile {
    display: none;
}

.header-accordion__panel {
    padding: 0.75rem 0 1rem;
}

.header-main__item--dropdown.is-open .header-accordion--mobile {
    display: block;
}

/* Desktop mega panel — tam ekran modal */
.header-mega {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.header-mega.is-open {
    display: block;
    pointer-events: auto;
    visibility: visible;
    opacity: 1;
}

.header-mega__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 10, 28, 0.62);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.header-mega__dialog {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100%;
    padding: 6.75rem var(--container-padding) 2rem;
    pointer-events: none;
}

.header-mega__shell {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    pointer-events: auto;
    transform: translateY(16px) scale(0.98);
    transition: transform 0.28s ease;
}

.header-mega.is-open .header-mega__shell {
    transform: translateY(0) scale(1);
}

.header-mega__frame {
    position: relative;
    width: 100%;
}

.header-mega__box {
    position: relative;
    width: 100%;
    max-height: calc(100vh - 8.5rem);
    overflow: auto;
    padding: 1.35rem 1.35rem 1.5rem;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22);
}

.header-mega__close {
    position: absolute;
    top: 50%;
    left: 100%;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 4.75rem;
    padding: 0;
    border: none;
    border-radius: 0 1.5rem 1.5rem 0;
    background: #0038a8;
    color: #ffffff;
    box-shadow: none;
    transform: translateY(-50%);
    transition: background 0.2s ease;
}

.header-mega__close:hover {
    background: #002f8f;
}

.header-mega__close-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.header-mega__close-icon svg {
    display: block;
    width: 2rem;
    height: 2rem;
}

.header-mega__box:has(.mega-panel) {
    padding: 0;
    overflow: hidden;
}

@media (max-width: 991px) {
    .header-mega {
        display: none !important;
    }
}

/* ---- Mega panel ortak ---- */
.mega-panel {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.mega-panel__body {
    width: 100%;
}

.mega-panel--tools .mega-panel__body,
.mega-panel--corporate .mega-panel__body {
    padding: 1.25rem 1.25rem 1.35rem;
}

.mega-panel__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.35rem;
    background: #0038a8;
}

.mega-panel__footer-text {
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.35;
    color: #ffffff;
}

.mega-panel__footer-text strong {
    font-weight: 700;
    color: #7eb4ff;
}

.mega-panel__footer-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    flex-shrink: 0;
    padding: 0.65rem 1.15rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #5b7cff 0%, #4666e5 55%, #3b49cf 100%);
    color: #ffffff;
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(59, 73, 207, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mega-panel__footer-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(59, 73, 207, 0.42);
}

/* ---- Sosyal Medya Hizmetleri ---- */
.mega-services__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    padding: 1.25rem 1.25rem 1.35rem;
}

.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 7.75rem;
    padding: 1rem 0.65rem 0.95rem;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #edf1f7;
    text-align: center;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
    background: color-mix(in srgb, var(--brand-color) 7%, #ffffff);
    border-color: color-mix(in srgb, var(--brand-color) 18%, #edf1f7);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.service-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 10px;
    background: color-mix(in srgb, var(--brand-color) 12%, #ffffff);
    color: var(--brand-color);
    font-size: 1.35rem;
    line-height: 1;
}

.service-card__icon i {
    font-size: 1.35rem;
    line-height: 1;
}

.service-card--snapchat .service-card__icon {
    color: #d4a000;
}

.service-card--kick .service-card__icon {
    color: #3db812;
}

.service-card--tiktok .service-card__icon,
.service-card--twitter .service-card__icon,
.service-card--threads .service-card__icon {
    color: #111111;
}

.service-card__name {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.service-card__label {
    font-size: 0.6875rem;
    font-weight: 500;
    color: #94a3b8;
}

/* ---- Ücretsiz Araçlar ---- */
.mega-tools {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    width: 100%;
}

.tool-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 0.95rem;
    border-radius: 16px;
    background: var(--brand-bg, #f8fafc);
    border: 1px solid color-mix(in srgb, var(--brand-color) 10%, #ffffff);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.tool-col__head {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.8rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid color-mix(in srgb, var(--brand-color) 12%, #e8edf4);
}

.tool-col__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--brand-color) 16%, transparent);
    color: var(--brand-color);
    font-size: 1.05rem;
    line-height: 1;
}

.tool-col__icon i {
    font-size: 1.05rem;
    line-height: 1;
}

.tool-col__meta {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.tool-col__title {
    font-size: 0.9375rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.tool-col__count {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #64748b;
}

.tool-col__list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tool-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
    min-height: 44px;
    padding: 0.55rem 0.65rem;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #edf1f7;
    transition: border-color var(--transition), box-shadow var(--transition), transform 0.2s ease;
}

.tool-item:hover {
    border-color: color-mix(in srgb, var(--brand-color) 22%, #dbe4f0);
    box-shadow: 0 6px 16px color-mix(in srgb, var(--brand-color) 10%, rgba(15, 23, 42, 0.06));
    transform: translateY(-1px);
}

.tool-item__main {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    flex: 1;
}

.tool-item__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--brand-color) 10%, #ffffff);
    color: var(--brand-color);
    font-size: 0.75rem;
    line-height: 1;
}

.tool-item__icon i {
    font-size: 0.75rem;
    line-height: 1;
}

.tool-item__text {
    flex: 1;
    min-width: 0;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--brand-color);
    line-height: 1.25;
}

.tool-item__badge {
    flex-shrink: 0;
    padding: 0.22rem 0.5rem;
    border-radius: 6px;
    background: linear-gradient(135deg, #a3e635 0%, #84cc16 100%);
    color: #ffffff;
    font-size: 0.5625rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(132, 204, 22, 0.28);
}

/* ---- Kurumsal ---- */
.mega-corporate {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
    width: 100%;
}

.corp-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #edf1f7;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.corp-card:hover {
    transform: translateY(-2px);
    border-color: #c7d8f5;
    box-shadow: 0 8px 24px rgba(43, 89, 195, 0.1);
    background: #f4f8ff;
}

.corp-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: linear-gradient(135deg, #3b6fd4, #2b59c3);
    color: #fff;
    box-shadow: 0 4px 12px rgba(43, 89, 195, 0.25);
}

.corp-card__label {
    font-size: 0.875rem;
    font-weight: 700;
    color: #1e3a8a;
}

/* Mobil menü içi */
.header-accordion--mobile .mega-services__grid,
.header-accordion--mobile .mega-tools,
.header-accordion--mobile .mega-corporate {
    max-height: 50vh;
    overflow-y: auto;
}

.header-accordion--mobile .mega-panel__footer {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
}

.header-accordion--mobile .mega-panel__footer-btn {
    width: 100%;
}

.header-accordion--mobile .service-card__name {
    color: #0f172a;
}

/* ---- Responsive ---- */
@media (min-width: 480px) {
    .mega-services__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .mega-corporate {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .header-mega__box {
        padding: 1.5rem 1.5rem 1.75rem;
    }

    .header-mega__box:has(.mega-panel) {
        padding: 0;
    }

    .mega-services__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.8rem;
        padding: 1.35rem 1.35rem 1.5rem;
    }

    .mega-panel__footer {
        padding: 1.05rem 1.5rem;
    }

    .mega-tools {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mega-corporate {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.65rem;
    }
}

@media (min-width: 992px) {
    .header-main__trigger {
        pointer-events: auto;
        width: auto;
    }

    .header-accordion--mobile {
        display: none !important;
    }

    .header-main__item--dropdown.is-open .header-main__trigger {
        background: rgba(255, 255, 255, 0.12);
    }

    .mega-services__grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 0.85rem;
    }

    .mega-services__grid .service-card:nth-child(6n+1) {
        background: #fff5f8;
        border-color: #fce7ef;
    }

    .mega-services__grid .service-card:nth-child(6n+2) {
        background: #f4f8ff;
        border-color: #e3edff;
    }

    .mega-services__grid .service-card:nth-child(6n+3) {
        background: #f8f5ff;
        border-color: #ede5ff;
    }

    .mega-services__grid .service-card:nth-child(6n+4) {
        background: #f4fcf7;
        border-color: #dff5e8;
    }

    .mega-services__grid .service-card:nth-child(6n+5) {
        background: #fafafa;
        border-color: #ececec;
    }

    .mega-services__grid .service-card:nth-child(6n+6) {
        background: #fff5f5;
        border-color: #ffe3e3;
    }

    .mega-tools {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 0.85rem;
    }

    .mega-corporate {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .header-mega__dialog {
        padding-top: 7.25rem;
    }

    .mega-services__grid {
        gap: 0.9rem;
        padding: 1.5rem 1.5rem 1.65rem;
    }

    .mega-panel__footer {
        padding: 1.1rem 1.75rem;
    }

    .service-card {
        min-height: 8.25rem;
        border-radius: 16px;
    }
}
