﻿/* Hesapnova premium menu + footer */

.hn-header {
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e5e7eb;
    z-index: 1030;
}

.hn-navbar {
    min-height: 82px;
}

.hn-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    font-size: 28px;
    color: #0d6efd !important;
    text-decoration: none;
}

.hn-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.hn-nav .nav-link {
    color: #0f172a;
    font-weight: 800;
    font-size: 17px;
    padding: 12px 14px;
}

    .hn-nav .nav-link:hover,
    .hn-nav .nav-link:focus {
        color: #0d6efd;
    }

.hn-nav-cta {
    border-radius: 14px;
    padding: 12px 22px;
    font-weight: 850;
    box-shadow: 0 12px 25px rgba(13,110,253,.22);
}

.hn-mega-dropdown {
    position: static;
}

.hn-mega-menu {
    width: 1080px;
    max-width: calc(100vw - 90px);
    left: 50% !important;
    transform: translateX(-50%);
    margin-top: 12px;
    padding: 0;
    border: 0;
    border-radius: 26px;
    overflow: hidden;
    background: transparent;
    box-shadow: 0 30px 85px rgba(15, 23, 42, .18);
}

.hn-mega-shell {
    display: grid;
    grid-template-columns: 190px 1fr;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 26px;
    overflow: hidden;
    max-height: 540px;
}

.hn-mega-sidebar {
    background: linear-gradient(180deg, #0d6efd 0%, #0759da 100%);
    padding: 16px 12px;
}

    .hn-mega-sidebar a {
        display: flex;
        align-items: center;
        gap: 9px;
        color: #ffffff !important;
        text-decoration: none;
        padding: 10px 12px;
        font-weight: 850;
        font-size: 14.5px;
        border-radius: 14px;
        opacity: .94;
    }

        .hn-mega-sidebar a:hover {
            background: rgba(255,255,255,.18);
            opacity: 1;
        }

.hn-mega-content {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding: 22px;
    max-height: 540px;
    overflow-y: auto;
    background: #f8fafc;
}

    .hn-mega-content::-webkit-scrollbar {
        width: 8px;
    }

    .hn-mega-content::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 999px;
    }

.hn-mega-col {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 10px 25px rgba(15,23,42,.04);
}

    .hn-mega-col h6 {
        color: #0f172a;
        font-weight: 950;
        font-size: 16px;
        margin: 0 0 10px;
    }

    .hn-mega-col a {
        display: block;
        color: #0d6efd;
        text-decoration: none;
        padding: 5px 0;
        font-weight: 750;
        font-size: 14.5px;
        line-height: 1.25;
    }

        .hn-mega-col a:hover {
            color: #084298;
            text-decoration: underline;
        }

.hn-breadcrumb {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    padding: 10px 14px;
    border-radius: 12px;
}

/* Footer */

.hn-footer {
    background: radial-gradient(circle at top left, rgba(13,110,253,.08), transparent 32%), linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
    border-top: 1px solid #dbe4ef;
}

.hn-footer-top {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 1.4fr;
    gap: 30px;
    align-items: center;
    padding-bottom: 30px;
    border-bottom: 1px solid #dbe4ef;
    margin-bottom: 30px;
}

.hn-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
    font-weight: 950;
    color: #0d6efd;
    text-decoration: none;
    margin-bottom: 12px;
}

    .hn-footer-brand img {
        height: 42px;
        width: auto;
    }

.hn-footer-top p {
    color: #64748b;
    font-size: 16px;
    max-width: 540px;
    margin: 0;
    line-height: 1.7;
}

.hn-footer-popular {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

    .hn-footer-popular a {
        background: #fff;
        border: 1px solid #dbe4ef;
        box-shadow: 0 8px 20px rgba(15,23,42,.05);
        color: #0d6efd;
        text-decoration: none;
        font-weight: 850;
        border-radius: 999px;
        padding: 10px 16px;
    }

        .hn-footer-popular a:hover {
            background: #0d6efd;
            color: #fff;
        }

.hn-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.hn-footer-col {
    background: rgba(255,255,255,.75);
    border: 1px solid rgba(219,228,239,.95);
    border-radius: 18px;
    padding: 20px;
}

    .hn-footer-col h5 {
        color: #0f172a;
        font-size: 17px;
        font-weight: 950;
        margin: 0 0 12px;
    }

    .hn-footer-col a {
        display: block;
        color: #0d6efd;
        text-decoration: none;
        font-weight: 750;
        padding: 5px 0;
    }

        .hn-footer-col a:hover {
            color: #084298;
            text-decoration: underline;
        }

.hn-footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid #dbe4ef;
    margin-top: 30px;
    padding-top: 22px;
    color: #64748b;
    font-size: 14px;
}

    .hn-footer-bottom p {
        margin: 0;
    }

@media (min-width: 992px) {
    .hn-mega-dropdown:hover .hn-mega-menu {
        display: block;
    }
}

@media (max-width: 1199px) {
    .hn-mega-menu {
        width: 980px;
        max-width: calc(100vw - 50px);
    }

    .hn-mega-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .hn-navbar {
        min-height: 72px;
    }

    .hn-brand {
        font-size: 24px;
    }

    .hn-logo-img {
        height: 36px;
    }

    .hn-mega-menu {
        width: 100%;
        max-width: 100%;
        transform: none;
        left: 0 !important;
        margin-top: 8px;
        border-radius: 16px;
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }

    .hn-mega-shell {
        grid-template-columns: 1fr;
        max-height: none;
    }

    .hn-mega-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        padding: 10px;
        gap: 6px;
    }

        .hn-mega-sidebar a {
            border-radius: 10px;
            padding: 10px;
            font-size: 14px;
        }

    .hn-mega-content {
        grid-template-columns: 1fr;
        max-height: none;
        padding: 16px;
    }

    .hn-footer-top {
        grid-template-columns: 1fr;
    }

    .hn-footer-popular {
        justify-content: flex-start;
    }

    .hn-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hn-footer-bottom {
        flex-direction: column;
    }
}

@media (max-width: 575px) {
    .hn-footer-grid {
        grid-template-columns: 1fr;
    }

    .hn-mega-sidebar {
        grid-template-columns: 1fr;
    }
}
