/* ══════════════════════════════════════════
   PostMagic — Shared Navigation
   Edit this file once, all pages update.
   ══════════════════════════════════════════ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: none;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    color: #0C0B31;
}

.nav-logo-icon {
    display: none !important;
}

.nav-logo-wordmark, .nav-logo-full {
    height: 34px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 15px;
    font-weight: 450;
    color: #5A5880;
    text-decoration: none;
    transition: color 0.2s;
    letter-spacing: -0.1px;
}

.nav-link:hover { color: #0C0B31; }

.nav-btn {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: #7B2D8E;
    border: none;
    padding: 9px 22px;
    border-radius: 100px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.12s;
    letter-spacing: -0.1px;
}

.nav-btn:hover { background: #6A2579; }
.nav-btn:active { background: #591D65; transform: scale(0.97); }

/* ── Dropdowns ── */

.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 15px;
    font-weight: 450;
    color: #5A5880;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
    letter-spacing: -0.1px;
}

.nav-dropdown-trigger:hover { color: #0C0B31; }

.nav-dropdown-trigger svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    transition: transform 0.2s;
}

.nav-dropdown:hover .nav-dropdown-trigger svg {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid rgba(212, 211, 232, 0.5);
    border-radius: 16px;
    padding: 12px;
    min-width: 280px;
    box-shadow: 0 12px 40px rgba(12, 11, 49, 0.1), 0 2px 8px rgba(12, 11, 49, 0.04);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(6px);
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    z-index: 200;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu--wide {
    min-width: 520px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.dropdown-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #8886A5;
    padding: 8px 12px 6px;
    grid-column: 1 / -1;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.15s;
}

.dropdown-item:hover {
    background: #F7F7FF;
}

.dropdown-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #F7F7FF;
}

.dropdown-item-icon svg {
    width: 18px;
    height: 18px;
}

.dropdown-item-text {
    display: flex;
    flex-direction: column;
}

.dropdown-item-name {
    font-size: 14px;
    font-weight: 550;
    color: #0C0B31;
    letter-spacing: -0.1px;
}

.dropdown-item-desc {
    font-size: 12px;
    color: #8886A5;
    margin-top: 1px;
}

/* ── Hamburger button ── */

.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #0C0B31;
}

.nav-hamburger svg { width: 22px; height: 22px; }

/* ── Mobile menu overlay ── */

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 380px;
    height: 100vh;
    background: #fff;
    z-index: 300;
    overflow-y: auto;
    box-shadow: -8px 0 30px rgba(12, 11, 49, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    visibility: hidden;
    pointer-events: none;
}

.mobile-menu.open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #EBEBFF;
}

.mobile-menu-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #0C0B31;
}

.mobile-menu-close svg { width: 22px; height: 22px; }

.mobile-menu-links {
    padding: 16px 20px 32px;
    display: flex;
    flex-direction: column;
}

.mobile-menu-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #8886A5;
    padding: 16px 0 6px;
}

.mobile-menu-label:first-child {
    padding-top: 0;
}

.mobile-menu-item {
    font-size: 15px;
    font-weight: 450;
    color: #0C0B31;
    text-decoration: none;
    padding: 10px 0;
    border-bottom: 1px solid rgba(235, 235, 255, 0.5);
    transition: color 0.15s;
}

.mobile-menu-item:hover {
    color: #7B2D8E;
}

.mobile-menu-cta {
    display: block;
    text-align: center;
    margin-top: 16px;
    padding: 14px 24px;
    background: #7B2D8E;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border-radius: 100px;
    text-decoration: none;
    transition: background 0.2s;
}

.mobile-menu-cta:hover { background: #6A2579; }

/* Accordion */
.mm-accordion {
    border-bottom: 1px solid rgba(235, 235, 255, 0.5);
}

.mm-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 0;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 16px;
    font-weight: 550;
    color: #0C0B31;
    cursor: pointer;
    letter-spacing: -0.1px;
}

.mm-toggle svg {
    transition: transform 0.2s;
    color: #8886A5;
}

.mm-toggle.active svg {
    transform: rotate(180deg);
}

.mm-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mm-panel .mobile-menu-item {
    padding: 8px 0 8px 12px;
    font-size: 14px;
    border-bottom: none;
}

.mm-panel .mobile-menu-item:last-child {
    padding-bottom: 14px;
}

/* ── Responsive ── */

@media (max-width: 1100px) {
    .nav-links { gap: 20px; }
    .nav-link { font-size: 13px; }
    .nav-dropdown-trigger { font-size: 13px; }
    .nav-btn { font-size: 13px; padding: 9px 18px !important; }
    .nav-logo-wordmark { height: 28px !important; }
}

@media (max-width: 960px) {
    .nav { padding: 0 20px; }
    .nav-links { display: none !important; }
    .nav-hamburger { display: flex; }
}

@media (max-width: 480px) {
    .nav { padding: 0 16px; height: 52px; }
    .nav-logo-wordmark { height: 24px !important; }
    .mobile-menu { max-width: 100%; }

}
