/**
 * All of the CSS for the public-facing functionality of the plugin.
 *
 * @link       https://viamedia.tech
 * @since      1.0.0
 *
 * @package    Daily_Office_WP
 */

/* Container */
.dowp-container {
    font-family: 'Georgia', serif;
    line-height: 1.5;
    max-width: 900px;
    margin: 2em auto;
    padding: 0 1em;
    color: #333;
}

/* Full-width container */
.dowp-container-full-width {
    max-width: none;
    width: 100%;
}

/* Header */
.dowp-header {
    text-align: center;
    margin-bottom: 2em;
    border-bottom: 1px solid #ddd;
    padding-bottom: 1em;
}

.dowp-title {
    font-size: 2.2em;
    margin-bottom: 0.5em;
    color: #2e4172;
}

.dowp-season {
    font-style: italic;
    margin-bottom: 1em;
    font-size: 1.2em;
    color: #666;
}

/* Display Controls */
.dowp-display-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1em;
    margin-top: 1em;
}

.dowp-display-date {
    font-weight: bold;
    padding: 0.5em;
    border-radius: 4px;
    background-color: #f8f8f8;
}

.dowp-service-selector {
    padding: 0.5em;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    font-size: 1em;
}

.dowp-font-size-controls {
    display: flex;
    gap: 0.5em;
}

.dowp-font-size-controls button {
    background-color: #f8f8f8;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 0.5em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dowp-font-size-controls button:hover {
    background-color: #e8e8e8;
}

/* Content */
.dowp-content {
    position: relative;
}

/* Sections */
.dowp-section {
    margin-bottom: 2em;
    padding-bottom: 1em;
    border-bottom: 1px dotted #ddd;
}

.dowp-section:last-child {
    border-bottom: none;
}

.dowp-section-title {
    font-size: 1.5em;
    color: #2e4172;
    margin-bottom: 1em;
    padding-bottom: 0.25em;
    border-bottom: 2px solid #e8e8e8;
}

/* People and Officiant */
.dowp-officiant,
.dowp-people {
    margin-bottom: 1em;
    line-height: 1.6;
}

.dowp-officiant {
    font-weight: bold;
}

.dowp-people {
    margin-left: 2em;
    font-style: italic;
}

.dowp-unison {
    margin: 1em 0;
    padding: 1em;
    background-color: #f8f8f8;
    border-left: 4px solid #ddd;
    line-height: 1.6;
}

/* Rubrics */
.dowp-rubric {
    font-style: italic;
    color: #777;
    margin: 1em 0;
    padding: 0.5em;
    background-color: #f8f8f8;
    border-left: 4px solid #b31b1b;
    font-size: 0.9em;
}

/* Scripture */
.dowp-scripture {
    margin: 1.5em 0;
    padding: 1em;
    background-color: #f9f9f9;
    border-left: 4px solid #2e4172;
}

.dowp-scripture-reference {
    font-weight: bold;
    margin-bottom: 0.5em;
    color: #2e4172;
}

.dowp-scripture-text {
    line-height: 1.8;
}

.dowp-scripture-error {
    color: #b31b1b;
    font-style: italic;
    padding: 1em;
    border: 1px dashed #b31b1b;
    margin: 1em 0;
}

/* Psalms */
.dowp-psalm {
    margin: 1.5em 0;
}

.dowp-psalm-title {
    font-size: 1.2em;
    margin-bottom: 0.5em;
    color: #2e4172;
}

.dowp-psalm-text {
    margin-bottom: 1em;
    line-height: 1.8;
}

.dowp-psalm-gloria {
    font-style: italic;
    margin-top: 1em;
    padding-top: 0.5em;
    border-top: 1px solid #eee;
}

/* Canticles */
.dowp-canticle,
.dowp-venite,
.dowp-light,
.dowp-nunc-dimittis {
    margin: 1.5em 0;
    padding: 1em;
    background-color: #f9f9f9;
    border-left: 4px solid #e8aa14;
}

.dowp-canticle-title,
.dowp-venite-title,
.dowp-light-title,
.dowp-nunc-dimittis-title {
    font-size: 1.2em;
    margin-bottom: 1em;
    color: #333;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.5em;
}

.dowp-canticle-title em,
.dowp-venite-title em,
.dowp-light-title em,
.dowp-nunc-dimittis-title em {
    font-size: 0.9em;
    color: #666;
}

.dowp-canticle-title cite,
.dowp-venite-title cite,
.dowp-light-title cite,
.dowp-nunc-dimittis-title cite {
    display: block;
    font-size: 0.8em;
    color: #888;
    font-style: normal;
}

/* Navigation */
.dowp-navigation {
    display: flex;
    justify-content: center;
    gap: 1em;
    margin: 2em 0;
    padding: 1em 0;
    border-top: 1px solid #eee;
}

.dowp-nav-button {
    padding: 0.75em 1.5em;
    background-color: #2e4172;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.dowp-nav-button:hover {
    background-color: #1d2a4a;
}

.dowp-nav-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.dowp-scroll-top {
    background-color: #777;
}

.dowp-scroll-top:hover {
    background-color: #555;
}

/* Progress */
.dowp-progress-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1em;
}

.dowp-progress-bar {
    width: 100%;
    height: 8px;
    background-color: #eee;
    border-radius: 4px;
    margin-bottom: 0.5em;
    position: relative;
    overflow: hidden;
}

.dowp-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background-color: #2e4172;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.dowp-section-indicator {
    font-size: 0.9em;
    color: #666;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .dowp-container {
        margin: 1em;
        padding: 0;
    }
    
    .dowp-navigation {
        flex-direction: column;
        align-items: center;
    }
    
    .dowp-nav-button {
        width: 100%;
        justify-content: center;
    }
    
    .dowp-display-controls {
        flex-direction: column;
    }
    
    .dowp-officiant, 
    .dowp-people {
        margin-left: 0;
    }
}

/* Font Size Classes */
.dowp-font-small {
    font-size: 0.9em;
}

.dowp-font-medium {
    font-size: 1em;
}

.dowp-font-large {
    font-size: 1.2em;
}

/* Special Text Formatting */
.dowp-strikethrough {
    text-decoration: line-through;
    color: #999;
}

/* Seasonal Colors */
.dowp-season-advent {
    border-color: #5d478b; /* Purple */
}

.dowp-season-christmas {
    border-color: #fff; /* White */
}

.dowp-season-epiphany {
    border-color: #228b22; /* Green */
}

.dowp-season-lent {
    border-color: #800080; /* Purple */
}

.dowp-season-holy-week {
    border-color: #b31b1b; /* Red */
}

.dowp-season-easter {
    border-color: #fff; /* White */
}

.dowp-season-pentecost {
    border-color: #b31b1b; /* Red */
}

.dowp-season-ordinary {
    border-color: #228b22; /* Green */
}

/* Antiphon Styles */
.dowp-antiphon {
    text-align: center;
    font-weight: bold;
    margin: 1em 0;
    font-style: italic;
    color: #2e4172;
}