/* prayer-app.css - Daily Office Style */

/* ============================================
   1. CSS Variables & Base Styles
   ============================================ */
:root {
    /* Daily Office Green Theme */
    --primary-green: #4a7c59;
    --hover-green: #3d6648;
    --light-green: #e8f3ed;
    --border-green: #6b9f7f;
    
    /* Liturgical Colors (simplified) */
    --advent-purple: #5c4a72;
    --christmas-gold: #d4af37;
    --epiphany-green: #4a7c59;
    --lent-purple: #6b5b95;
    --easter-white: #f8f8f8;
    --pentecost-red: #c65d5d;
    --ordinary-green: #4a7c59;
    
    /* UI Colors */
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-muted: #999999;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f8f8;
    --bg-tertiary: #fafafa;
    --border-color: #dddddd;
    --border-light: #eeeeee;
    
    /* Typography */
    --font-serif: Georgia, 'Times New Roman', serif;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --font-size: 0.5 rem;
    
    /* Shadows (subtle) */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: var(--font-serif);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: normal;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

h1 {
    font-size: 1.875rem;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.25rem;
    color: var(--primary-green);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

h4 {
    font-size: 1.125rem;
    font-style: italic;
}

p {
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--hover-green);
    text-decoration: underline;
}

/* ============================================
   2. Layout Components
   ============================================ */

.app-container {
    max-width: 100%;
    margin: 0 auto;
    background: var(--bg-primary);
}

.content-wrapper {
    max-width: 936px;  /* Changed from 720px */
    margin: 0 auto;
    padding: 20px;
}
/* ============================================
   3. Header Styles (Simplified)
   ============================================ */

.app-header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 0;
}
.header-content {
    max-width: 936px;  /* Changed from 720px */
    margin: 0 auto;
    padding: 1.5rem 20px;
    text-align: center;
}

.header-brand {
    display: block;
}

.header-logo {
    display: none; /* Hide logo for cleaner look */
}

.header-title {
    font-size: 1.875rem;
    color: var(--text-primary);
    margin: 0;
    font-weight: normal;
    letter-spacing: -0.5px;
}

.header-subtitle {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin: 0.25rem 0 0;
    font-style: italic;
}

/* ============================================
   4. Navigation Bar (Simplified)
   ============================================ */

.nav-bar {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
}

.nav-content {
    max-width: 936px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.date-navigation {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    justify-content: center;
}

.nav-button {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: var(--bg-primary);
    color: var(--primary-green);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    text-decoration: none;
    font-size: 0.875rem;
    font-family: var(--font-sans);
    transition: all 0.2s ease;
    cursor: pointer;
}

.nav-button:hover {
    background: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
    text-decoration: none;
}

.current-date {
    font-size: 1rem;
    font-weight: normal;
    color: var(--text-primary);
    font-family: var(--font-serif);
    padding: 0.375rem 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 3px;
}

.prayer-links {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
}

/* ============================================
   5. Reading Card Styles (Simplified)
   ============================================ */

.readings-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 0;
    box-shadow: none;
    margin: 2rem auto;
    max-width: 936px;
}

.readings-header {
    padding: 1.5rem;
    text-align: center;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-light);
}

.readings-icon {
    display: none; /* Remove icon for cleaner look */
}

.readings-title {
    font-size: 1.5rem;
    margin: 0 0 0 0;  /* Removed top margin since no icon */
    color: var(--text-primary);
    font-weight: normal;
}

.readings-subtitle {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin: 0.5rem 0 0;
    font-style: italic;
}

.scripture-links {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
}

.scripture-link {
    padding: 0.25rem 0.625rem;
    background: var(--bg-primary);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 3px;
    font-size: 0.8125rem;
    font-family: var(--font-sans);
    border: 1px solid var(--border-color);
}

.scripture-link:hover {
    background: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
}

/* ============================================
   6. Content Typography (Daily Office Style)
   ============================================ */

.prayer-content {
    padding: 2rem;
    max-width: 100%;
    margin: 0 auto;
    font-family: var(--font-serif);
    font-size: 1rem;
    line-height: 1.8;
}

.prayer-section {
    margin-bottom: 2rem;
}

.prayer-section h3 {
    font-size: 1.125rem;
    color: var(--primary-green);
    margin: 2rem 0 1rem;
    padding: 0;
    border: none;
    font-weight: normal;
}

.prayer-section h4 {
    font-size: 1rem;
    color: var(--text-primary);
    font-style: italic;
    margin: 1.5rem 0 0.75rem;
    font-weight: normal;
}

/* Scripture passages */
.scripture-passage {
    background: transparent;
    border-left: 3px solid var(--primary-green);
    padding: 0 0 0 1rem;
    margin: 1.5rem 0;
    border-radius: 0;
}

.scripture-reference {
    font-style: italic;
    color: var(--text-secondary);
    font-size: 0.5rem;
    margin-top: 0.5rem;
}

/* Verse numbers 
.verse-number, 
sup {
    color: var(--text-muted);
    font-size: var(--font-size) !important; 
    font-weight:100;
    vertical-align: super;
    line-height: 0;
    margin-right: 1px;
}

/* Prayer text */
.prayer-text {
    line-height: 1.8;
    margin: 1rem 0;
}
.verse-num {
    font-size: 22pt !important;
    font-weight:100;
    vertical-align: super;
    line-height: 0;
    margin-right: 1px;    
    color: #909090 !important;
}

/* Responses and versicles */
.response,
.versicle {
    font-style: italic;
    color: var(--text-secondary);
    margin: 0.5rem 0;
}

strong {
    font-weight: 600;
    color: var(--text-primary);
}

/* Inline prayer elements */
h3[style*="display: inline"],
h4[style*="display: inline"] {
    display: inline;
    font-size: 1rem;
    color: var(--primary-green);
    margin: 0;
}

/* ============================================
   7. Interactive Elements (Simplified)
   ============================================ */

.control-panel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: var(--shadow-md);
    padding: 0.75rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.control-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    font-size: 0.8125rem;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: all 0.2s ease;
}

.control-button:hover {
    background: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
}

.control-button.active {
    background: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
}

.control-button svg {
    width: 14px;
    height: 14px;
}

.control-label {
    font-size: 0.8125rem;
}

.font-size-control {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem;
    background: var(--bg-secondary);
    border-radius: 3px;
}

.font-size-slider {
    width: 100px;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
}

.font-size-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: var(--primary-green);
    border-radius: 50%;
    cursor: pointer;
}

.font-size-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: var(--primary-green);
    border-radius: 50%;
    cursor: pointer;
}

/* Simplified buttons */
.GFG {
    background: var(--bg-primary);
    border: 1px solid var(--primary-green);
    color: var(--primary-green);
    padding: 0.375rem 0.875rem;
    text-align: center;
    display: inline-block;
    font-size: 0.875rem;
    font-family: var(--font-sans);
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.2s ease;
    margin: 0.25rem;
}

.GFG:hover {
    background: var(--primary-green);
    color: white;
}

/* ============================================
   8. Dark Mode Styles
   ============================================ */

body.dark-mode {
    --text-primary: #e5e5e5;
    --text-secondary: #b0b0b0;
    --text-muted: #808080;
    --bg-primary: #1a1a1a;
    --bg-secondary: #252525;
    --bg-tertiary: #2a2a2a;
    --border-color: #404040;
    --border-light: #333333;
    --primary-green: #6b9f7f;
    --hover-green: #7fb091;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.dark-mode .app-header,
.dark-mode .readings-card,
.dark-mode .control-panel {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

.dark-mode .nav-bar {
    background: var(--bg-tertiary);
}

.dark-mode .scripture-link,
.dark-mode .nav-button,
.dark-mode .control-button,
.dark-mode .current-date,
.dark-mode .GFG {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.dark-mode .scripture-link:hover,
.dark-mode .nav-button:hover,
.dark-mode .control-button:hover,
.dark-mode .GFG:hover {
    background: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
}

.dark-mode .scripture-passage {
    border-left-color: var(--primary-green);
}

/* ============================================
   9. Liturgical Season Themes (Subtle)
   ============================================ */

/* Remove gradient backgrounds, use subtle border colors */
.season-advent .readings-header {
    background: var(--bg-primary);
    border-bottom: 2px solid var(--advent-purple);
}

.season-christmas .readings-header {
    background: var(--bg-primary);
    border-bottom: 2px solid var(--christmas-gold);
}

.season-epiphany .readings-header {
    background: var(--bg-primary);
    border-bottom: 2px solid var(--epiphany-green);
}

.season-lent .readings-header {
    background: var(--bg-primary);
    border-bottom: 2px solid var(--lent-purple);
}

.season-easter .readings-header {
    background: var(--bg-primary);
    border-bottom: 2px solid var(--border-color);
}

.season-pentecost .readings-header {
    background: var(--bg-primary);
    border-bottom: 2px solid var(--pentecost-red);
}

.season-ordinary .readings-header {
/*    background: var(--bg-primary);  */
    border-bottom: 2px solid var(--ordinary-green);
}

/* ============================================
   10. Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .content-wrapper {
        padding: 15px;
    }
    
    .header-content {
        padding: 1.25rem 15px;
    }
    
    .header-title {
        font-size: 1.5rem;
    }
    
    .nav-content {
        padding: 0 15px;
    }
    
    .date-navigation {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .current-date {
        width: 100%;
        text-align: center;
        order: -1;
    }
    
    .readings-card {
        margin: 1rem 0;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .prayer-content {
        padding: 1.5rem 1rem;
    }
    
    .control-panel {
        bottom: 10px;
        right: 10px;
        left: 10px;
        flex-direction: row;
        justify-content: space-around;
        padding: 0.5rem;
    }
    
    .control-button {
        padding: 0.375rem 0.5rem;
    }
    
    .control-label {
        display: none;
    }
    
    .font-size-control {
        display: none;
    }
}

@media (max-width: 480px) {
    .header-title {
        font-size: 1.25rem;
    }
    
    .header-subtitle {
        font-size: 0.875rem;
    }
    
    .readings-title {
        font-size: 1.25rem;
    }
    
    .prayer-content {
        font-size: 0.9375rem;
        padding: 1rem;
    }
    
    .nav-button {
        padding: 0.375rem 0.625rem;
        font-size: 0.8125rem;
    }
}

/* ============================================
   11. Print Styles
   ============================================ */

@media print {
    .app-header,
    .nav-bar,
    .control-panel,
    .scripture-links,
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 11pt;
        line-height: 1.6;
        color: black;
        background: white;
    }
    
    .content-wrapper {
        max-width: 100%;
        padding: 0;
    }
    
    .readings-card {
        box-shadow: none;
        border: none;
        margin: 0;
    }
    
    .readings-header {
        border-bottom: 1px solid black;
        padding: 0.5rem 0;
    }
    
    .prayer-content {
        padding: 1rem 0;
    }
    
    h3 {
        color: black;
        page-break-after: avoid;
    }
    
    .scripture-passage {
        border-left: 2px solid black;
        page-break-inside: avoid;
    }
}

/* ============================================
   12. Utility Classes
   ============================================ */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

.text-muted {
    color: var(--text-muted);
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Focus styles for accessibility */
:focus-visible {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

/* Remove focus outline for mouse users */
:focus:not(:focus-visible) {
    outline: none;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background: var(--light-green);
    color: var(--text-primary);
}

::-moz-selection {
    background: var(--light-green);
    color: var(--text-primary);
}
