/*
 * Support Site Styles | Council App
 * Mobile-first, scannable support pages
 */

:root {
    --brand-blue: #5B5FFB;
    --brand-purple: #A777F8;
    --background-dark: #0A0A14;
    --text-primary: #EAEAF2;
    --text-secondary: #9292A8;
    --surface-glass: rgba(255, 255, 255, 0.05);
    --border-glass: rgba(255, 255, 255, 0.1);
    --success-green: #22c55e;
    --warning-amber: #f59e0b;
    --error-red: #ef4444;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--background-dark);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* Header */
header {
    position: sticky;
    top: 0;
    background: rgba(10, 10, 20, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-glass);
    padding: 1rem 1.5rem;
    z-index: 100;
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-link img {
    width: 32px;
    height: 32px;
}

.logo-link span {
    font-weight: 600;
    font-size: 1rem;
}

.header-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.header-nav a:hover {
    color: var(--text-primary);
    background: var(--surface-glass);
}

/* Main Content */
main {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.breadcrumbs a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    color: var(--brand-blue);
}

.breadcrumbs .separator {
    opacity: 0.5;
}

.breadcrumbs .current {
    color: var(--text-primary);
}

/* Error Code Badge */
.error-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(91, 95, 251, 0.15);
    border: 1px solid rgba(91, 95, 251, 0.3);
    border-radius: 8px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--brand-blue);
    margin-bottom: 1rem;
}

/* Page Title */
h1 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

/* Section Headers */
h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

h2 .section-icon {
    width: 24px;
    height: 24px;
    color: var(--brand-blue);
}

/* Paragraphs */
p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.7;
}

/* Lists */
ul, ol {
    color: var(--text-secondary);
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

li strong {
    color: var(--text-primary);
}

/* Ordered list styling for steps */
ol li {
    padding-left: 0.5rem;
}

ol li::marker {
    color: var(--brand-blue);
    font-weight: 600;
}

/* Tips/Notes Box */
.tip-box {
    background: rgba(91, 95, 251, 0.08);
    border: 1px solid rgba(91, 95, 251, 0.2);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
}

.tip-box h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--brand-blue);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tip-box p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.tip-box p:last-child {
    margin-bottom: 0;
}

.tip-box ul {
    margin-bottom: 0;
}

/* Warning Box */
.warning-box {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
}

.warning-box h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--warning-amber);
    margin-bottom: 0.75rem;
}

/* Support CTA */
.support-cta {
    background: var(--surface-glass);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 3rem;
    text-align: center;
}

.support-cta h2 {
    margin-top: 0;
    justify-content: center;
    font-size: 1.35rem;
}

.support-cta p {
    max-width: 500px;
    margin: 0 auto 1.5rem;
}

.support-cta .error-reference {
    display: inline-block;
    font-family: 'SF Mono', 'Fira Code', monospace;
    background: rgba(91, 95, 251, 0.15);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--brand-blue);
    margin-bottom: 1rem;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--brand-blue);
    color: white;
    padding: 0.875rem 1.75rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.contact-btn:hover {
    background: #4a4ef0;
    transform: translateY(-2px);
}

/* Error Index Table */
.error-table {
    width: 100%;
    margin-top: 1.5rem;
    border-collapse: collapse;
}

.error-table th,
.error-table td {
    text-align: left;
    padding: 1rem;
    border-bottom: 1px solid var(--border-glass);
}

.error-table th {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.error-table td {
    color: var(--text-secondary);
}

.error-table tr:hover td {
    background: var(--surface-glass);
}

.error-table a {
    color: var(--brand-blue);
    text-decoration: none;
    font-weight: 600;
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.error-table a:hover {
    text-decoration: underline;
}

/* Error Cards (mobile-friendly alternative) */
.error-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.error-card {
    background: var(--surface-glass);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 1.25rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.error-card:hover {
    border-color: rgba(91, 95, 251, 0.5);
    transform: translateY(-2px);
}

.error-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.error-card-code {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-weight: 600;
    color: var(--brand-blue);
}

.error-card-arrow {
    color: var(--text-secondary);
    transition: transform 0.2s ease;
}

.error-card:hover .error-card-arrow {
    transform: translateX(4px);
    color: var(--brand-blue);
}

.error-card-title {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.error-card-fix {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-glass);
    padding: 2rem 1.5rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

footer a {
    color: var(--text-secondary);
    text-decoration: none;
}

footer a:hover {
    color: var(--brand-blue);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

/* Search Box */
.search-box {
    position: relative;
    max-width: 400px;
    margin: 0 auto 2rem;
}

.search-box input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: var(--surface-glass);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    font-size: 1rem;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s ease;
}

.search-box input::placeholder {
    color: var(--text-secondary);
}

.search-box input:focus {
    border-color: var(--brand-blue);
}

.search-box .search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 640px) {
    main {
        padding: 1.5rem 1rem 3rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.1rem;
    }

    .support-cta {
        padding: 1.5rem;
    }

    .error-table {
        display: none;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.75rem;
    }
}

@media (min-width: 641px) {
    .error-cards {
        display: none;
    }
}
