/* Parish Prayers - Main Stylesheet */

:root {
    /* Liturgical color palette */
    --navy: #1a2744;
    --navy-light: #2d3f5f;
    --gold: #c9a227;
    --gold-light: #e8d48b;
    --cream: #faf8f5;
    --white: #ffffff;
    --text: #333333;
    --text-light: #666666;
    
    /* Liturgical colors for calendar */
    --lit-green: #2e7d32;
    --lit-white: #f5f5f5;
    --lit-red: #c62828;
    --lit-violet: #6a1b9a;
    --lit-rose: #d81b60;
    --lit-black: #212121;
    
    /* Typography */
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-display: 'Cinzel', Georgia, serif;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
    font-family: var(--font-serif);
    font-size: 18px;
    line-height: 1.7;
    color: var(--text);
    background: var(--cream);
}

/* Layout */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    padding: 20px 0;
    border-bottom: 3px solid var(--gold);
}

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

.site-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-icon {
    width: 50px;
    height: 50px;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
    fill: var(--gold);
}

.site-title {
    font-family: var(--font-display);
    font-size: 28px;
    color: var(--white);
    letter-spacing: 2px;
}

.site-tagline {
    font-family: var(--font-serif);
    font-size: 14px;
    color: var(--gold-light);
    font-style: italic;
}

.header-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.header-nav a {
    color: var(--white);
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.2s;
}

.header-nav a:hover {
    color: var(--gold);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gold);
    color: var(--navy);
}

.btn-primary:hover {
    background: var(--gold-light);
}

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

.btn-secondary:hover {
    background: var(--gold);
    color: var(--navy);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
    opacity: 0.1;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: 48px;
    color: var(--white);
    margin-bottom: 20px;
    letter-spacing: 3px;
}

.hero p {
    font-size: 22px;
    color: var(--gold-light);
    font-style: italic;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.hero .btn-secondary {
    color: var(--white);
    border-color: var(--gold);
}

.hero .btn-secondary:hover {
    background: var(--gold);
    color: var(--navy);
}

/* Section styling */
.section {
    padding: 60px 0;
}

.section-alt {
    background: var(--white);
}

.section-title {
    font-family: var(--font-display);
    font-size: 32px;
    color: var(--navy);
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: 2px;
}

/* Sample Days Grid */
.samples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.sample-card {
    background: var(--white);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-left: 4px solid var(--gold);
    transition: transform 0.2s, box-shadow 0.2s;
}

.sample-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.sample-card-date {
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.sample-card-title {
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--navy);
    margin-bottom: 15px;
}

.sample-card-excerpt {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.liturgical-color {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}

.liturgical-color.green { background: var(--lit-green); }
.liturgical-color.white { background: var(--lit-white); border: 1px solid #ddd; }
.liturgical-color.red { background: var(--lit-red); }
.liturgical-color.violet { background: var(--lit-violet); }
.liturgical-color.rose { background: var(--lit-rose); }
.liturgical-color.black { background: var(--lit-black); }

/* Calendar */
.calendar-wrapper {
    background: var(--white);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.calendar-title {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--navy);
}

.calendar-nav {
    display: flex;
    gap: 10px;
}

.calendar-nav button {
    background: var(--cream);
    border: 1px solid var(--navy);
    color: var(--navy);
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 14px;
    transition: all 0.2s;
}

.calendar-nav button:hover {
    background: var(--navy);
    color: var(--white);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.calendar-day-header {
    background: var(--navy);
    color: var(--white);
    padding: 12px;
    text-align: center;
    font-family: var(--font-sans);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.calendar-day {
    background: var(--white);
    min-height: 100px;
    padding: 10px;
    position: relative;
}

.calendar-day.empty {
    background: var(--cream);
}

.calendar-day.today {
    background: #fff8e1;
}

.calendar-day.has-prayer {
    cursor: pointer;
}

.calendar-day.has-prayer:hover {
    background: #f5f5f5;
}

.calendar-day.locked {
    opacity: 0.6;
}

.calendar-day-number {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 5px;
}

.calendar-day-title {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.3;
}

.calendar-day-colors {
    position: absolute;
    bottom: 8px;
    left: 10px;
    display: flex;
    gap: 4px;
}

.calendar-day-colors .liturgical-color {
    width: 8px;
    height: 8px;
}

.calendar-day .lock-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--text-light);
    font-size: 12px;
}

.calendar-day .multi-indicator {
    position: absolute;
    bottom: 8px;
    right: 10px;
    background: var(--navy);
    color: var(--white);
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-family: var(--font-sans);
}

/* Prayer View */
.prayer-page {
    padding: 40px 0;
}

.prayer-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--gold);
}

.prayer-date {
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.prayer-title {
    font-family: var(--font-display);
    font-size: 36px;
    color: var(--navy);
    margin-bottom: 15px;
}

.prayer-readings {
    font-style: italic;
    color: var(--text-light);
}

.prayer-content {
    max-width: 700px;
    margin: 0 auto;
}

.prayer-content h2 {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--navy);
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gold-light);
}

.prayer-content h3 {
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--navy);
    margin: 30px 0 15px;
}

.prayer-content p {
    margin-bottom: 1em;
}

.prayer-content ul {
    margin: 20px 0;
    padding-left: 0;
    list-style: none;
}

.prayer-content li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
}

.prayer-content li::before {
    content: '✝';
    position: absolute;
    left: 0;
    color: var(--gold);
}

.prayer-content strong {
    color: var(--navy);
}

.prayer-content em {
    color: var(--text-light);
}

.prayer-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

/* Footer */
.site-footer {
    background: var(--navy);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    font-family: var(--font-sans);
    font-size: 14px;
}

.footer-content a {
    color: var(--gold);
    text-decoration: none;
}

.footer-content a:hover {
    text-decoration: underline;
}

.footer-tagline {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--gold-light);
    margin-top: 10px;
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--white);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 2px solid #e0e0e0;
    position: relative;
}

.pricing-card-featured {
    border: 2px solid var(--gold);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: var(--navy);
    padding: 5px 20px;
    border-radius: 20px;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.pricing-tier {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--navy);
    margin-bottom: 15px;
}

.pricing-amount {
    font-family: var(--font-display);
    font-size: 48px;
    color: var(--navy);
    margin-bottom: 5px;
}

.pricing-period {
    font-family: var(--font-sans);
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 25px;
}

.pricing-features {
    list-style: none;
    margin: 25px 0;
    text-align: left;
}

.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features li::before {
    content: '✓';
    color: var(--gold);
    font-weight: bold;
}

/* Content tier badges */
.tier-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
    vertical-align: middle;
}

.tier-badge-basic {
    background: #e3f2fd;
    color: #1565c0;
}

.tier-badge-premium {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    color: #f57f17;
    border: 1px solid var(--gold);
}

/* Sample page premium upsell banner */
.sample-premium-banner {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border: 1px solid #81c784;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 25px;
    font-family: var(--font-sans);
    font-size: 14px;
    color: #2e7d32;
}

.sample-premium-banner a {
    color: #1b5e20;
    font-weight: 600;
    margin-left: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .header-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .calendar-day {
        min-height: 80px;
        padding: 5px;
    }
    
    .calendar-day-title {
        display: none;
    }
    
    .prayer-title {
        font-size: 28px;
    }
}

/* Archive Section */
.archive-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

/* Pope's Intention */
.pope-intention {
    background: linear-gradient(135deg, #fff8e1 0%, #fffde7 100%);
    border: 1px solid var(--gold);
    border-left: 4px solid var(--gold);
    border-radius: 8px;
    padding: 20px 25px;
    margin-bottom: 30px;
}

.pope-intention-header {
    font-family: var(--font-sans);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--navy);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pope-intention-icon {
    font-size: 18px;
}

.pope-intention-text {
    font-family: var(--font-serif);
    font-size: 18px;
    font-style: italic;
    color: var(--text);
    line-height: 1.6;
    margin: 0;
}

.pope-intention-source {
    display: inline-block;
    margin-top: 12px;
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--gold);
    text-decoration: none;
}

.pope-intention-source:hover {
    text-decoration: underline;
}

.archive-month {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s;
}

.archive-month:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.archive-month-name {
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--navy);
}

.archive-month-count {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 5px;
}
