/* ============================================================
   PAGE STYLES — Shared styles for Blog Articles & Legal Pages
   Matches the homepage dark theme
   ============================================================ */

.page-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
}

/* ---------- Article Header ---------- */
.article-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-glass);
}

.article-header__tag {
    display: inline-block;
    padding: 4px 16px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}

.article-header h1 {
    font-size: clamp(1.8rem, 1.5rem + 1.5vw, 2.8rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.article-header .gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.article-header__meta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* ---------- Article Body ---------- */
.article-body h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    color: var(--text-primary);
}

.article-body h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 1.75rem 0 0.75rem;
    color: var(--text-primary);
}

.article-body p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.article-body > :first-child {
    margin-top: 0;
}

.article-body strong {
    color: var(--text-primary);
}

.article-body ul,
.article-body ol {
    margin: 1rem 0 1.5rem 1.5rem;
    color: var(--text-secondary);
    padding-left: 1.25rem;
}

.article-body ul {
    list-style: disc;
}

.article-body ol {
    list-style: decimal;
}

.article-body li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
    padding-left: 0.2rem;
}

.article-body a {
    color: var(--accent-cyan);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 212, 255, 0.3);
    transition: border-color 0.2s;
}

.article-body a:hover {
    border-color: var(--accent-cyan);
}

/* Callout Box */
.callout {
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 12px;
    font-size: 0.92rem;
}

.callout--tip {
    background: rgba(0, 212, 255, 0.06);
    border-left: 4px solid var(--accent-cyan);
}

.callout--warning {
    background: rgba(255, 193, 7, 0.06);
    border-left: 4px solid #ffc107;
}

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

/* Step List */
.step-list {
    list-style: none;
    margin-left: 0;
    counter-reset: step-counter;
}

.step-list li {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 1.25rem;
    counter-increment: step-counter;
}

.step-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 2rem;
    height: 2rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-cyan);
}

/* Code/kbd */
.article-body kbd {
    display: inline-block;
    padding: 2px 8px;
    font-size: 0.85em;
    font-family: var(--font-family);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: var(--accent-cyan);
}

/* ---------- Related Articles ---------- */
.related-articles {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-glass);
}

.related-articles h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.related-link {
    display: block;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.related-link:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
}

.related-link small {
    display: block;
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 0.78rem;
    margin-top: 4px;
}

/* ---------- Legal Page Styles ---------- */
.legal-body h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 2rem 0 0.75rem;
    color: var(--text-primary);
}

.legal-body p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.legal-body ul {
    margin: 0.5rem 0 1rem 1.5rem;
    color: var(--text-secondary);
}

.legal-body li {
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Contact Form */
.contact-form {
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.contact-form label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.contact-form input,
.contact-form textarea {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 0.92rem;
    transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
}

.contact-form textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-form button {
    align-self: flex-start;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
    display: flex;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.breadcrumb a {
    color: var(--accent-cyan);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .page-wrapper {
        padding: 2rem 1rem 3rem;
    }

    .article-header__meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}
