/* ─────────────────────────────────────────
   PolyZone – Shared Styles
   Used by: index.php, tool.php, category.php, tag.php
───────────────────────────────────────── */

/* ── Variables ── */
:root {
    --bg-main: #0a0a0c;
    --bg-card: #151518;
    --bg-card-hover: #1a1a1e;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --acc-blue: #2563eb;
    --acc-blue-hover: #3b82f6;
    --acc-green: #10b981;
    --acc-red: #ef4444;
    --border-light: rgba(255,255,255,0.08);
    --gradient-primary: linear-gradient(135deg, #2563eb, #8b5cf6);
}

/* ── Reset ── */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* ── Body ── */
body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ── Nav ── */
nav {
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
    background: rgba(10,10,12,0.85);
    backdrop-filter: blur(14px);
    position: sticky;
    top: 0;
    z-index: 100;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.3px;
}
.logo img, .logo svg { flex-shrink: 0; border-radius: 9px; }
.nav-right { display: flex; align-items: center; gap: 0.5rem; }
.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }
.nav-cta {
    background: var(--acc-blue);
    color: #fff;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 1.1rem;
    border-radius: 8px;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.nav-cta:hover { background: var(--acc-blue-hover); }

/* ── Breadcrumb ── */
.breadcrumb {
    padding: 1rem 5%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.breadcrumb a { color: var(--text-secondary); text-decoration: none; }
.breadcrumb a:hover { color: var(--text-primary); }
.breadcrumb i { font-size: 0.65rem; }

/* ── Tag pill ── */
.tag {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    background: rgba(255,255,255,0.05);
    border: 1px solid transparent;
    color: var(--text-muted);
    padding: 0.2rem 0.6rem;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    cursor: pointer;
}
a.tag:hover, .tag.active-tag {
    background: rgba(139,92,246,0.15);
    color: #a78bfa;
    border-color: rgba(139,92,246,0.3);
}

/* ── Footer ── */
footer { border-top: 1px solid var(--border-light); padding: 3rem 5% 1.5rem; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; text-align: center; }
.footer-logo {
    display: inline-flex; align-items: center; gap: 0.6rem;
    text-decoration: none; font-family: 'Outfit', sans-serif;
    font-size: 1.2rem; font-weight: 800; color: #fff;
}
.footer-desc { color: var(--text-muted); font-size: 0.875rem; line-height: 1.75; max-width: 600px; }
.footer-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.footer-nav a { color: var(--text-muted); text-decoration: none; font-size: 0.85rem; font-weight: 500; transition: color 0.2s; }
.footer-nav a:hover { color: var(--text-primary); }
.footer-copy { color: var(--text-muted); font-size: 0.78rem; margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--border-light); text-align: center; }
