/* ═══════════════════════════════════════════
   SafePlate - Contribute Page Styles
   ═══════════════════════════════════════════ */

/* ─── Hero ────────────────────── */
@keyframes hero-breathe {
    0%, 100% { opacity: 0.35; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.65; transform: translateX(-50%) scale(1.08); }
}
@keyframes hero-icon-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.hero {
    min-height: 70vh; display: flex; flex-direction: column;
    align-items: center; justify-content: center; text-align: center;
    padding: 120px 24px 80px; position: relative;
}
.hero::before {
    content: ''; position: absolute; top: -120px; left: 50%;
    transform: translateX(-50%); width: 600px; height: 600px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    pointer-events: none; opacity: 0.4; animation: hero-breathe 7s ease-in-out infinite;
}
.hero-icon {
    font-size: 72px; margin-bottom: 32px; position: relative; z-index: 1;
    animation: hero-icon-float 4s ease-in-out infinite;
    filter: drop-shadow(0 8px 24px rgba(59, 130, 246, 0.2));
}
.hero h1 {
    font-size: clamp(32px, 5vw, 48px); font-weight: 800;
    letter-spacing: -1.5px; line-height: 1.15; position: relative; z-index: 1;
}
.hero h1 span {
    background: linear-gradient(135deg, #60A5FA, #3B82F6, #2563EB);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-tagline {
    font-size: clamp(15px, 2.2vw, 18px); color: var(--text-secondary);
    margin-top: 20px; max-width: 560px; position: relative; z-index: 1; line-height: 1.75;
}
.hero-cta {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--primary); color: #fff; font-size: 16px; font-weight: 700;
    padding: 16px 32px; border-radius: 100px; text-decoration: none;
    margin-top: 40px; position: relative; z-index: 1;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 0 40px rgba(59,130,246,0.35);
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 0 60px rgba(59,130,246,0.5); background: #2563eb; }

/* ─── Section layout ──────────── */
section { border-top: 1px solid rgba(148, 163, 184, 0.06); }

/* ─── Why It Matters ──────────── */
.why {
    padding: 100px 24px; max-width: 760px; margin: 0 auto; text-align: center;
    position: relative;
}
/* Ambient glow behind "Why" section */
.why::before {
    content: ''; position: absolute;
    top: 15%; left: 0; transform: translateX(-40%);
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 65%);
    pointer-events: none; border-radius: 50%;
}
.why-body {
    font-size: 16px; color: var(--text-secondary); line-height: 1.85; text-align: left;
    position: relative; z-index: 1;
    background: rgba(30, 41, 59, 0.35);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px 36px;
    transition: border-color 0.3s ease;
}
.why-body:hover {
    border-color: rgba(59, 130, 246, 0.18);
}
.why-body p { margin-bottom: 16px; }
.why-body p:last-child { margin-bottom: 0; }
.why-body strong { color: var(--text); font-weight: 700; }

/* ─── Steps ──────────────────── */
.steps-section {
    padding: 100px 24px; max-width: 900px; margin: 0 auto; text-align: center;
    position: relative;
}
/* Ambient glow behind steps */
.steps-section::before {
    content: ''; position: absolute;
    top: 25%; right: 0; transform: translateX(30%);
    width: 380px; height: 380px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 65%);
    pointer-events: none; border-radius: 50%;
}
.steps {
    display: flex; align-items: stretch; gap: 16px;
    margin-top: 48px; justify-content: center;
    position: relative; z-index: 1;
}
.step {
    flex: 1; max-width: 260px; text-align: center;
    background: rgba(30, 41, 59, 0.5); backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border); border-radius: 18px; padding: 36px 28px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.step:hover {
    border-color: rgba(59,130,246,0.25);
    box-shadow: 0 16px 48px rgba(0,0,0,0.3), 0 0 32px rgba(59,130,246,0.08);
    transform: translateY(-4px);
}
.step-num {
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(59,130,246,0.12); border: 1px solid rgba(59,130,246,0.25);
    color: var(--primary); font-size: 13px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 14px;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}
.step:hover .step-num {
    background: rgba(59,130,246,0.20);
    box-shadow: 0 0 16px rgba(59,130,246,0.25);
}
.step-icon { font-size: 36px; margin-bottom: 18px; }
.step h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.step p { font-size: 13px; color: var(--text-secondary); line-height: 1.7; }
.step-arrow {
    font-size: 22px; color: var(--text-muted);
    flex-shrink: 0; opacity: 0.5; align-self: center;
    transition: opacity 0.3s ease, color 0.3s ease;
}
@media (max-width: 680px) {
    .steps { flex-direction: column; align-items: center; }
    .step-arrow { padding: 0; transform: rotate(90deg); }
    .step { max-width: 100%; }
}

/* ─── Guidelines ─────────────── */
.guidelines {
    padding: 100px 24px; max-width: 760px; margin: 0 auto;
    position: relative;
}
/* Dual ambient glow */
.guidelines::before,
.guidelines::after {
    content: ''; position: absolute; border-radius: 50%;
    pointer-events: none; z-index: 0;
}
.guidelines::before {
    top: 8%; left: 0; transform: translateX(-35%);
    width: 360px; height: 360px;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.05) 0%, transparent 65%);
}
.guidelines::after {
    bottom: 12%; right: 0; transform: translateX(30%);
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(22, 163, 74, 0.05) 0%, transparent 65%);
}
.guideline-cards {
    display: flex; flex-direction: column; gap: 16px;
    position: relative; z-index: 1;
}
.guideline-card {
    background: rgba(30, 41, 59, 0.5); backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid; border-radius: 16px; padding: 28px 28px;
    display: flex; gap: 18px; align-items: flex-start;
    position: relative; overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
/* Subtle left accent bar */
.guideline-card::before {
    content: ''; position: absolute;
    left: 0; top: 0; bottom: 0; width: 3px;
    border-radius: 3px 0 0 3px;
    opacity: 0.7;
    transition: opacity 0.3s ease, width 0.3s ease;
}
.guideline-card:hover {
    transform: translateY(-2px);
}
.guideline-card--danger { border-color: rgba(220, 38, 38, 0.25); }
.guideline-card--danger::before { background: linear-gradient(180deg, #DC2626, rgba(220,38,38,0.3)); }
.guideline-card--danger:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.25), 0 0 24px rgba(220, 38, 38, 0.08);
    border-color: rgba(220, 38, 38, 0.35);
}
.guideline-card--warning { border-color: rgba(245, 158, 11, 0.25); }
.guideline-card--warning::before { background: linear-gradient(180deg, #F59E0B, rgba(245,158,11,0.3)); }
.guideline-card--warning:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.25), 0 0 24px rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.35);
}
.guideline-card--info { border-color: rgba(59, 130, 246, 0.25); }
.guideline-card--info::before { background: linear-gradient(180deg, #3B82F6, rgba(59,130,246,0.3)); }
.guideline-card--info:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.25), 0 0 24px rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.35);
}
.guideline-card--safe { border-color: rgba(22, 163, 74, 0.25); }
.guideline-card--safe::before { background: linear-gradient(180deg, #16A34A, rgba(22,163,74,0.3)); }
.guideline-card--safe:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.25), 0 0 24px rgba(22, 163, 74, 0.08);
    border-color: rgba(22, 163, 74, 0.35);
}

.guideline-icon {
    font-size: 28px; flex-shrink: 0; padding-top: 2px;
    padding-left: 6px; /* offset for the accent bar */
}
.guideline-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.guideline-card--danger h3 { color: var(--danger-text); }
.guideline-card--warning h3 { color: var(--warning-text); }
.guideline-card--info h3 { color: #93C5FD; }
.guideline-card--safe h3 { color: var(--safe-text); }
.guideline-card p {
    font-size: 14px; color: var(--text-secondary); line-height: 1.7;
}
.guideline-card code {
    background: rgba(59,130,246,0.1); color: #93C5FD;
    padding: 2px 6px; border-radius: 4px; font-size: 13px;
}

/* ─── Review Process ─────────── */
.review {
    padding: 100px 24px; max-width: 700px; margin: 0 auto; text-align: center;
    position: relative;
}
/* Ambient glow behind review section */
.review::before {
    content: ''; position: absolute;
    top: 40%; left: 50%; transform: translateX(-50%);
    width: 500px; height: 300px;
    background: radial-gradient(ellipse, rgba(59, 130, 246, 0.06) 0%, transparent 70%);
    pointer-events: none;
}
.review-flow {
    display: flex; align-items: center; justify-content: center;
    gap: 12px; margin-top: 40px; flex-wrap: wrap;
    position: relative; z-index: 1;
}
.review-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 24px; border-radius: 14px; font-size: 14px; font-weight: 600;
    border: 1px solid;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.review-badge:hover {
    transform: translateY(-2px);
}
.review-badge--suggest {
    background: var(--primary-soft); border-color: rgba(59,130,246,0.25); color: #93C5FD;
}
.review-badge--suggest:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.2), 0 0 20px rgba(59,130,246,0.12);
}
.review-badge--review {
    background: var(--warning-soft); border-color: rgba(245,158,11,0.25); color: var(--warning-text);
}
.review-badge--review:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.2), 0 0 20px rgba(245,158,11,0.12);
}
.review-badge--approve {
    background: var(--safe-soft); border-color: rgba(22,163,74,0.25); color: var(--safe-text);
}
.review-badge--approve:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.2), 0 0 20px rgba(22,163,74,0.12);
}

/* Animated flow arrows */
@keyframes arrow-pulse {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 0.7; }
}
.review-arrow {
    color: var(--text-muted); font-size: 18px;
    animation: arrow-pulse 2.5s ease-in-out infinite;
}
.review-desc {
    margin-top: 32px; font-size: 15px; color: var(--text-secondary);
    line-height: 1.75; max-width: 560px; margin-left: auto; margin-right: auto;
    position: relative; z-index: 1;
}

/* ─── Support SafePlate ─────────── */
.support {
    max-width: 600px; margin: 80px auto; text-align: center;
    padding: 56px 40px 52px;
    background: rgba(30, 41, 59, 0.30);
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: 24px;
    transition: border-color 0.3s ease;
}
.support:hover {
    border-color: rgba(245, 158, 11, 0.25);
}
.support-emoji {
    font-size: 48px; margin-bottom: 24px; display: block;
    filter: drop-shadow(0 4px 16px rgba(245, 158, 11, 0.2));
}
.support-title {
    font-size: 26px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 20px;
    background: linear-gradient(135deg, #FCD34D 0%, #F59E0B 50%, #D97706 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.support-body {
    font-size: 15px; color: var(--text-secondary); line-height: 1.85;
    margin-bottom: 28px;
}
.support-buttons {
    display: flex; gap: 14px; justify-content: center;
    flex-wrap: wrap;
}
.support-btn {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 15px; font-weight: 700; padding: 14px 28px;
    border-radius: 100px; text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.support-btn--primary {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: #fff;
    box-shadow: 0 0 40px rgba(245,158,11,0.30);
}
.support-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 60px rgba(245,158,11,0.45);
    background: linear-gradient(135deg, #FBBF24, #F59E0B);
}
.support-btn--secondary {
    background: transparent;
    border: 1px solid rgba(245,158,11,0.35);
    color: #FCD34D;
    box-shadow: none;
}
.support-btn--secondary:hover {
    background: rgba(245,158,11,0.08);
    border-color: rgba(245,158,11,0.55);
    transform: translateY(-2px);
}
.support-note {
    font-size: 13px; color: var(--text-muted); margin-top: 20px;
    font-style: italic;
}

/* ─── Credit ─────────────────── */
.credit {
    max-width: 600px; margin: 80px auto; text-align: center;
    padding: 56px 40px 52px;
    background: rgba(30, 41, 59, 0.30);
    border: 1px solid var(--border);
    border-radius: 24px;
    transition: border-color 0.3s ease;
}
.credit:hover {
    border-color: rgba(59, 130, 246, 0.18);
}
.credit-emoji {
    font-size: 48px; margin-bottom: 24px; display: block;
    filter: drop-shadow(0 4px 16px rgba(59, 130, 246, 0.2));
}
.credit-title {
    font-size: 26px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.7) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.credit-body {
    font-size: 15px; color: var(--text-secondary); line-height: 1.85;
}

/* ─── Responsive ─────────────── */
@media (max-width: 480px) {
    .hero { padding: 100px 20px 60px; }
    .why, .guidelines, .review, .credit, .support { padding: 60px 20px; }
    .steps-section { padding: 60px 20px; }
    .guideline-card { flex-direction: column; gap: 12px; }
    .review-flow { flex-direction: column; }
    .review-arrow { transform: rotate(90deg); }
    .why-body { padding: 28px 24px; }
    .credit { margin: 48px 16px; padding: 40px 24px 36px; }
    .support { margin: 48px 16px; padding: 40px 24px 36px; }
    .support-title { font-size: 22px; }
}
@media (min-width: 1200px) {
    .why, .guidelines { max-width: 900px; }
    .steps-section { max-width: 1100px; }
    .steps { gap: 32px; }
    .step { max-width: 300px; }
}
