/* PUYaari Homepage Header, Mobile Drawer & Footer Shared Stylesheet */

:root {
    --primary: #ec4899;
    --primary-dark: #db2777;
    --primary-gradient: linear-gradient(135deg, #f43f5e 0%, #ec4899 50%, #d946ef 100%);
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ================= NAVIGATION BAR (Black Glassmorphism Capsule) ================= */
.navbar-wrapper {
    position: fixed;
    top: 1.25rem;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 1.5rem;
}

.navbar {
    max-width: 1260px;
    margin: 0 auto;
    background: rgba(10, 6, 22, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 0.5rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
    width: 100%;
}

.brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-logo img {
    height: 34px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.25rem 0.45rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    white-space: nowrap;
    flex-wrap: nowrap;
}

.nav-item {
    font-size: 0.83rem;
    font-weight: 600;
    color: #cbd5e1;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.nav-item:hover, .nav-item.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-nav-login {
    padding: 0.42rem 1.15rem;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-decoration: none;
}

.btn-nav-login:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-nav-signup {
    padding: 0.42rem 1.3rem;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 999px;
    color: #ffffff;
    background: var(--primary-gradient);
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
    transition: all 0.2s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-decoration: none;
}

.btn-nav-signup:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.6);
}

/* ================= MOBILE SLIDE-IN NAVIGATION DRAWER ================= */
.navbar-brand-cluster {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.mobile-nav-toggle-btn {
    display: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 1.05rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    padding: 0;
    outline: none;
}

.mobile-nav-toggle-btn:hover, .mobile-nav-toggle-btn:active {
    background: rgba(255, 255, 255, 0.18);
    color: #ec4899;
}

.mobile-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 6, 22, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 99998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}

.mobile-drawer-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 310px;
    max-width: 86vw;
    background: #0f172a;
    color: #ffffff;
    z-index: 99999;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -12px 0 35px rgba(0, 0, 0, 0.6);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
}

.mobile-nav-drawer.open {
    transform: translateX(0);
}

.drawer-header {
    padding: 1.15rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.95);
    flex-shrink: 0;
}

.drawer-brand {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.drawer-badge {
    background: rgba(236, 72, 153, 0.2);
    color: #ec4899;
    border: 1px solid rgba(236, 72, 153, 0.4);
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 999px;
    letter-spacing: 0.04em;
}

.drawer-close-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}

.drawer-close-btn:hover {
    background: rgba(236, 72, 153, 0.2);
    color: #ffffff;
    border-color: #ec4899;
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 1rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.drawer-user-card {
    background: linear-gradient(135deg, rgba(236,72,153,0.12), rgba(168,85,247,0.12));
    border: 1px solid rgba(236, 72, 153, 0.25);
    border-radius: 14px;
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.drawer-user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ec4899, #f43f5e);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    flex-shrink: 0;
}

.drawer-user-info {
    flex: 1;
    min-width: 0;
}

.drawer-user-name {
    font-size: 0.9rem;
    font-weight: 800;
    color: #ffffff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.drawer-user-role {
    font-size: 0.72rem;
    color: #38bdf8;
    margin-top: 2px;
}

.drawer-badge-verified {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #4ade80;
    font-weight: 700;
}

.drawer-quick-pills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.drawer-quick-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    padding: 0.45rem 0.65rem;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    transition: all 0.15s;
}

.drawer-quick-pill:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.drawer-guest-banner {
    background: linear-gradient(135deg, rgba(236,72,153,0.1), rgba(168,85,247,0.1));
    border: 1px solid rgba(236, 72, 153, 0.22);
    border-radius: 14px;
    padding: 0.9rem 1rem;
    margin-bottom: 0.75rem;
}

.btn-drawer-login {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-drawer-signup {
    flex: 1.2;
    background: linear-gradient(135deg, #ec4899, #f43f5e);
    color: #ffffff;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.drawer-section-title {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    padding: 0.75rem 0.5rem 0.35rem 0.5rem;
}

.drawer-links-group {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.drawer-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: 12px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 600;
    transition: all 0.15s ease;
}

.drawer-nav-item:hover, .drawer-nav-item:active {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.drawer-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.drawer-item-label {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.drawer-item-badge {
    font-size: 0.62rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 999px;
    color: #ffffff;
    letter-spacing: 0.02em;
}
.badge-pink {
    background: #ec4899;
}
.badge-rose {
    background: #f43f5e;
}

.drawer-logout-btn {
    width: 100%;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #ef4444;
    padding: 0.65rem 1rem;
    border-radius: 12px;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    transition: all 0.2s;
}
.drawer-logout-btn:hover {
    background: rgba(239, 68, 68, 0.2);
}

.drawer-footer {
    padding: 0.85rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.95);
    flex-shrink: 0;
}

/* ================= FOOTER ================= */
.footer {
    background-color: #06030e;
    padding: 4.5rem 0 2.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: #94a3b8;
    position: relative;
    font-family: var(--font-sans);
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 3.5rem;
}

.footer-brand p {
    font-size: 0.88rem;
    color: #64748b;
    margin: 0;
}

.footer-links-col h4, .footer-social-col h4 {
    font-size: 0.92rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
}

.footer-link {
    font-size: 0.88rem;
    color: #94a3b8;
    transition: color 0.2s;
    text-decoration: none;
}

.footer-link:hover {
    color: #ffffff;
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-size: 0.95rem;
    transition: all 0.2s;
    text-decoration: none;
}

.social-btn:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.social-btn.wa-social-btn:hover {
    background: #25D366;
    border-color: #25D366;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.footer-wa-channel-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
    background: rgba(37, 211, 102, 0.16);
    border: 1px solid rgba(37, 211, 102, 0.35);
    padding: 0.45rem 1rem;
    border-radius: 999px;
    transition: all 0.25s ease;
    text-decoration: none;
}

.footer-wa-channel-pill:hover {
    background: #25D366;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    border-color: #25D366;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
    color: #64748b;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.footer-copyright {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
}

.footer-bottom-links a {
    color: #94a3b8;
    font-size: 0.84rem;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Responsive queries */
@media (max-width: 1024px) {
    .nav-item-secondary {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .navbar-wrapper {
        top: 0.4rem !important;
        padding: 0 0.5rem !important;
    }
    .navbar {
        padding: 0.35rem 0.65rem !important;
        border-radius: 999px !important;
    }
    .navbar-brand-cluster {
        display: flex !important;
        align-items: center !important;
        gap: 0.45rem !important;
    }
    .mobile-nav-toggle-btn {
        display: inline-flex !important;
        margin-left: 0.2rem;
    }
    .brand-logo img {
        height: 28px !important;
    }
    .nav-menu {
        display: none !important;
    }
    .nav-actions {
        display: flex !important;
        align-items: center !important;
        gap: 0.35rem !important;
    }
    .btn-nav-login {
        padding: 0.32rem 0.75rem !important;
        font-size: 0.78rem !important;
    }
    .btn-nav-signup {
        padding: 0.32rem 0.9rem !important;
        font-size: 0.78rem !important;
        white-space: nowrap !important;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
        padding-top: 1.5rem;
    }
    .footer-bottom-links {
        display: flex;
        flex-wrap: wrap;
        gap: 0.65rem 1.25rem;
        width: 100%;
    }
    .footer-bottom-links a {
        font-size: 0.82rem;
        white-space: nowrap;
    }
}

@media (max-width: 360px) {
    .navbar-wrapper {
        padding: 0 0.3rem !important;
    }
    .navbar {
        padding: 0.3rem 0.45rem !important;
    }
    .mobile-nav-toggle-btn {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.92rem !important;
        margin-left: 0.1rem;
    }
    .brand-logo img {
        height: 24px !important;
    }
    .nav-actions {
        gap: 0.22rem !important;
    }
    .btn-nav-login {
        padding: 0.26rem 0.55rem !important;
        font-size: 0.72rem !important;
    }
    .btn-nav-signup {
        padding: 0.26rem 0.65rem !important;
        font-size: 0.72rem !important;
    }
}
