/* ============================================================
   Site Render — Shared styles for all public site pages
   Used by: sites/render/page.blade.php, sites/render/release.blade.php
   Dynamic vars (--brand-primary, --brand-gradient, --font-family)
   are injected via a small inline <style> block in the blade.
   ============================================================ */

/* ── Theme Variables ── */
:root {
    --bg-page: #ffffff;
    --bg-surface: #f8fafc;
    --bg-card: #ffffff;
    --bg-input: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
}

[data-theme="dark"] {
    --bg-page: #0f172a;
    --bg-surface: #1e293b;
    --bg-card: #1e293b;
    --bg-input: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: #334155;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-family, 'Inter', system-ui, -apple-system, sans-serif);
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-page);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body > section,
body > div,
body > main { flex-shrink: 0; }

body > footer { margin-top: auto; }

/* ── Layout ── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 768px) {
    .container { padding: 0 2.5rem; }
}

img { max-width: 100%; height: auto; }

a {
    color: var(--brand-primary, #6366f1);
    text-decoration: none;
}

a:hover { text-decoration: underline; }

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--brand-primary, #6366f1);
    color: #fff;
}

.btn-primary:hover {
    opacity: 0.9;
    text-decoration: none;
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--brand-primary, #6366f1);
    color: var(--brand-primary, #6366f1);
}

.btn-outline-primary:hover {
    background: var(--brand-primary, #6366f1);
    color: #fff;
    text-decoration: none;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* ── Preview Banner ── */
.preview-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fbbf24;
    color: #1f2937;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 9999;
}

body:has(.preview-banner) {
    padding-top: 36px;
}

/* ── Empty / Fallback States ── */
.site-empty-state {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.site-empty-state h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.site-unknown-component {
    padding: 2rem;
    background: #fef3c7;
    text-align: center;
    color: #92400e;
}

/* Compact empty state variant */
.site-empty-state.compact {
    min-height: auto;
    padding: 3rem 2rem;
    color: var(--text-muted, #64748b);
}

.site-empty-state.compact i {
    font-size: 2rem;
    opacity: 0.2;
    margin-bottom: 0.75rem;
    display: block;
}

/* Basic utilities */
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Contact form message */
.contact-form-message {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
}

.contact-form-message.success {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.contact-form-message.error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}
