/* ==========================================================================
   Mega-menu (desktop dropdown navigation) component — consolidated from 72
   scattered rule blocks in style.css (single file, no mobile-fixes.css
   cross-cutting) on 2026-08-14. Original relative source order preserved.
   ========================================================================== */

.mega-menu-col ul li a:hover {
    color: #0a0a0f !important;
    /* Kesinlikle siyah */
    -webkit-text-fill-color: #0a0a0f;
}
.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(16px);
    width: min(94vw, 680px);
    padding: 10px 0 0 0;
    /* Üstte görsel boşluk */
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(12, 12, 18, 0.98), rgba(8, 8, 12, 0.99));
    border: 1px solid rgba(212, 175, 55, 0.28);
    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.24),
        0 30px 70px rgba(0, 0, 0, 0.46),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(36px);
    -webkit-backdrop-filter: blur(36px);
    display: none;
    z-index: 1002;
    grid-template-columns: 1fr 280px;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0.28s;
    overflow: hidden;
    font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.mega-menu--wide {
    width: min(94vw, 880px);
    grid-template-columns: 1fr 280px;
}
.mega-menu--narrow {
    width: min(92vw, 560px);
    grid-template-columns: 1fr 240px;
}
.mega-menu--wide .mega-menu-col {
    max-height: 480px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(212, 175, 55, 0.3) transparent;
}
.mega-menu--wide .mega-menu-col::-webkit-scrollbar {
    width: 4px;
}
.mega-menu--wide .mega-menu-col::-webkit-scrollbar-track {
    background: transparent;
}
.mega-menu--wide .mega-menu-col::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.3);
    border-radius: 4px;
}
.mega-menu-col h4+ul+h4 {
    margin-top: 1rem;
    padding-top: 0.5rem;
}
.mega-menu-categories-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    overflow-y: auto;
    max-height: 380px;
    scrollbar-width: thin;
    scrollbar-color: rgba(212, 175, 55, 0.3) transparent;
}
.mega-menu-categories-list::-webkit-scrollbar {
    width: 3px;
}
.mega-menu-categories-list::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.3);
    border-radius: 3px;
}
.mega-menu-categories-list li a {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 0.75rem 0.55rem 0.6rem;
    border-radius: 10px;
    border: 1px solid transparent;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0));
    text-decoration: none;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.015em;
    transition:
        border-color 0.3s ease,
        background 0.3s ease,
        color 0.3s ease,
        transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.mega-menu-categories-list li a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        rgba(245, 210, 122, 0.16) 0%,
        rgba(245, 210, 122, 0.06) 60%,
        transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
    z-index: -1;
    pointer-events: none;
}
.mega-menu-categories-list li a::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, #fff4c2, #f5d27a, #d4af37);
    border-radius: 0 3px 3px 0;
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}
.mega-menu-categories-list li a:hover {
    border-color: rgba(245, 210, 122, 0.32);
    color: #fff4c2;
    transform: translateX(4px);
}
.mega-menu-categories-list li a:hover::before {
    opacity: 1;
}
.mega-menu-categories-list li a:hover::after {
    height: 65%;
}
.mega-menu-categories-list li a i {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(245, 210, 122, 0.16), rgba(245, 210, 122, 0.04));
    border: 1px solid rgba(245, 210, 122, 0.3);
    border-radius: 50%;
    font-size: 0.7rem;
    color: #f5d27a;
    flex-shrink: 0;
    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease,
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.mega-menu-categories-list li a:hover i {
    background: linear-gradient(135deg, #fff4c2, #f5d27a, #d4af37);
    border-color: rgba(255, 244, 194, 0.7);
    color: #0d0a04;
    transform: scale(1.06);
}
.mega-menu-categories-list li a span {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: inherit;
}
.mega-menu-categories-list li a small {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #f5d27a;
    background: rgba(245, 210, 122, 0.08);
    border: 1px solid rgba(245, 210, 122, 0.25);
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    flex-shrink: 0;
    min-width: 24px;
    text-align: center;
    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease;
}
.mega-menu-categories-list li a:hover small {
    background: linear-gradient(135deg, #fff4c2, #d4af37);
    border-color: rgba(255, 244, 194, 0.85);
    color: #0d0a04;
}
.mega-menu--tech {
    width: min(94vw, 720px);
    grid-template-columns: 1fr 280px;
}
.mega-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg,
            transparent,
            rgba(212, 175, 55, 0.6),
            var(--primary-color),
            rgba(212, 175, 55, 0.6),
            transparent);
    border-radius: 2px;
    z-index: 10;
    pointer-events: none;
    /* Hover'ı engellemesin */
}
    .mega-menu {
        display: none !important;
    }
.mega-menu-col {
    padding: 1.5rem 1.75rem;
}
.mega-menu-col h4 {
    font-family: 'DM Sans', 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 0.85rem;
    padding-bottom: 0.65rem;
    color: var(--primary-color);
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}
.mega-menu-col h4::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 2px;
    transform: rotate(45deg);
    flex-shrink: 0;
}
.mega-menu-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.mega-menu-col ul li {
    position: relative;
}
.mega-menu-col ul li a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.8rem;
    font-family: 'DM Sans', 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: 0.005em;
    color: rgba(255, 255, 255, 0.88) !important;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.mega-menu-col ul li a span {
    position: relative;
    z-index: 10 !important;
    /* Yazı kesinlikle üstte */
    color: inherit;
}
.mega-menu-col ul li a::before {
    content: none; /* disabled — was creating a 2nd stacked hover effect */
}
.mega-menu-col ul li a::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #fff4c2 0%, #f5d27a 50%, #d4af37 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
    border-radius: 8px;
    z-index: 0;
}
.mega-menu-col ul li a:hover {
    color: #0a0a0f !important;
    transform: translateX(4px);
}
.mega-menu-col ul li a:hover span {
    color: #0a0a0f !important;
    -webkit-text-fill-color: #0a0a0f;
    z-index: 10 !important;
}
.mega-menu-col ul li a:hover::after {
    opacity: 1;
}
.mega-menu-col ul li a i {
    position: relative;
    z-index: 10;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, 0.08);
    border-radius: 6px;
    font-size: 0.7rem;
    color: var(--primary-color);
    transition: all 0.25s;
    flex-shrink: 0;
}
.mega-menu-col ul li a:hover i {
    background: var(--primary-color);
    color: #0a0a0f;
    transform: scale(1.05);
}
.mega-menu-highlight {
    padding: 1.5rem;
    background: linear-gradient(145deg,
            rgba(212, 175, 55, 0.1) 0%,
            rgba(212, 175, 55, 0.03) 50%,
            rgba(118, 75, 162, 0.06) 100%);
    border-left: 1px solid rgba(212, 175, 55, 0.28);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
.mega-menu-tech-image {
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mega-menu:has(.mega-menu-tech-image) .mega-menu-highlight {
    display: flex;
    flex-direction: column;
}
.mega-menu:has(.mega-menu-tech-image) .mega-menu-highlight-text {
    display: none;
    /* Teknoloji menüsünde sadece görsel göster */
}
.mega-menu:has(.mega-menu-tech-image) .mega-menu-cta {
    margin-top: 1rem;
}
.mega-menu-tech-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    max-height: 300px;
    display: block;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.mega-menu a[data-tech-image] {
    transition: color 0.2s ease, padding-left 0.2s ease, background 0.2s ease;
}
.mega-menu-highlight::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -30%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.12), transparent 70%);
    pointer-events: none;
}
.mega-menu--wide .mega-menu-highlight {
    padding: 1.75rem;
}
.mega-menu-highlight-title {
    font-family: 'DM Sans', 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #f5d27a;
    margin-bottom: 0.85rem;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.mega-menu-highlight-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.4), transparent);
    margin-left: 0.5rem;
}
.mega-menu-highlight-text {
    font-family: 'DM Sans', 'Inter', sans-serif;
    font-size: 0.85rem;
    line-height: 1.6;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 1.1rem;
    position: relative;
    z-index: 1;
    letter-spacing: 0.005em;
}
.mega-menu-cta {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    padding: 0.55rem 1.1rem !important;
    font-family: 'DM Sans', 'Inter', system-ui, -apple-system, sans-serif !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em !important;     /* normal — no aggressive tracking */
    text-transform: none !important;        /* Title Case, NOT shouting caps */
    line-height: 1.2 !important;
    color: #f5d27a !important;
    background: transparent !important;
    border: 1px solid rgba(245, 210, 122, 0.45) !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    margin-top: auto;
    width: max-content !important;
    max-width: 100% !important;
    min-width: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis;
    cursor: pointer;
    box-shadow: none !important;
    filter: none !important;
    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.2s ease !important;
    position: relative;
    isolation: isolate;
}
.mega-menu-cta::after {
    content: none !important;
    display: none !important;
}
.mega-menu-cta > i {
    font-size: 0.72rem !important;
    color: inherit !important;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    flex-shrink: 0;
}
.mega-menu-cta > span {
    line-height: 1.2 !important;
    color: inherit !important;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mega-menu-cta:hover {
    background: linear-gradient(135deg, #fff4c2 0%, #f5d27a 50%, #d4af37 100%) !important;
    color: #0d0a04 !important;
    border-color: rgba(255, 244, 194, 0.7) !important;
    transform: translateY(-1px) !important;
}
.mega-menu-cta:hover > i {
    transform: translateX(3px) !important;
    color: #0d0a04 !important;
}
.mega-menu-cta:active {
    transform: translateY(0) !important;
    background: linear-gradient(135deg, #f5d27a 0%, #d4af37 100%) !important;
}
.mega-menu-cta:focus-visible {
    outline: 2px solid rgba(245, 210, 122, 0.55) !important;
    outline-offset: 2px !important;
    box-shadow: none !important;
}
.mega-menu-cta span {
    color: inherit;
    font-size: inherit;
}
.mega-menu-cta svg {
    font-size: 0.75rem;
    color: inherit;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.mega-menu-cta:hover svg {
    transform: translateX(2px);
}
    .mega-menu {
        display: none !important;
    }
    .mega-menu {
        width: min(90vw, 600px);
        grid-template-columns: 1fr 240px;
    }
    .mega-menu--wide {
        width: min(92vw, 780px);
        grid-template-columns: 1fr 260px;
    }
    .mega-menu::after {
        right: 240px;
    }
    .mega-menu--wide::after {
        right: 260px;
    }
.mega-menu a:focus-visible {
    outline: 2px solid rgba(212, 175, 55, 0.5);
    outline-offset: 2px;
}
.mega-menu-cta:focus {
    box-shadow: none !important;
    outline: none !important;
}
.mega-menu-cta:focus-visible {
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.35);
}
    .mega-menu {
        display: none !important;
    }
