/* OKAYPLAY Shared Nav + Footer — v2.0 */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 20px 40px;
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(26,26,30,0.88);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
}
.nav-logo {
    display: flex; align-items: center; gap: 12px;
    text-decoration: none; color: var(--t1); font-weight: 700; font-size: 18px;
    flex-shrink: 0;
}
.nav-logo img { height: 32px; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { color: var(--t3); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--t1); }
.nav-btn {
    padding: 12px 28px; background: #ececee; color: #1a1a1e !important;
    text-decoration: none; font-weight: 600; font-size: 14px;
    border-radius: 8px; transition: all 0.2s;
}
.nav-btn:hover { background: #fff; transform: translateY(-1px); }
.nav-btn-outline {
    padding: 12px 28px; background: transparent; color: var(--t1);
    text-decoration: none; font-weight: 600; font-size: 14px;
    border-radius: 8px; border: 1px solid var(--line); transition: all 0.2s;
}
.nav-btn-outline:hover { border-color: var(--t3); }
.nav-info { font-size: 12px; color: var(--t4); letter-spacing: 0.3px; }
.theme-btn {
    background: none; border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%; width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.2s; color: var(--t3); padding: 0; font-size: 0;
}
.theme-btn:hover { border-color: rgba(255,255,255,0.3); }
.theme-btn .icon-moon { display: block; }
.theme-btn .icon-sun { display: none; }

/* Burger Menu */
.burger-btn {
    background: none; border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px; width: 40px; height: 40px; cursor: pointer;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 0;
}
.burger-btn span {
    display: block; width: 18px; height: 2px; background: var(--t2);
    transition: all 0.3s ease; border-radius: 2px;
}
.burger-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-btn.active span:nth-child(2) { opacity: 0; }
.burger-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hidden on desktop */
.nav-right-mobile { display: none; align-items: center; gap: 10px; }
.mobile-menu {
    display: none !important; position: fixed; top: 73px; left: 0; right: 0; bottom: 0;
    background: var(--bg); z-index: 1001; padding: 24px;
    flex-direction: column; gap: 0; overflow-y: auto;
    border-top: 1px solid var(--line);
    animation: menuSlide 0.25s ease;
}
@keyframes menuSlide { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.mobile-menu.open { display: flex !important; }
.mobile-menu a {
    color: var(--t1); text-decoration: none; font-size: 17px; font-weight: 500;
    padding: 16px 0; border-bottom: 1px solid var(--line); transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--t3); }
.mobile-menu-buttons {
    display: flex; flex-direction: column; gap: 12px; margin-top: 24px; padding-top: 8px;
}
.mobile-menu-buttons .nav-btn-outline,
.mobile-menu-buttons .nav-btn {
    text-align: center; padding: 16px 28px; font-size: 16px; width: 100%;
}

/* Light mode nav */
.light-mode .theme-btn .icon-sun { display: block; }
.light-mode .theme-btn .icon-moon { display: none; }
.light-mode nav { background: rgba(248,248,250,0.88); }
.light-mode .nav-logo { color: #000; }
.light-mode .nav-logo img { filter: invert(1); }
.light-mode .nav-links a { color: #525252; }
.light-mode .nav-links a:hover { color: #000; }
.light-mode .theme-btn { border-color: rgba(0,0,0,0.15); color: #171717; }
.light-mode .theme-btn:hover { border-color: rgba(0,0,0,0.3); background: rgba(0,0,0,0.04); }
.light-mode .nav-btn { background: #1a1a1e; color: #f0f0f2 !important; }
.light-mode .nav-btn:hover { background: #000; }
.light-mode .nav-btn-outline { border-color: #d8d8de; color: #1a1a1e; }
.light-mode .nav-info { color: #9a9aa0; }
.light-mode .burger-btn { border-color: rgba(0,0,0,0.15); }
.light-mode .burger-btn span { background: #171717; }
.light-mode .mobile-menu { background: #fff; }
.light-mode .mobile-menu a { color: #000; border-color: #e5e5e5; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 48px 40px 32px; max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-bottom: 32px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col-title { font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--t4); font-weight: 600; margin-bottom: 4px; }
.footer-col a { color: var(--t3); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.footer-col a:hover { color: var(--t1); }
.footer-bottom { font-size: 13px; color: var(--t4); border-top: 1px solid var(--line); padding-top: 24px; }

/* Mobile */
@media (max-width: 768px) {
    nav { padding: 16px 20px; }
    .nav-links { display: none !important; }
    .nav-right-mobile { display: flex !important; }
    .nav-info { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    footer { padding: 32px 20px 24px; }
}
