/*
Theme Name: PrayerChain
Theme URI: https://prayerchain.org
Author: PrayerChain Team
Author URI: https://prayerchain.org
Description: A custom WordPress theme for PrayerChain.org - A prayer community platform for physical, emotional, and spiritual healing.
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: prayerchain
Tags: prayer, community, church, religious, custom-logo, custom-menu, featured-images

PrayerChain - Connecting Hearts in Prayer
*/

/* ===== CSS Variables ===== */
:root {
    --prayer-purple: #7c3aed;
    --prayer-deep-purple: #5b21b6;
    --prayer-light-purple: #a78bfa;
    --prayer-soft-purple: #ede9fe;
    --prayer-gold: #f59e0b;
    --prayer-warm: #fef3c7;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-white);
}

a {
    color: var(--prayer-purple);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--prayer-deep-purple);
}

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

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

@media (min-width: 768px) {
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.5rem; }
    h3 { font-size: 1.875rem; }
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* ===== Layout ===== */
.site-main {
    padding-top: 0; /* Hero sections handle their own spacing */
}

/* Fallback for pages without hero sections */
.site-main > .section:first-child,
.site-main > section:first-child:not(.page-hero):not(.live-prayer-hero):not(.hero) {
    padding-top: 120px;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

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

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

.section {
    padding: 4rem 0;
}

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

/* ===== 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: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--prayer-purple);
    color: white;
}

.btn-primary:hover {
    background: var(--prayer-deep-purple);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--prayer-purple);
    border: 2px solid var(--prayer-purple);
}

.btn-secondary:hover {
    background: var(--prayer-soft-purple);
    color: var(--prayer-deep-purple);
}

.btn-gold {
    background: var(--prayer-gold);
    color: white;
}

.btn-gold:hover {
    background: #d97706;
    color: white;
}

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

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ===== Header & Navigation ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--prayer-purple);
}

.site-logo img,
.header-logo-img {
    height: 50px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    border-radius: 8px;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    border-radius: 8px;
}

.main-nav {
    display: none;
}

@media (min-width: 1024px) {
    .main-nav {
        display: flex;
        align-items: center;
        gap: 2rem;
    }
}

.main-nav a {
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--prayer-purple);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--prayer-purple);
    transition: width 0.2s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

@media (min-width: 1024px) {
    .mobile-menu-toggle { display: none; }
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    padding: 2rem;
    z-index: 9999;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.mobile-menu.active {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 1rem 0;
    font-size: 1.25rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}

/* ===== Hero Section ===== */
.hero {
    padding-top: 120px;
    padding-bottom: 4rem;
    background: linear-gradient(135deg, var(--prayer-soft-purple) 0%, white 50%, var(--prayer-warm) 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    color: var(--prayer-purple);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.hero h1 {
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--prayer-purple) 0%, var(--prayer-deep-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--prayer-purple);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ===== Page Hero (for inner pages) ===== */
.page-hero {
    padding: 140px 0 4rem; /* 80px for header + 60px spacing */
    background: linear-gradient(135deg, var(--prayer-soft-purple) 0%, white 50%, var(--prayer-warm) 100%);
    text-align: center;
}

.page-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--prayer-purple) 0%, var(--prayer-deep-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (min-width: 768px) {
    .page-hero h1 {
        font-size: 3rem;
    }
    .page-hero {
        padding: 160px 0 5rem; /* 80px for header + 80px spacing */
    }
}

.page-hero .hero-subtitle,
.page-hero p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .page-hero .hero-subtitle,
    .page-hero p {
        font-size: 1.25rem;
    }
}

/* ===== Empty State ===== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    margin: 2rem 0;
}

.empty-state i {
    width: 64px;
    height: 64px;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* ===== Cards ===== */
.card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

/* Prayer Card */
.prayer-card {
    border-left: 4px solid var(--prayer-purple);
}

.prayer-card .category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--prayer-soft-purple);
    color: var(--prayer-purple);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: 0.75rem;
}

.prayer-card .name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.prayer-card .content {
    color: var(--text-secondary);
    line-height: 1.6;
}

.prayer-card .meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

/* ===== Prayer Wall ===== */
.prayer-wall {
    background: var(--bg-light);
}

.prayer-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .prayer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .prayer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== Forms ===== */
.form-group {
    margin-bottom: 1.5rem;
    width: 100%;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.form-label .required {
    color: #ef4444;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: white;
    -webkit-appearance: none;
    appearance: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--prayer-purple);
    box-shadow: 0 0 0 3px var(--prayer-soft-purple);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-light);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Form Row */
.form-row {
    display: grid;
    gap: 1rem;
    width: 100%;
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

/* Form Actions */
.form-actions {
    margin-top: 1.5rem;
}

.form-actions .btn {
    width: 100%;
}

@media (min-width: 768px) {
    .form-actions .btn {
        width: auto;
    }
}

/* Form Card Wrapper */
.form-card,
.contact-form-wrapper,
.auth-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 100%;
}

@media (min-width: 768px) {
    .form-card,
    .contact-form-wrapper,
    .auth-card {
        padding: 2rem;
    }
}

/* Checkbox and Radio */
.form-checkbox,
.form-radio {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

.form-checkbox input,
.form-radio input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.125rem;
    accent-color: var(--prayer-purple);
    flex-shrink: 0;
}

/* Input with Icon */
.input-with-icon {
    position: relative;
    width: 100%;
}

.input-with-icon .form-input {
    padding-left: 2.75rem;
}

.input-with-icon > i:first-child,
.input-with-icon > svg:first-child {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-light);
    pointer-events: none;
}

/* Newsletter Form */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.newsletter-form .form-input {
    width: 100%;
}

.newsletter-form .btn {
    width: 100%;
}

@media (min-width: 480px) {
    .newsletter-form {
        flex-direction: row;
    }
    
    .newsletter-form .form-input {
        flex: 1;
    }
    
    .newsletter-form .btn {
        width: auto;
        white-space: nowrap;
    }
}

/* Form Help Text */
.form-help {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-top: 0.375rem;
}

/* Form Error State */
.form-input.error,
.form-textarea.error,
.form-select.error {
    border-color: #ef4444;
}

.form-error {
    color: #ef4444;
    font-size: 0.8125rem;
    margin-top: 0.375rem;
}

/* Form Success State */
.form-input.success,
.form-textarea.success {
    border-color: #22c55e;
}

/* ===== Footer ===== */
.site-footer {
    background: var(--text-primary);
    color: white;
    padding: 4rem 0 2rem;
    border-top: 4px solid var(--prayer-purple);
    margin-top: 0;
}

/* Ensure consistent spacing before footer */
.site-main > section:last-of-type {
    margin-bottom: 0;
}

/* Remove bottom margin from last sections */
.section:last-of-type,
.cta-section,
.final-cta {
    margin-bottom: 0;
}

.footer-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .site-logo {
    color: white;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-light);
    font-size: 0.875rem;
}

.footer-heading {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-light);
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-light);
}

/* ===== Utilities ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-purple { color: var(--prayer-purple); }
.text-gold { color: var(--prayer-gold); }
.text-muted { color: var(--text-secondary); }

.bg-purple { 
    background: linear-gradient(135deg, var(--prayer-purple) 0%, var(--prayer-deep-purple) 100%);
}
.bg-light { background-color: var(--bg-light); }
.bg-soft-purple { background-color: var(--prayer-soft-purple); }

/* Final CTA Section - consistent across all pages */
.final-cta,
.cta-section {
    background: linear-gradient(135deg, var(--prayer-purple) 0%, var(--prayer-deep-purple) 100%);
    padding: 4rem 0;
}

.final-cta h2,
.cta-section h2 {
    color: white;
    margin-bottom: 1rem;
}

.final-cta p,
.cta-section p {
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 767px) {
    .final-cta,
    .cta-section {
        padding: 3rem 0;
    }
}

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }

.hidden { display: none; }
.flex { display: flex; }
.flex-center { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}
.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }

/* ===== Animations ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* ===== Live Prayer Section ===== */
.live-prayer-banner {
    background: linear-gradient(135deg, var(--prayer-purple) 0%, var(--prayer-deep-purple) 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.live-prayer-banner h2 {
    color: white;
    margin-bottom: 1rem;
}

.live-prayer-banner p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.live-dot {
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

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

/* Body when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Mobile Menu Toggle Animation */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Hidden classes for responsive */
.hidden-mobile {
    display: none;
}

@media (min-width: 768px) {
    .hidden-mobile {
        display: inline-flex;
    }
    .hidden-desktop {
        display: none;
    }
}

/* Mobile Header Adjustments */
@media (max-width: 1023px) {
    .header-inner {
        height: 60px;
    }
    
    .site-logo {
        font-size: 1.25rem;
    }
    
    .site-logo svg {
        width: 28px;
        height: 28px;
    }
    
    .site-logo img,
    .header-logo-img {
        height: 40px;
        max-width: 150px;
    }
    
    .footer-logo-img {
        height: 50px;
        max-width: 160px;
    }
    
    .header-actions .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }
    
    .header-actions .btn-sm {
        padding: 0.4rem 0.6rem;
    }
    
    .user-greeting {
        display: none;
    }
}

/* Mobile Menu Enhancements */
@media (max-width: 1023px) {
    .mobile-menu {
        top: 60px;
        overflow-y: auto;
    }
    
    .mobile-nav-links {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .mobile-nav-links li {
        border-bottom: 1px solid var(--border-color);
    }
    
    .mobile-nav-links a {
        display: block;
        padding: 1rem 0;
        font-size: 1.125rem;
        color: var(--text-primary);
        text-decoration: none;
    }
    
    .mobile-nav-links a:hover {
        color: var(--prayer-purple);
    }
    
    .mobile-menu-actions {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
        padding-top: 1rem;
        border-top: 1px solid var(--border-color);
    }
    
    .mobile-menu-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Mobile Hero Adjustments */
@media (max-width: 767px) {
    .hero {
        padding-top: 80px;
        padding-bottom: 2rem;
        min-height: auto;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    /* Page Heroes */
    .page-hero,
    section[class*="-hero"] {
        padding: 100px 1rem 3rem !important;
    }
    
    .page-hero h1,
    section[class*="-hero"] h1 {
        font-size: 1.75rem !important;
    }
    
    .hero-subtitle {
        font-size: 0.9375rem;
    }
}

/* Mobile Typography */
@media (max-width: 767px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

/* Mobile Cards and Grids */
@media (max-width: 767px) {
    .prayer-grid,
    .teachings-grid,
    .resources-grid,
    .testimonials-grid {
        grid-template-columns: 1fr !important;
    }
    
    .card,
    .prayer-card {
        margin-bottom: 1rem;
    }
}

/* Mobile Forms */
@media (max-width: 767px) {
    .form-row {
        grid-template-columns: 1fr !important;
    }
    
    .auth-container {
        grid-template-columns: 1fr !important;
    }
    
    .auth-card {
        padding: 1.5rem;
    }
    
    .auth-side {
        display: none !important;
    }
    
    .contact-grid,
    .donate-grid,
    .submit-prayer-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Mobile Buttons */
@media (max-width: 767px) {
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .btn-full-mobile {
        width: 100%;
    }
}

/* Mobile Footer */
@media (max-width: 767px) {
    .footer-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
    }
    
    .footer-brand {
        max-width: 100%;
    }
    
    .site-footer {
        padding: 3rem 0 1.5rem;
    }
}

/* Mobile Map */
@media (max-width: 767px) {
    #prayer-map {
        height: 300px !important;
    }
}

/* Tablet Adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .page-hero h1 {
        font-size: 2.25rem;
    }
    
    .prayer-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Page-Specific Grids */
@media (max-width: 767px) {
    /* Healing Prayers */
    .healing-grid {
        grid-template-columns: 1fr !important;
    }
    
    .healing-card {
        margin-bottom: 1rem;
    }
    
    .hero-search .search-input-wrapper {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .hero-search .search-input {
        width: 100%;
    }
    
    .hero-search .btn {
        width: 100%;
    }
    
    /* Filters */
    .filters-section {
        padding: 1rem 0;
    }
    
    .illness-filters,
    .filter-pills {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .filter-pill {
        font-size: 0.8125rem;
        padding: 0.5rem 0.75rem;
    }
    
    /* Volunteer */
    .roles-grid {
        grid-template-columns: 1fr !important;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr !important;
    }
    
    .apply-wrapper {
        padding: 1.5rem;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr !important;
    }
    
    /* Donate */
    .ways-grid {
        grid-template-columns: 1fr !important;
    }
    
    .amount-buttons {
        flex-wrap: wrap;
    }
    
    .amount-btn {
        flex: 1 1 calc(33% - 0.5rem);
        min-width: 80px;
    }
    
    .donation-amounts,
    .donation-frequency,
    .payment-methods,
    .other-methods {
        padding: 1rem 1.25rem;
    }
    
    /* Submit Prayer */
    .submit-form-section {
        padding: 1.5rem;
    }
    
    .sidebar-card {
        padding: 1.25rem;
    }
    
    /* Contact */
    .faq-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Live Prayer */
    .expect-grid {
        grid-template-columns: 1fr !important;
    }
    
    .live-works-grid {
        grid-template-columns: 1fr !important;
    }
    
    .join-card {
        margin-top: 2rem;
    }
    
    /* Prayer Wall Map */
    .map-container {
        flex-direction: column;
    }
    
    .map-stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        padding: 1rem;
    }
    
    /* Steps Grid */
    .steps-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Testimonials */
    .testimonial-card {
        padding: 1.5rem;
    }
    
    /* Newsletter */
    .newsletter-card {
        padding: 1.5rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form .form-input {
        min-width: 100%;
    }
    
    /* Prayer of Day */
    .prayer-of-day-card {
        padding: 1.5rem;
    }
}

/* Small Mobile (< 480px) */
@media (max-width: 479px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .page-hero h1,
    section[class*="-hero"] h1 {
        font-size: 1.5rem !important;
    }
    
    .btn {
        padding: 0.625rem 1rem;
        font-size: 0.9375rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 1rem;
    }
    
    .form-input,
    .form-textarea,
    .form-select {
        padding: 0.75rem;
        font-size: 16px; /* Prevents iOS zoom */
    }
    
    .auth-card {
        padding: 1.25rem;
    }
    
    .amount-btn {
        flex: 1 1 calc(50% - 0.5rem);
    }
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .mobile-menu,
    .btn {
        display: none !important;
    }
    
    .site-main {
        padding-top: 0 !important;
    }
    
    body {
        font-size: 12pt;
        color: black;
        background: white;
    }
}
