/*
============
    MENU
============
*/
.menu-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(180deg, var(--color-primary) 0%, #859AD3 40%, var(--color-bg-card) 100%);
    border-bottom: 1px solid var(--color-primary-border);
    padding: 0 20px;
    height: 70px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.menu-bar,
.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 20px;
    display: flex;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text-dark);
    font-weight: 600;
    font-size: 16px;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--color-primary);
}

.menu-logo img {
    height: 50px;
    width: auto;
    display: block;
}

.menu-mobile-right {
    display: none;
}

/*
====================
    PROFILE MENU
====================
*/
.profile-menu {
    position: relative;
    display: flex;
    align-items: center;
}

.profile-menu::after {
    content: '';
    position: absolute;
    top: 100%;
    left: -8px;
    right: -8px;
    height: 12px;
}

.profile-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-primary);
    margin-left: 10px;
    cursor: pointer;
}

.pending-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-blue);
    color: var(--color-text-mid);
    font-size: 11px;
    font-weight: 600;
}

/*
========================
    PROFILE DROPDOWN
========================
*/
.profile-dropdown {
    position: absolute;
    top: calc(100% + 2px);
    right: 0;
    background: var(--color-bg-card);
    border: 1px solid var(--color-primary-border);
    border-radius: 10px;
    min-width: 180px;
    white-space: nowrap;
    list-style: none;
    padding: 6px 0;
    display: none;
    box-shadow: 0 6px 20px var(--color-shadow-md);
    z-index: 1000;
    text-align: center;
}

.profile-menu.open .profile-dropdown {
    display: block;
}

@media (hover: hover) and (pointer: fine) {
    .profile-menu:hover .profile-dropdown {
        display: block;
    }
}

.profile-dropdown li {
    margin: 0;
}

.profile-dropdown li a {
    color: var(--color-text-dark);
    text-decoration: none;
    display: block;
    width: 100%;
    padding: 10px 16px;
    box-sizing: border-box;
    transition: background 0.2s, color 0.2s;
}

.profile-dropdown li + li a {
    margin-top: 6px;
    border-top: 1px solid var(--color-primary-border);
}

.profile-dropdown li a:hover {
    background: var(--color-bg-section);
    color: var(--color-primary);
}

/*
==============
    POINTS
==============
*/
.profile-points {
    display: flex;
    justify-content: center;
    text-align: center;
    justify-content: center;
    align-items: center;
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text-dark);
    cursor: default;
    width: 100%;
    box-sizing: border-box;
}

.profile-points:hover {
    background: var(--color-bg-section);
}

.points-label {
    text-align: left;
}

.points-value {
    color: #FF9800;
    text-align: right;
    padding-left: 12px;
}

/*
===================
    DAILY CLAIM
===================
*/
.daily-claim-menu-item {
    padding: 6px 16px;
    border-top: 1px solid var(--color-primary-border);
    display: flex;
    justify-content: center;
    align-items: center;
}

.daily-claim-button {
    width: 100%;
    padding: 8px 12px;
    background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    text-align: center;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.daily-claim-button:hover {
    opacity: 0.88;
}

.daily-claim-disabled {
    display: block;
    font-size: 13px;
    color: var(--color-text-mid);
    padding: 6px 0;
    text-align: center;
}

.dropdown-divider {
    height: 1px;
    background: var(--color-primary-border);
    margin: 4px 0;
}

/*
========================
    HAMBURGER TOGGLE
========================
*/
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 28px;
    gap: 6px;
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 4px;
    box-sizing: border-box;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-white);
    border-radius: 3px;
    transition: transform .18s ease, opacity .18s ease;
}

.menu-toggle:focus {
    outline: 2px solid var(--color-primary-border-mid);
    outline-offset: 2px;
}

/*
===========================
    NOTIFICATION BADGES
===========================
*/
.likes-link,
.matches-link,
.messages-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.likes-label,
.matches-label,
.messages-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-dark);
}

/*
===================
    MENU BADGES
===================
*/
.likes-heart-new svg {
    fill: #E53935;
    animation: heartbeat 1.2s ease-in-out infinite;
}

.likes-heart-count {
    position: absolute;
    top: -6px;
    right: -8px;
    background: #E53935;
    color: var(--color-white);
    font-size: 10px;
    font-weight: 700;
    border-radius: 50%;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }

    15% {
        transform: scale(1.25);
    }

    30% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.15);
    }

    60% {
        transform: scale(1);
    }
}

.matches-badge-new svg {
    fill: #E53935;
}

.matches-badge-count {
    position: absolute;
    top: -6px;
    right: -8px;
    background: #E53935;
    color: var(--color-white);
    font-size: 10px;
    font-weight: 700;
    border-radius: 50%;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
}

.messages-bubble-new svg {
    fill: var(--color-primary);
}

.messages-bubble-count {
    position: absolute;
    top: -6px;
    right: -8px;
    background: #E53935;
    color: var(--color-white);
    font-size: 10px;
    font-weight: 700;
    border-radius: 50%;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
}

.likes-heart-svg,
.matches-badge-svg,
.messages-bubble-svg {
    display: inline-flex;
    align-items: center;
    position: relative;
    line-height: 1;
}

.likes-heart-svg svg,
.matches-badge-svg svg,
.messages-bubble-svg svg {
    display: block;
    width: 22px;
    height: 22px;
    fill: rgba(255, 255, 255, 0.4);
}

/*
==============================
    BADGE PULSE ANIMATION
==============================
*/
.badge-pulse {
    animation: badgePop 0.4s ease;
}

@keyframes badgePop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.4);
    }

    100% {
        transform: scale(1);
    }
}

/*
================================
    COMING SOON MODAL - TEMP
================================
*/
.coming-soon-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 2000;
}

.coming-soon-modal.open {
    display: block;
}

.coming-soon-backdrop {
    position: absolute;
    inset: 0;
    background: var(--color-overlay);
}

.coming-soon-content {
    position: relative;
    max-width: 420px;
    margin: 10vh auto 0;
    padding: 20px 24px;
    background: var(--color-bg-card);
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 12px 30px var(--color-shadow-md);
}

.coming-soon-close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: none;
    background: transparent;
    font-size: 24px;
    cursor: pointer;
    color: var(--color-text);
}

.coming-soon-logo {
    max-width: 160px;
    height: auto;
    margin-bottom: 12px;
}

.coming-soon-title {
    margin: 0 0 8px;
    font-size: 22px;
    color: var(--color-heading);
}

.coming-soon-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    color: var(--color-text);
}


/*
======================================
    RESPONSIVE CODE (SMALL MOBILE)
======================================
*/
@media (max-width: 480px) {
    .menu-container {
        height: auto;
        padding: 10px 12px;
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .nav-links {
        display: none !important;
        flex-direction: column;
        width: 100%;
        padding: 10px 0;
        border-top: 1px solid var(--color-primary-border);
        background: var(--color-bg-card);
    }

    .nav-links li {
        margin-top: 10px !important;
        margin-bottom: 10px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .nav-links li a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }

    .nav-links a {
        text-align: center;
        width: 100%;
        padding: 10px 0;
        display: block;
    }

    .profile-dropdown li a {
        display: block;
        width: 100%;
        padding: 10px 16px;
        text-align: left;
    }

    .nav-links.show {
        display: flex !important;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .menu-toggle {
        display: flex;
        margin-left: auto;
        margin-top: 8px;
    }

    .profile-dropdown {
        position: static;
        box-shadow: none;
        border: none;
        padding: 0;
        margin-top: 6px;
        background: transparent;
        display: none;
    }

    .profile-menu.open .profile-dropdown {
        display: block;
    }

    .profile-menu:hover .profile-dropdown {
        display: none;
    }

    .likes-link,
    .matches-link,
    .messages-link {
        justify-content: center;
        width: 100%;
    }
}

/*
================================
    RESPONSIVE CODE (MOBILE)
================================
*/
@media (max-width: 768px) {
    .menu-container {
        height: auto;
        padding: 12px 16px;
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .nav-links {
        display: none !important;
        flex-direction: column;
        width: 100%;
        padding: 10px 0;
        border-top: 1px solid var(--color-primary-border);
        background: var(--color-bg-card);
    }

    .nav-links li {
        margin-top: 10px !important;
        margin-bottom: 10px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .nav-links li a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }

    .nav-links a {
        text-align: center;
        width: 100%;
        padding: 10px 0;
        display: block;
    }

    .nav-links.show {
        display: flex !important;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .menu-toggle {
        display: flex;
        margin-left: auto;
        margin-top: 10px;
    }

    .profile-dropdown {
        position: static;
        box-shadow: none;
        border: none;
        padding: 0;
        margin-top: 6px;
        background: transparent;
        display: none;
    }

    .profile-menu.open .profile-dropdown {
        display: block;
    }

    .profile-menu:hover .profile-dropdown {
        display: none;
    }

    .menu-mobile-right {
        display: flex;
    }

    .profile-menu-desktop {
        display: none !important;
    }

    .profile-menu-mobile {
        display: flex;
        position: relative;
    }

    .profile-menu-mobile .profile-dropdown {
        position: absolute;
        top: calc(100% + 8px);
        left: auto;
        right: 0;
        min-width: 200px;
        z-index: 2000;
        display: none;
        background: var(--color-bg-card);
        border: 1px solid var(--color-primary-border);
        border-radius: 10px;
        box-shadow: 0 6px 20px var(--color-shadow-md);
        padding: 6px 0;
    }

    .profile-menu-mobile.open .profile-dropdown {
        display: block;
    }

    .profile-menu-mobile .profile-dropdown li a {
        text-align: center;
    }

    .likes-link,
    .matches-link,
    .messages-link {
        justify-content: center;
        width: 100%;
    }
}

/*
================================
    RESPONSIVE CODE (TABLET)
================================
*/
@media (min-width: 769px) and (max-width: 1024px) {
    .menu-container {
        padding: 10px 20px;
        flex-wrap: wrap;
        height: auto;
    }

    .nav-links {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-end;
        width: 100%;
        padding: 0;
        border-top: none;
        background: transparent;
    }

    .nav-links li {
        margin: 6px 12px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links.show {
        flex-direction: column;
        width: 100%;
        padding: 10px 0;
        border-top: 1px solid var(--color-primary-border);
        background: var(--color-bg-card);
    }

    .profile-dropdown {
        position: absolute;
        right: 0;
        top: calc(100% + 4px);
        min-width: 160px;
        box-shadow: 0 4px 12px var(--color-shadow-md);
        border-radius: 8px;
        padding: 6px 0;
        background: var(--color-bg-card);
        display: none;
    }

    .profile-menu.open .profile-dropdown {
        display: block;
    }

    .profile-dropdown li a {
        padding: 8px 16px;
        text-align: left;
    }
}