/* Xopoz User Guide — Shared Stylesheet */

:root {
    /* Xopoz brand palette (unified with email templates) */
    --primary: #1a5fa8;
    --primary-dark: #0b1442;
    --primary-light: #e8f1fa;
    --accent-cyan: #00aaff;
    --accent: #34a853;
    --danger: #ea4335;
    --warning: #fbbc04;
    --surface: #ffffff;
    --surface-alt: #f4f7fb;
    --border: #dadce0;
    --text: #202124;
    --text-secondary: #5f6368;
    --shadow: 0 1px 3px rgba(0,80,150,0.10), 0 1px 2px rgba(0,80,150,0.06);
    --shadow-md: 0 4px 10px rgba(0,80,150,0.12), 0 2px 4px rgba(0,80,150,0.06);
    --radius: 10px;
    --radius-sm: 6px;
}

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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--surface-alt);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
}

/* ─── Header ─────────────────────────────────── */
.site-header {
    background: linear-gradient(135deg, #0b1442 0%, #1a5fa8 100%);
    color: #fff;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0,80,150,0.15);
}

.header-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 28px 24px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-title { flex: 1; }
.header-title h1 {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.header-title p  {
    font-size: 0.78rem;
    color: var(--accent-cyan);
    margin-top: 4px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* ─── Breadcrumb ─────────────────────────────── */
.breadcrumb {
    max-width: 960px;
    margin: 0 auto;
    padding: 12px 24px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex; align-items: center; gap: 6px;
}
.breadcrumb a { color: var(--primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--text-secondary); }

/* ─── Main content ───────────────────────────── */
.main { max-width: 960px; margin: 0 auto; padding: 24px 24px 64px; }

/* ─── Page hero (section pages) ─────────────── */
.page-hero {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 32px;
    margin-bottom: 28px;
    display: flex; gap: 20px; align-items: flex-start;
    box-shadow: var(--shadow);
}
.hero-icon {
    font-size: 3rem;
    line-height: 1;
    flex-shrink: 0;
    width: 64px; height: 64px;
    background: var(--primary-light);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
}
.hero-text h2 { font-size: 1.5rem; font-weight: 700; color: var(--text); }
.hero-text p  { color: var(--text-secondary); margin-top: 6px; font-size: 0.97rem; }

/* ─── Cards grid (index) ─────────────────────── */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
    margin-top: 8px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 20px;
    text-decoration: none;
    color: var(--text);
    display: flex; flex-direction: column; gap: 10px;
    transition: box-shadow .15s, transform .15s, border-color .15s;
    box-shadow: var(--shadow);
}
.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--primary);
    color: var(--text);
}

.card-icon {
    font-size: 2rem;
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.card-icon.blue   { background: var(--primary-light); }
.card-icon.green  { background: #e6f4ea; }
.card-icon.orange { background: #fce8e6; }
.card-icon.purple { background: #f3e8fd; }
.card-icon.teal   { background: #e6f7f4; }
.card-icon.red    { background: #fce8e6; }
.card-icon.gray   { background: #f1f3f4; }
.card-icon.yellow { background: #fef7e0; }

.card h3  { font-size: 1rem; font-weight: 600; }
.card p   { font-size: 0.87rem; color: var(--text-secondary); line-height: 1.5; }
.card-arrow { margin-top: auto; color: var(--primary); font-size: 0.85rem; font-weight: 500; }

/* ─── Section headings ───────────────────────── */
.section-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 28px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}
.section-block h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-light);
}
.section-block h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin: 16px 0 8px;
}
.section-block p  { color: var(--text-secondary); margin-bottom: 10px; font-size: 0.95rem; }
.section-block ul { padding-left: 20px; color: var(--text-secondary); font-size: 0.95rem; }
.section-block li { margin-bottom: 6px; }
.section-block strong { color: var(--text); }

/* ─── Info boxes ─────────────────────────────── */
.info-box {
    background: var(--primary-light);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    margin: 14px 0;
    font-size: 0.92rem;
    color: var(--text);
}
.info-box.warning {
    background: #fff8e1;
    border-color: var(--warning);
}
.info-box.danger {
    background: #fce8e6;
    border-color: var(--danger);
}
.info-box.success {
    background: #e6f4ea;
    border-color: var(--accent);
}

/* ─── Steps list ─────────────────────────────── */
.steps { list-style: none; padding: 0; counter-reset: steps; }
.steps li {
    counter-increment: steps;
    display: flex; gap: 14px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}
.steps li::before {
    content: counter(steps);
    min-width: 28px; height: 28px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ─── Feature table ──────────────────────────── */
.feature-table {
    width: 100%; border-collapse: collapse; font-size: 0.9rem; margin: 12px 0;
}
.feature-table th {
    background: var(--surface-alt);
    color: var(--text);
    font-weight: 600;
    padding: 10px 14px;
    border: 1px solid var(--border);
    text-align: left;
}
.feature-table td {
    padding: 9px 14px;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    vertical-align: top;
}
.feature-table tr:nth-child(even) td { background: var(--surface-alt); }
.badge-on  { color: var(--accent); font-weight: 600; }
.badge-off { color: var(--danger); font-weight: 600; }

/* ─── Tip callout ────────────────────────────── */
.tip {
    display: flex; gap: 12px; align-items: flex-start;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 0.9rem;
    margin: 10px 0;
}
.tip-icon { font-size: 1.2rem; flex-shrink: 0; }

/* ─── Back button ────────────────────────────── */
.back-bar {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px 24px 0;
}
.back-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    transition: background .15s, box-shadow .15s;
    box-shadow: var(--shadow);
}
.back-btn:hover { background: var(--primary-light); box-shadow: var(--shadow-md); }

/* ─── Footer ─────────────────────────────────── */
.site-footer {
    text-align: center;
    padding: 20px 24px;
    font-size: 0.78rem;
    color: #7384d9;
    background: var(--primary-dark);
    letter-spacing: 1px;
    margin-top: 48px;
}
.site-footer a { color: var(--accent-cyan); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ─── Responsive ─────────────────────────────── */
@media (max-width: 600px) {
    .cards-grid { grid-template-columns: 1fr; }
    .page-hero  { flex-direction: column; padding: 20px; }
    .section-block { padding: 18px; }
    .header-inner { padding: 18px; }
}
