/*
 * pp-navbar.css — Shared PlayPool frontend navbar + footer + drawer
 * Used by index.php, seasonal.php, profile.php, and any future frontend page.
 */

:root {
    --pp-dark: #0e1f1c;
    --pp-dark-2: #1b2e2a;
    --pp-felt: #14704a;
    --pp-felt-light: #1f9061;
    --pp-gold: #e0b659;
    --pp-gold-light: #f1c97a;
    --pp-cream: #f5efe1;
    --pp-red: #b71c1c;
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar { display: none; }
html, body { overflow-x: hidden; max-width: 100%; width: 100%; }
body {
    font-family: 'Poppins', system-ui, sans-serif;
    color: #2b2b2b;
    background: #fff;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { text-decoration: none; }
h1, h2, h3, h4 { font-weight: 700; }

/* ============ NAVBAR ============ */
.pp-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1050;
    background: rgba(14, 31, 28, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: background .3s, box-shadow .3s, transform .3s;
}
.pp-nav.scrolled {
    background: rgba(14, 31, 28, 0.98);
    box-shadow: 0 2px 30px rgba(0,0,0,0.25);
}
.pp-nav.nav-hidden { transform: translateY(-100%); }

.pp-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 12px 20px;
    gap: 16px;
}

/* Brand */
.pp-nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--pp-cream);
    font-size: 1.3rem;
    text-decoration: none;
    flex-shrink: 0;
}
.pp-nav-brand img {
    height: 36px; width: 36px;
    border-radius: 8px;
    object-fit: cover;
}
.pp-nav-brand-text b { color: var(--pp-gold); }

/* Desktop links */
.pp-nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}
.pp-nav-link {
    color: rgba(245,239,225,0.75);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 14px;
    border-radius: 24px;
    transition: all .25s ease;
    white-space: nowrap;
}
.pp-nav-link:hover,
.pp-nav-link.active {
    color: var(--pp-gold);
    background: rgba(224,182,89,0.08);
}

/* Auth buttons (desktop) */
.pp-nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin-left: 12px;
}
.pp-btn-outline-sm {
    color: var(--pp-cream);
    border: 1.5px solid rgba(245,239,225,0.3);
    padding: 7px 18px;
    border-radius: 24px;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all .25s ease;
    white-space: nowrap;
}
.pp-btn-outline-sm:hover {
    background: var(--pp-cream);
    color: var(--pp-dark);
    border-color: var(--pp-cream);
}
.pp-btn-gold-sm {
    background: var(--pp-gold);
    color: var(--pp-dark);
    padding: 7px 18px;
    border-radius: 24px;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all .25s ease;
    white-space: nowrap;
}
.pp-btn-gold-sm:hover {
    background: var(--pp-gold-light);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(224,182,89,0.3);
}

/* Accent bar */
.pp-nav-accent {
    height: 3px;
    background: linear-gradient(90deg, var(--pp-felt), var(--pp-gold), var(--pp-felt));
    background-size: 200% 100%;
    animation: accentShift 6s ease infinite;
}
@keyframes accentShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Hamburger */
.pp-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px; height: 40px;
    background: none;
    border: 1.5px solid rgba(224,182,89,0.3);
    border-radius: 10px;
    cursor: pointer;
    padding: 8px;
    flex-shrink: 0;
    transition: border-color .2s;
}
.pp-hamburger:hover { border-color: var(--pp-gold); }
.pp-hamburger span {
    display: block;
    width: 100%; height: 2px;
    background: var(--pp-gold);
    border-radius: 2px;
    transition: all .3s ease;
}
.pp-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.pp-hamburger.open span:nth-child(2) { opacity: 0; }
.pp-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ MOBILE DRAWER (slides from LEFT) ============ */
.pp-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 1060;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease, visibility .35s;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.pp-drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

.pp-drawer {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 300px;
    max-width: 85vw;
    background: var(--pp-dark);
    z-index: 1070;
    transform: translateX(-100%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: 4px 0 30px rgba(0,0,0,0.4);
}
.pp-drawer.open {
    transform: translateX(0);
}

.pp-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.pp-drawer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--pp-cream);
    font-size: 1.15rem;
}
.pp-drawer-brand img {
    height: 34px; width: 34px;
    border-radius: 8px;
    object-fit: cover;
}
.pp-drawer-brand span b { color: var(--pp-gold); }
.pp-drawer-close {
    background: rgba(255,255,255,0.06);
    border: none;
    color: var(--pp-cream);
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background .2s;
}
.pp-drawer-close:hover { background: rgba(255,255,255,0.12); }

.pp-drawer-nav {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}
.pp-drawer-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: rgba(245,239,225,0.75);
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all .2s ease;
}
.pp-drawer-link i {
    width: 20px;
    text-align: center;
    font-size: 0.95rem;
}
.pp-drawer-link:hover,
.pp-drawer-link.active {
    color: var(--pp-gold);
    background: rgba(224,182,89,0.08);
}
.pp-drawer-link.active {
    font-weight: 600;
}

.pp-drawer-divider {
    height: 1px;
    background: rgba(255,255,255,0.06);
    margin: 8px 16px;
}

.pp-drawer-actions {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.pp-drawer-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all .25s ease;
}
.pp-drawer-btn.outline {
    color: var(--pp-cream);
    border: 1.5px solid rgba(245,239,225,0.25);
}
.pp-drawer-btn.outline:hover {
    background: rgba(245,239,225,0.08);
    border-color: rgba(245,239,225,0.4);
}
.pp-drawer-btn.gold {
    background: var(--pp-gold);
    color: var(--pp-dark);
}
.pp-drawer-btn.gold:hover {
    background: var(--pp-gold-light);
    box-shadow: 0 6px 16px rgba(224,182,89,0.3);
}

.pp-drawer-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: auto;
}
.pp-drawer-footer p {
    color: rgba(245,239,225,0.35);
    font-size: 0.75rem;
    margin: 0;
    text-align: center;
}

/* ============ SHARED FOOTER ============ */
.pp-footer {
    background: var(--pp-dark);
    color: rgba(245,239,225,0.65);
    padding: 60px 0 0;
}
.pp-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 40px;
}
.pp-footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--pp-cream);
    font-size: 1.2rem;
    margin-bottom: 14px;
}
.pp-footer-logo img {
    height: 38px; width: 38px;
    border-radius: 8px;
    object-fit: cover;
}
.pp-footer-logo span b { color: var(--pp-gold); }
.pp-footer-brand p {
    font-size: 0.9rem;
    margin-bottom: 18px;
    max-width: 260px;
}
.pp-footer-social {
    display: flex;
    gap: 10px;
}
.pp-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    color: rgba(245,239,225,0.65);
    transition: all .25s ease;
}
.pp-footer-social a:hover {
    background: var(--pp-gold);
    color: var(--pp-dark);
    transform: translateY(-2px);
}

.pp-footer-col h6 {
    color: var(--pp-cream);
    font-weight: 600;
    margin-bottom: 16px;
    font-size: 0.95rem;
}
.pp-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.pp-footer-col ul li { margin-bottom: 10px; }
.pp-footer-col ul li a {
    color: rgba(245,239,225,0.6);
    font-size: 0.9rem;
    transition: color .2s;
}
.pp-footer-col ul li a:hover { color: var(--pp-gold); }
.pp-footer-col > p {
    font-size: 0.88rem;
    margin-bottom: 14px;
}

.pp-footer-newsletter {
    display: flex;
    gap: 0;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}
.pp-footer-newsletter input {
    flex: 1;
    background: rgba(255,255,255,0.06);
    border: none;
    color: var(--pp-cream);
    padding: 10px 16px;
    font-size: 0.88rem;
    outline: none;
    min-width: 0;
}
.pp-footer-newsletter input::placeholder { color: rgba(245,239,225,0.35); }
.pp-footer-newsletter button {
    background: var(--pp-gold);
    color: var(--pp-dark);
    border: none;
    padding: 10px 18px;
    cursor: pointer;
    transition: background .2s;
    flex-shrink: 0;
}
.pp-footer-newsletter button:hover { background: var(--pp-gold-light); }

.pp-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
    margin-top: 50px;
    text-align: center;
    font-size: 0.82rem;
}
.pp-footer-bottom a { color: rgba(245,239,225,0.55); transition: color .2s; }
.pp-footer-bottom a:hover { color: var(--pp-gold); }

/* ============ RESPONSIVE: Tablet (<992px) ============ */
@media (max-width: 991.98px) {
    .pp-nav-links,
    .pp-nav-actions {
        display: none;
    }
    .pp-hamburger {
        display: flex;
        margin-left: auto;
    }
    .pp-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ============ RESPONSIVE: Mobile (<576px) ============ */
@media (max-width: 575.98px) {
    .pp-nav-inner {
        padding: 10px 14px;
    }
    .pp-nav-brand {
        font-size: 1.1rem;
        gap: 8px;
    }
    .pp-nav-brand img {
        height: 32px; width: 32px;
    }
    .pp-footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    .pp-footer-brand p { max-width: 100%; margin-left: auto; margin-right: auto; }
    .pp-footer-social { justify-content: center; }
    .pp-footer { padding: 40px 0 0; }
    .pp-footer-bottom { margin-top: 30px; padding: 16px 12px; }
}

/* ============ RESPONSIVE: Extra small (<=400px) ============ */
@media (max-width: 400px) {
    .pp-nav-inner { padding: 8px 10px; }
    .pp-nav-brand { font-size: 1rem; gap: 6px; }
    .pp-nav-brand img { height: 28px; width: 28px; }
    .pp-hamburger { width: 36px; height: 36px; padding: 7px; }
    .pp-drawer { width: 270px; }
}

/* Touch-friendly tap targets */
@media (hover: none) and (pointer: coarse) {
    .pp-nav-link { padding: 10px 16px; }
    .pp-drawer-link { padding: 14px 16px; }
    .pp-btn-outline-sm, .pp-btn-gold-sm { min-height: 42px; }
}
