/* Liturgia Viva Plugin Styles (Spanish) - v2.4.1 (Adapted) */

/* 1. Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,700;1,400&family=DM+Serif+Display&display=swap');

/* 2. Typography and Layout Enhancements */
.la-entry-es, .la-search-page-container-es {
    font-family: 'DM Sans', sans-serif;
    line-height: 1.8;
    color: #333;
}

.la-container-es { 
    width: 100%; 
    max-width: 800px; 
    margin: 2rem auto; 
    padding: 1rem;
}

.la-entry-es { 
    border: 1px solid #e0e0e0; 
    border-radius: 8px; 
    padding: 2em; 
    background-color: #ffffff; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.05); 
}

.la-header-es { 
    text-align: center; 
    border-bottom: 2px solid #f0f0f0; 
    padding-bottom: 1.5em; 
    margin-bottom: 2em; 
}

.la-header-es .la-title-es, .la-search-page-container-es .page-title {
    font-family: 'DM Serif Display', serif;
    font-size: 3.2em;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 0.25em;
    color: #333;
}

.la-header-es .la-theme-es {
    font-family: 'DM Sans', sans-serif;
    font-style: italic;
    font-size: 1.5em;
    color: #666;
    margin-top: 0;
    margin-bottom: 1.5em;
    line-height: 1.4;
    font-weight: normal;
}

.la-alt-link-es { 
    margin-top: 1em; 
    font-size: 0.9em; 
    color: #555; 
}

.la-cycle-info-es { 
    font-family: 'DM Sans', sans-serif;
    margin-top: 1em; 
    font-size: 0.9em; 
    padding: 10px 15px; 
    border-radius: 20px; 
    display: inline-block; 
    font-weight: bold; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); 
    transition: all 0.3s ease; 
}

.la-content-es h3, .la-section-es h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.8em;
    font-weight: 400;
    color: #444;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5em;
    margin-top: 2em;
    margin-bottom: 1em;
}

.la-section-es { 
    margin-bottom: 2.5em; 
}

.la-reference-es { 
    font-weight: bold; 
    font-style: italic; 
    font-size: 1.1em; 
}

.la-reference-es a {
    font-weight: bold;
    text-decoration: none;
    color: #0073aa;
    font-style: italic;
}

.la-reference-es a:hover {
    text-decoration: underline;
}

.la-reading-es .bible-passage-shortcode-es { 
    background-color: transparent; 
    border-left: 3px solid #f0f0f0; 
    padding: 0 0 0 1.5em; 
    margin: 1em 0 0 0; 
}

.la-reading-es .bible-passage-shortcode-es h4 { 
    display: none; 
}

.la-passage-text-es, .la-manual-text-es { 
    line-height: 1.7; 
    font-size: 1.1em; 
}

a.la-passage-link-es { 
    color: inherit; 
    text-decoration: none; 
}

.la-alt-celebrations-es { 
    text-align: center; 
    margin-top: 1em; 
    padding: 0.75em; 
    background-color: #f9f9f9; 
    border: 1px dashed #ddd; 
    border-radius: 4px; 
    font-size: 0.9em; 
}

.la-alt-celebrations-es p { 
    margin: 0 0 0.5em 0; 
}

.la-alt-celebrations-es ul { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
}

.la-alt-celebrations-es ul li { 
    display: inline; 
}

.la-alt-celebrations-es ul li:not(:last-child)::after { 
    content: ' | '; 
    margin: 0 5px; 
}

.la-reading-intro-es {
    font-style: italic;
    color: #555;
    margin: -0.5em 0 1.5em 0;
    padding-left: 1em;
    border-left: 3px solid #ddd;
}

/* 3. Social Share & Print Icons */
.la-share-buttons-es {
    margin-top: 2em;
    padding-top: 1.5em;
    border-top: 1px solid #eee;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.la-share-buttons-es .share-label-es {
    font-family: 'DM Sans', sans-serif;
    font-weight: bold;
    margin-right: 10px;
    font-size: 0.9em;
    color: #555;
}

.la-share-icon-button-es {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    color: #fff !important;
    background-color: #333;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out, transform 0.2s ease;
}

.la-share-icon-button-es:hover {
    background-color: #1a1a1a;
    transform: translateY(-2px);
}

.la-share-icon-button-es svg {
    width: 20px;
    height: 20px;
}

/* 4. Day Navigation Links */
.la-day-navigation-es {
    display: flex;
    justify-content: space-between;
    margin-top: 2em;
    padding: 1.5em 0;
    border-top: 1px solid #eee;
    font-family: 'DM Sans', sans-serif;
    font-weight: bold;
}

.la-day-navigation-es a {
    text-decoration: none;
    color: #0073aa;
    transition: color 0.2s ease-in-out;
}

.la-day-navigation-es a:hover {
    color: #333;
}

.la-day-navigation-es .nav-previous-es {
    text-align: left;
}

.la-day-navigation-es .nav-next-es {
    text-align: right;
}

/* 5. Calendar Styles */
#la-calendar-wrap-es { 
    margin: 2em 0; 
}

.la-cal-header-es { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 1em; 
}

.la-cal-month-name-es { 
    margin: 0; 
    font-size: 1.8em; 
    text-align: center; 
    font-family: 'DM Serif Display', serif;
}

.la-cal-nav-es a { 
    text-decoration: none; 
    padding: 8px 12px; 
    background-color: #f0f0f0; 
    border-radius: 4px; 
    color: #333; 
}

.la-cal-nav-es a:hover { 
    background-color: #e0e0e0; 
}

.la-cal-controls-es { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 1em; 
    flex-wrap: wrap; 
    gap: 10px; 
}

.la-cal-filter-form-es, .la-cal-search-form-es { 
    display: flex; 
    gap: 5px; 
}

.la-cal-controls-es input, .la-cal-controls-es select, .la-cal-controls-es button { 
    padding: 8px; 
    border: 1px solid #ddd; 
    border-radius: 4px; 
    font-size: 1em; 
}

.la-cal-search-form-es button { 
    background-color: #0073aa; 
    color: white; 
    border-color: #0073aa; 
}

.la-calendar-es { 
    width: 100%; 
    border-collapse: collapse; 
    table-layout: fixed; 
}

.la-calendar-es th, .la-calendar-es td { 
    border: 1px solid #ddd; 
    padding: 8px; 
    vertical-align: top; 
    text-align: left; 
}

.la-day-names-es th { 
    background-color: #f9f9f9; 
    font-weight: bold; 
    text-align: center; 
}

.la-day-es { 
    height: 120px; 
    position: relative; 
    transition: background-color: 0.3s; 
}

.la-day-number-es { 
    font-size: 0.8em; 
    font-weight: bold; 
    color: #888; 
}

.la-day-event-es { 
    display: block; 
    font-size: 0.9em; 
    padding: 4px; 
    margin-top: 4px; 
    border-radius: 3px; 
    text-decoration: none; 
    color: #333; 
    white-space: normal; 
    word-break: break-word; 
    -webkit-hyphens: none; 
    -ms-hyphens: none; 
    hyphens: none; 
}

.la-day-es-green { background-color: #e8f5e9; }
.la-day-es-white { background-color: #fafafa; }
.la-day-es-red { background-color: #ffebee; }
.la-day-es-violet { background-color: #f3e5f5; }
.la-day-es-rose { background-color: #fce4ec; }
.la-day-es-blue { background-color: #e3f2fd; }

.la-day-event-es.la-event-user-es { 
    background-color: rgba(255, 255, 255, 0.7); 
    border: 1px solid rgba(0, 0, 0, 0.05); 
    font-weight: bold; 
}

.la-day-event-es.la-event-user-es:hover { 
    background-color: #fff; 
    box-shadow: 0 1px 3px rgba(0,0,0,0.1); 
}

.la-day-event-es.la-event-auto-es { 
    font-style: italic; 
    background-color: transparent; 
}

/* 6. Search Page Styles */
.la-search-filters-es { 
    background: #f9f9f9; 
    padding: 1.5em; 
    border-radius: 5px; 
    margin-bottom: 2em; 
}

.la-search-filters-es form { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 15px; 
    align-items: flex-end; 
}

.la-search-filters-es .filter-group-es { 
    display: flex; 
    flex-direction: column; 
    flex-grow: 1; 
}

.la-search-filters-es label { 
    font-weight: bold; 
    margin-bottom: 5px; 
    font-size: 0.9em; 
}

.la-search-filters-es input, .la-search-filters-es select { 
    width: 100%; 
    padding: 8px; 
    border: 1px solid #ddd; 
    border-radius: 4px; 
}

.la-search-filters-es .filter-group-submit-es button { 
    width: 100%; 
    padding: 8px 15px; 
    background-color: #0073aa; 
    color: white; 
    border: 1px solid #0073aa; 
    border-radius: 4px; 
    cursor: pointer; 
}

.search-result-item-es { 
    border-bottom: 1px solid #eee; 
    padding: 1em 0; 
}

.search-result-item-es:last-child { 
    border-bottom: none; 
}

.result-title-es a { 
    text-decoration: none; 
    font-size: 1.2em; 
}

.result-date-es { 
    font-size: 0.9em; 
    color: #777; 
    margin-top: 5px; 
}

/* 7. Responsive Styles */
@media (max-width: 768px) { 
    .la-entry-es { 
        padding: 1.5em; 
    } 
    .la-header-es .la-title-es { 
        font-size: 2em; 
    } 
    .la-header-es .la-theme-es { 
        font-size: 1.3em; 
    } 
    .la-cal-month-name-es { 
        font-size: 1.4em; 
    } 
    .la-cal-controls-es, .la-search-filters-es form { 
        flex-direction: column; 
        align-items: stretch; 
    } 
    .la-cal-filter-form-es, .la-cal-search-form-es { 
        width: 100%; 
    } 
    .la-cal-search-form-es input[type="search"] { 
        flex-grow: 1; 
    } 
    .la-day-es { 
        height: 100px; 
        padding: 4px; 
    } 
    .la-day-event-es { 
        font-size: 0.8em; 
        max-height: 4.5em; 
        display: none; /* Hide long event titles */
    }
    .la-day-number-es {
        font-size: 1.2em;
        font-weight: bold;
        position: relative; 
    }
    td[data-link] .la-day-number-es::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 50%;
        transform: translateX(-50%);
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background-color: #333; 
    }
    td[data-link] {
        cursor: pointer;
        transition: background-color 0.2s ease-in-out;
    }
    td[data-link]:hover {
        background-color: rgba(0, 0, 0, 0.05);
    }
    .la-day-names-es th {
        font-size: 0.8em;
    }
}

@media (max-width: 600px) { 
    .la-header-es .la-title-es { 
        font-size: 1.8em; 
    } 
    .la-header-es .la-theme-es { 
        font-size: 1.2em; 
    } 
    .la-passage-text-es, .la-manual-text-es { 
        font-size: 1em; 
    } 
    .la-cal-header-es { 
        flex-direction: column; 
        gap: 10px; 
    } 
    .la-cal-month-name-es { 
        order: -1; 
    } 
    .la-day-es { 
        height: auto; 
        min-height: 80px; 
    } 
    .la-calendar-es th, .la-calendar-es td { 
        padding: 3px; 
    } 
}