/* assets/css/public.css - Global Styles for Public Pages */

:root {
    --bg-dark: #07090e;
    --bg-card: #13161f;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --primary-glow: rgba(59, 130, 246, 0.4);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: #1e293b;
    --accent: #10b981;
}

[data-theme="light"] {
    --bg-dark: #f8fafc;
    --bg-card: #ffffff;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-glow: rgba(37, 99, 235, 0.1);
    --text-main: #0f172a;
    --text-muted: #475569;
    --border: #e2e8f0;
    --accent: #059669;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    overflow-x: hidden !important;
    width: 100%;
    position: relative;
    margin: 0;
    padding: 0;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

/* HEADER */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(7, 9, 14, 0.85);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    transition: all 0.3s ease;
}

[data-theme="light"] header {
    background: rgba(248, 250, 252, 0.85);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    white-space: nowrap;
}

[data-theme="light"] .logo {
    color: #0f172a;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.auth-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-login {
    font-weight: 600;
    font-size: 14px;
    color: #fff;
    padding: 10px 20px;
    transition: 0.3s;
}

[data-theme="light"] .btn-login {
    color: #475569;
}

.btn-login:hover {
    color: var(--primary);
}

.btn-register {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 24px;
    border-radius: 8px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-register:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

/* THEME TOGGLE */
.theme-toggle {
    cursor: pointer;
    color: var(--text-muted);
    font-size: 18px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
    background: rgba(255, 255, 255, 0.05);
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary);
}

[data-theme="light"] .theme-toggle {
    background: rgba(0, 0, 0, 0.05);
}

/* MOBILE MENU */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--bg-card);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    padding: 80px 40px;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
}

.mobile-menu-links a {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-menu-links a i {
    color: var(--primary);
    width: 30px;
    text-align: center;
}

.mobile-auth {
    display: flex;
    flex-direction: column;
    gap: 15px;
    border-top: 1px solid var(--border);
    padding-top: 40px;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    z-index: 2001;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    font-size: 20px;
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
}

/* FOOTER */
footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 60px 5% 30px;
    color: var(--text-muted);
    font-size: 14px;
}

.f-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.f-brand h4 {
    font-family: 'Outfit', sans-serif;
    color: #fff;
    font-size: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

[data-theme="light"] .f-brand h4 {
    color: #0f172a;
}

.f-links h5 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
}

[data-theme="light"] .f-links h5 {
    color: #0f172a;
}

.f-links ul {
    list-style: none;
}

.f-links li {
    margin-bottom: 12px;
}

.f-links a {
    transition: 0.2s;
}

.f-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.f-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    max-width: 1200px;
    margin: 0 auto;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .f-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {

    .nav-links,
    .auth-buttons .btn-login,
    .auth-buttons .btn-register {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    header {
        padding: 4px 15px;
        height: 65px;
    }

    .logo {
        font-size: 18px;
        max-width: 70%;
    }

    .logo span {
        font-size: 18px;
    }

    .auth-buttons {
        gap: 10px;
    }
}

@media (max-width: 600px) {
    .f-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .f-brand h4 {
        justify-content: center;
    }

    .logo i {
        font-size: 22px;
    }

    .logo span {
        font-size: 16px;
    }
}

@media (max-width: 350px) {
    .logo span:last-child {
        display: none;
    }

    /* Hide sub-text if extreme narrow */
}