/* ==========================================
   MODERN BIBLE APP - PREMIUM DESIGN
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Premium Spiritual Color Palette */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #8b5cf6;
    --accent-gold: #fbbf24;
    --accent-rose: #f472b6;

    /* Sophisticated Neutrals */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --text-light: #cbd5e1;

    /* Backgrounds */
    --bg-overlay: rgba(255, 255, 255, 0.7);
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.9);

    /* Shadows & Effects */
    --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-strong: 0 12px 48px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.15);

    /* Spacing System */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 32px;
    --space-xl: 48px;
    --space-2xl: 64px;

    /* Border Radius */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-full: 9999px;
}

/* ==========================================
   BASE STYLES
   ========================================== */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg,
        #667eea 0%,
        #764ba2 25%,
        #f093fb 50%,
        #4facfe 75%,
        #00f2fe 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
    padding: var(--space-md);
    line-height: 1.6;
    color: var(--text-primary);
    position: relative;
    overflow-x: hidden;
}

/* Animated Background */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Floating particles effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Desktop: wider container */
@media (min-width: 769px) {
    .container {
        max-width: 1200px;
    }
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */

header {
    text-align: center;
    margin-bottom: var(--space-lg);
    padding-top: var(--space-md);
}

header h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 700;
    background: linear-gradient(135deg, #1e293b 0%, #4f46e5 50%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-xs);
    letter-spacing: -0.02em;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    animation: fadeInDown 0.8s ease-out;
}

.tagline {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

h2 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* ==========================================
   GLASSMORPHISM CARDS
   ========================================== */

.card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInScale 0.6s ease-out;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-strong), var(--shadow-glow);
}

/* ==========================================
   FORM ELEMENTS
   ========================================== */

.info-text {
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.small-text {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: var(--space-sm);
    line-height: 1.6;
}

.link {
    color: var(--primary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
    transition: all 0.3s ease;
    position: relative;
}

.link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.link:hover::after {
    width: 100%;
}

.link:hover {
    color: var(--primary-dark);
    transform: translateX(4px);
}

.input-group {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

input[type="password"],
input[type="text"] {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
    transition: all 0.3s ease;
    outline: none;
}

input:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    transform: translateY(-1px);
}

textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
    margin-bottom: var(--space-sm);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
    line-height: 1.6;
    transition: all 0.3s ease;
    outline: none;
}

textarea:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

textarea::placeholder {
    color: var(--text-muted);
}

/* ==========================================
   BUTTONS
   ========================================== */

.btn {
    padding: 14px 28px;
    border: none;
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    background: var(--text-light);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.5);
    color: var(--text-primary);
    border: 2px solid rgba(99, 102, 241, 0.2);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.125rem;
}

/* ==========================================
   LOADING STATE
   ========================================== */

.hidden {
    display: none;
}

#loading {
    text-align: center;
    padding: var(--space-lg);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    margin: var(--space-md) 0;
    animation: fadeInScale 0.4s ease-out;
}

#loading p {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(99, 102, 241, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto var(--space-sm);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================
   DASHBOARD GRID
   ========================================== */

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    animation: fadeInScale 0.5s ease-out;
}

/* Desktop: 2-column grid */
@media (min-width: 769px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
}

/* ==========================================
   TILES
   ========================================== */

.tile {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(24px) saturate(200%);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-medium);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    position: relative;
    overflow: hidden;
    min-height: 160px;
}

.tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.tile:hover::before {
    transform: scaleX(1);
}

.tile:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-strong), 0 0 48px rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.3);
}

.tile-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: var(--space-xs);
    transition: all 0.3s ease;
}

.tile:hover .tile-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
}

.tile-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.tile-preview {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
    flex: 1;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tile-action {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    transition: all 0.3s ease;
}

.tile:hover .tile-action {
    gap: var(--space-sm);
    color: var(--primary-dark);
}

/* Tile variants */
.verse-tile {
    border-left: 5px solid var(--primary);
}

.wide-tile {
    grid-column: span 2;
}

.practical-tile {
    border-left: 5px solid #ec4899;
}

.practical-tile .tile-icon {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(139, 92, 246, 0.1));
    color: #ec4899;
}

.prayer-tile {
    border-left: 5px solid #667eea;
}

.prayer-tile .tile-icon {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    color: #667eea;
}

/* ==========================================
   VERSE CARDS
   ========================================== */

.verse-card-container {
    margin-bottom: var(--space-lg);
}

.verse-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(24px) saturate(200%);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-left: 5px solid var(--primary);
    transition: all 0.4s ease;
    animation: slideInUp 0.5s ease-out;
}

.verse-card:hover {
    box-shadow: var(--shadow-strong), 0 0 48px rgba(99, 102, 241, 0.15);
}

.verse-reference {
    font-family: 'Playfair Display', serif;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
    display: block;
    letter-spacing: -0.01em;
}

.verse-content {
    margin-bottom: var(--space-sm);
}

.verse-text {
    font-size: 1.0625rem;
    line-height: 1.7;
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
    font-weight: 400;
}

.verse-highlight {
    background: linear-gradient(120deg, rgba(251, 191, 36, 0.15) 0%, rgba(251, 191, 36, 0.25) 100%);
    padding: 6px 10px;
    border-radius: 8px;
    font-weight: 500;
    position: relative;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.1);
}

.context-verse {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: var(--space-xs);
    opacity: 0.85;
}

.verse-number {
    display: inline-block;
    font-weight: 700;
    color: var(--primary);
    margin-right: var(--space-xs);
    font-size: 0.9375rem;
    min-width: 24px;
}

/* ==========================================
   EXPLANATION SECTION
   ========================================== */

.explanation {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    margin-top: var(--space-sm);
    border-left: 3px solid var(--secondary);
}

.explanation h3 {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    font-size: 0.875rem;
    margin-bottom: var(--space-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.explanation p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.9375rem;
}

/* ==========================================
   MODAL SYSTEM
   ========================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: var(--space-md);
    transition: all 0.3s ease;
    opacity: 0;
}

.modal-overlay.active {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    opacity: 1;
}

.modal-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(24px) saturate(180%);
    border-radius: var(--radius-lg);
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 1);
}

.modal-overlay.active .modal-box {
    transform: scale(1) translateY(0);
}

.modal-header {
    padding: var(--space-lg) var(--space-xl);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
}

.modal-header h2 {
    margin: 0;
    font-size: 1.75rem;
    color: var(--text-primary);
}

.close-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.close-btn:hover {
    background: var(--primary);
    color: white;
    transform: rotate(90deg);
}

.modal-body {
    padding: var(--space-xl);
    overflow-y: auto;
    max-height: calc(85vh - 100px);
}

.modal-body .verse-content {
    margin-bottom: var(--space-lg);
}

.modal-body .practical-content,
.modal-body .prayer-content {
    font-size: 1.0625rem;
    line-height: 1.9;
    color: var(--text-secondary);
}

/* ==========================================
   PRACTICAL THOUGHTS (Legacy)
   ========================================== */

.practical-thoughts {
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 50%, #6366f1 100%);
    color: white;
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
    box-shadow: var(--shadow-strong), 0 0 48px rgba(236, 72, 153, 0.3);
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.6s ease-out;
}

.practical-thoughts::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.practical-thoughts h2 {
    color: white;
    margin-bottom: var(--space-sm);
    position: relative;
    z-index: 1;
    font-size: 1.5rem;
}

.practical-text {
    font-size: 1rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
    font-weight: 400;
}

/* ==========================================
   PRAYER CARD
   ========================================== */

.prayer-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    box-shadow: var(--shadow-strong), 0 0 48px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.7s ease-out;
}

.prayer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.prayer-card h2 {
    color: white;
    margin-bottom: var(--space-sm);
    position: relative;
    z-index: 1;
    font-size: 1.5rem;
}

.prayer-text {
    font-size: 1.0625rem;
    line-height: 1.8;
    font-style: italic;
    position: relative;
    z-index: 1;
    font-weight: 300;
}

/* ==========================================
   ANIMATIONS
   ========================================== */

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

/* Desktop: Enhanced spacing and typography */
@media (min-width: 769px) {
    body {
        padding: var(--space-md) var(--space-xl);
    }

    header {
        margin-bottom: var(--space-md);
        padding-top: var(--space-md);
    }

    header h1 {
        font-size: 2.75rem;
        margin-bottom: var(--space-xs);
    }

    .tagline {
        font-size: 1.0625rem;
    }

    .card {
        padding: var(--space-lg);
        margin-bottom: var(--space-lg);
    }

    h2 {
        font-size: 1.5rem;
        margin-bottom: var(--space-sm);
    }

    .info-text {
        font-size: 0.9375rem;
        margin-bottom: var(--space-sm);
    }

    textarea {
        font-size: 1rem;
        min-height: 100px;
        padding: 16px 20px;
        margin-bottom: var(--space-sm);
    }

    input[type="password"],
    input[type="text"] {
        font-size: 1rem;
        padding: 14px 18px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9375rem;
    }

    .btn-large {
        padding: 14px 32px;
        font-size: 1rem;
    }

    .btn-secondary {
        margin-top: 0;
        margin-left: var(--space-sm);
    }

    .verse-reference {
        font-size: 1.5rem;
        margin-bottom: var(--space-sm);
    }

    .verse-text {
        font-size: 1.125rem;
        line-height: 1.8;
    }

    .context-verse {
        font-size: 1rem;
    }

    .tile {
        padding: var(--space-lg);
        min-height: 180px;
    }

    .tile-title {
        font-size: 1.25rem;
    }

    .tile-preview {
        font-size: 0.9375rem;
    }

    .modal-box {
        max-width: 900px;
    }

    .modal-header h2 {
        font-size: 1.75rem;
    }

    .modal-body {
        padding: var(--space-xl);
    }

    .practical-text,
    .prayer-text {
        font-size: 1.125rem;
        line-height: 1.9;
    }

    .explanation {
        margin-top: var(--space-sm);
        padding: var(--space-sm) var(--space-md);
    }

    .explanation p {
        font-size: 1rem;
    }

    .explanation h3 {
        margin-bottom: var(--space-xs);
    }

    #loading {
        padding: var(--space-xl);
        margin: var(--space-md) 0;
    }

    /* Make buttons inline on desktop */
    .card > .btn-large {
        display: inline-block;
    }

    .card > .btn-secondary {
        display: inline-block;
    }
}

/* Tablet and Mobile */
@media (max-width: 768px) {
    body {
        padding: var(--space-sm);
    }

    header {
        margin-bottom: var(--space-xl);
        padding-top: var(--space-md);
    }

    header h1 {
        font-size: 2.25rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .card {
        padding: var(--space-md);
        border-radius: var(--radius-md);
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .tile {
        min-height: 180px;
        padding: var(--space-md);
    }

    .tile-icon {
        width: 48px;
        height: 48px;
    }

    .tile-title {
        font-size: 1.125rem;
    }

    .wide-tile {
        grid-column: span 1;
    }

    .modal-box {
        max-height: 90vh;
        margin: var(--space-sm);
    }

    .modal-header {
        padding: var(--space-md) var(--space-lg);
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }

    .modal-body {
        padding: var(--space-lg);
        max-height: calc(90vh - 80px);
    }

    .verse-card {
        padding: var(--space-md);
    }

    .practical-thoughts,
    .prayer-card {
        padding: var(--space-md);
    }

    .input-group {
        flex-direction: column;
    }

    .btn-secondary {
        margin-top: var(--space-xs);
    }

    h2 {
        font-size: 1.5rem;
    }

    .verse-reference {
        font-size: 1.25rem;
    }

    .verse-text {
        font-size: 1.0625rem;
    }

    .practical-text,
    .prayer-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    :root {
        --space-xl: 32px;
        --space-2xl: 48px;
    }

    header h1 {
        font-size: 2rem;
    }

    .btn-large {
        padding: 16px 28px;
        font-size: 1rem;
    }
}

/* ==========================================
   ACCESSIBILITY
   ========================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
    border-radius: 4px;
}
