/* Base styles for Words to Pray */

/* --- Brand palette (single source of truth) --- */
:root {
    --color-primary: #2c3e50;
    --color-primary-light: #3498db;
    --color-accent-warm: #e8a731;
    --color-success: #27ae60;
    --color-bg: #f8f6f3;
    --color-text-primary: #2d3436;
    --color-text-secondary: #636e72;

    --color-acts-adoration: #e8a731;
    --color-acts-confession: #3498db;
    --color-acts-thanksgiving: #27ae60;
    --color-acts-supplication: #8e7cc3;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    background-color: var(--color-bg);
    color: var(--color-text-primary);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Lora', Georgia, 'Times New Roman', serif;
}

/* --- Hero Section --- */
.hero-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #1a2332;
    position: relative;
    min-height: 70vh;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.hero-section h1 {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-section .lead {
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* --- ACTS Explainer --- */
.acts-explainer .card {
    border-top: 3px solid var(--bs-primary);
    text-align: center;
}

.acts-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: var(--bs-primary);
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
}

.acts-letter--a { background-color: var(--color-acts-adoration); }
.acts-letter--c { background-color: var(--color-acts-confession); }
.acts-letter--t { background-color: var(--color-acts-thanksgiving); }
.acts-letter--s { background-color: var(--color-acts-supplication); }

/* --- ACTS Stepper (guide detail) --- */
/* Per-step colors apply only when the step is active (Alpine sets bg-primary).
   Inactive/muted state continues to use Bootstrap's bg-light + text-muted. */
[data-acts-step="A"].bg-primary { background-color: var(--color-acts-adoration) !important; }
[data-acts-step="C"].bg-primary { background-color: var(--color-acts-confession) !important; }
[data-acts-step="T"].bg-primary { background-color: var(--color-acts-thanksgiving) !important; }
[data-acts-step="S"].bg-primary { background-color: var(--color-acts-supplication) !important; }

/* --- Quick Start Cards --- */
.quick-start-card {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 14px;
    padding: 16px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    color: inherit;
    min-height: 48px;
}

.quick-start-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: inherit;
}

.quick-start-card .card-body {
    padding: 0.5rem;
}

/* --- Secondary CTA --- */
.secondary-cta {
    background-color: var(--bs-light);
}

/* --- Sample Prayer Snippet --- */
.sample-prayer blockquote {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
}

/* --- Responsive --- */
@media (max-width: 767.98px) {
    .hero-section {
        min-height: 50vh;
    }

    .hero-section h1 {
        font-size: 1.75rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }
}

/* --- Alpine.js x-cloak support --- */
[x-cloak] {
    display: none !important;
}

/* --- Accessibility: Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        transition-delay: 0ms !important;
        animation-delay: 0ms !important;
    }
}
