/* ── Skwiz - Shared Global Styles (Header & Footer) ── */

/* ── Standardized Header ── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 56px;
    border-bottom: 1px solid var(--border);
    background: rgba(12, 12, 16, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    color: var(--text);
    letter-spacing: -0.5px;
}

.logo img {
    border-radius: 4px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-right a {
    font-size: 14px;
    color: var(--text-sec);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease;
}

.nav-right a:hover {
    color: var(--text);
}

.nav-btn {
    background: linear-gradient(135deg, #0099ff, #0077cc);
    color: #fff !important;
    padding: 7px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    box-shadow: 0 2px 8px rgba(0, 153, 255, 0.3);
    transition: filter 0.2s, transform 0.2s;
}

.nav-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* ── Standardized Footer ── */
footer {
    border-top: 1px solid var(--border);
    padding: 64px 0 40px;
    background: var(--bg);
    color: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 48px;
}

.footer-brand p {
    margin-top: 16px;
    font-size: 14px;
    color: #bbb;
    max-width: 240px;
}

.footer-col h4 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: #fff;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    font-size: 14px;
    color: #eee;
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-col ul li a:hover {
    color: var(--accent);
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #888;
}

.footer-bottom span {
    color: #bbb;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
    }
    
    .footer-brand p {
        margin: 12px auto 0;
    }

    .footer-col {
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nav-right {
        gap: 12px;
    }
    
    .nav-right a:not(.nav-btn) {
        display: none; /* Hide non-essential links on tiny mobile */
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Scroll Progress Bar ── */
.scroll-progress, .reading-progress {
    position: fixed;
    top: 56px; /* Below navigation */
    left: 0;
    width: 0%;
    height: 2px;
    z-index: 2000;
    transition: width 0.1s linear;
}

/* Category Colors matching Plugin UI */
.scroll-progress.blue { background: linear-gradient(90deg, #0099ff, #0077cc); }
.scroll-progress.purple, .reading-progress { background: linear-gradient(90deg, #667eea, #764ba2); }
.scroll-progress.orange { background: linear-gradient(90deg, #f59e0b, #d97706); }
.scroll-progress.green { background: linear-gradient(90deg, #10b981, #059669); }
