/*
   LinkedIn Pulse — App Stylesheet
   Brand: ReadyStreet LLC "Midnight & Growth"
   Master ref: guides/brand-design-patterns.md
   Base shell: guides/assets/readystreet-modern.css (inlined + extended)
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&family=Outfit:wght@600&display=swap');

:root {
    --royal-midnight: #002D4E;
    --fresh-growth: #8DB23D;
    --executive-gold: #C9A84C;
    --slate-grey: #4A4F54;
    --frost-white: #F8F9FB;
    --glass-white: rgba(255, 255, 255, 0.7);
    --shadow-soft: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--frost-white);
    color: var(--slate-grey);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3 {
    font-family: 'Outfit', sans-serif;
    color: var(--royal-midnight);
    font-weight: 600;
}

a { color: var(--royal-midnight); }

/* ── Navigation ───────────────────────────────────────────────────── */

.nav-glass {
    background: var(--glass-white);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.18);
    padding: 0.8rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-soft);
}

.nav-brand { display: flex; align-items: baseline; gap: 0.6rem; }
.nav-tagline { font-size: 0.8rem; color: var(--slate-grey); opacity: 0.7; }

.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-link {
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--royal-midnight);
    transition: color 0.3s;
}
.nav-link:hover { color: var(--fresh-growth); }
.nav-link-muted { color: var(--slate-grey); font-weight: 400; }

/* ── Hero Section ─────────────────────────────────────────────────── */

.hero {
    background: linear-gradient(135deg, var(--royal-midnight) 0%, #004070 100%);
    color: white;
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 70% 30%, rgba(141,178,61,0.12) 0%, transparent 60%);
    pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.hero-title {
    font-size: 2.8rem;
    color: white;
    margin-bottom: 1rem;
    animation: fadeUp 0.9s ease both;
}
.hero-subtitle {
    font-size: 1.15rem;
    opacity: 0.9;
    line-height: 1.7;
    margin-bottom: 2rem;
    animation: fadeUp 0.9s ease 0.15s both;
}

/* ── Container ────────────────────────────────────────────────────── */

.container {
    max-width: 1000px;
    margin: 3rem auto;
    padding: 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    animation: fadeUp 0.8s ease both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Flash Messages ───────────────────────────────────────────────── */

.flash-container { max-width: 1000px; margin: 1rem auto 0; padding: 0 2rem; }

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 5px solid transparent;
    font-size: 0.95rem;
}
.alert-error {
    background: #ffebee; color: #c62828; border-left-color: #c62828;
}
.alert-success {
    background: #f1f8e9; color: #33691e; border-left-color: var(--fresh-growth);
}

/* ── Buttons ──────────────────────────────────────────────────────── */

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
}
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-primary {
    background: var(--royal-midnight); color: white;
}
.btn-primary:hover {
    background: #004070;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,45,78,0.3);
}
.btn-secondary {
    background: var(--fresh-growth); color: white;
}
.btn-secondary:hover {
    background: #a3cc46;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(141,178,61,0.3);
}
.btn-danger {
    background: #c62828; color: white;
}
.btn-danger:hover {
    background: #b71c1c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(198,40,40,0.3);
}
.btn:disabled {
    opacity: 0.6; cursor: not-allowed; transform: none !important;
}

/* ── Bento Grid ───────────────────────────────────────────────────── */

.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.card {
    padding: 1.5rem;
    background: white;
    border: 1px solid #eee;
    border-radius: 12px;
    transition: 0.3s;
}
.card:hover {
    border-color: var(--royal-midnight);
    box-shadow: var(--shadow-soft);
}

/* ── Feature Cards ────────────────────────────────────────────────── */

.feature-card { text-align: center; }
.feature-icon { font-size: 2.5rem; margin-bottom: 0.8rem; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.9rem; line-height: 1.5; }

/* ── How It Works ─────────────────────────────────────────────────── */

.how-it-works {
    margin-top: 3rem;
    text-align: center;
}
.how-it-works h2 { margin-bottom: 2rem; }

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}
.step { text-align: center; }
.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px; height: 48px;
    background: var(--executive-gold);
    color: white;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    font-family: 'Outfit', sans-serif;
}
.step h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.step p { font-size: 0.85rem; line-height: 1.5; }

/* ── Dashboard ────────────────────────────────────────────────────── */

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.stat-card {
    text-align: center;
    padding: 2rem 1.5rem;
}
.stat-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--slate-grey);
    margin-bottom: 0.5rem;
}
.stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    color: var(--royal-midnight);
    line-height: 1.1;
}
.stat-value-sm { font-size: 1.3rem; }
.stat-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--slate-grey);
    opacity: 0.7;
    margin-top: 0.4rem;
}

/* ── Data Table ───────────────────────────────────────────────────── */

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}
.data-table th, .data-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}
.data-table th {
    font-weight: 600;
    color: var(--royal-midnight);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ── Badges ───────────────────────────────────────────────────────── */

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-success { background: #f1f8e9; color: #33691e; }
.badge-partial { background: #fff8e1; color: #f57f17; }
.badge-running { background: #e3f2fd; color: #1565c0; }
.badge-failed  { background: #ffebee; color: #c62828; }
.badge-unknown { background: #f5f5f5; color: #757575; }

/* ── Forms ────────────────────────────────────────────────────────── */

.form-stack { display: flex; flex-direction: column; gap: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--royal-midnight);
}
.form-input {
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s;
}
.form-input:focus {
    outline: none;
    border-color: var(--royal-midnight);
    box-shadow: 0 0 0 3px rgba(0,45,78,0.08);
}
.form-hint {
    font-size: 0.78rem;
    color: var(--slate-grey);
    opacity: 0.7;
}

/* ── Settings ─────────────────────────────────────────────────────── */

.settings-section { margin-bottom: 2.5rem; }
.settings-section h2 { margin-bottom: 1rem; font-size: 1.2rem; }
.danger-zone {
    border: 1px solid #ffcdd2;
    border-radius: 12px;
    padding: 1.5rem;
    background: #fff5f5;
}
.danger-zone h2 { color: #c62828; }

/* ── Footer ───────────────────────────────────────────────────────── */

.site-footer {
    text-align: center;
    padding: 2rem;
    margin-top: auto;
    font-size: 0.8rem;
    color: var(--slate-grey);
    opacity: 0.6;
}
.site-footer a { color: inherit; }

/* ── Utility ──────────────────────────────────────────────────────── */

.text-muted { color: var(--slate-grey); opacity: 0.8; }

/* ── Responsive ───────────────────────────────────────────────────── */

@media (max-width: 640px) {
    .hero { padding: 3rem 1.5rem; }
    .hero-title { font-size: 2rem; }
    .container { margin: 1.5rem 1rem; padding: 1.5rem; }
    .nav-glass { padding: 0.8rem 1rem; }
    .dashboard-header { flex-direction: column; text-align: center; }
}
