/* Liturgy Alive Plugin Styles - v2.4.1 */

/* 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-zh, .la-search-page-container-zh {
    font-family: 'DM Sans', sans-serif;
    line-height: 1.8;
    color: #333;
}

.la-header-zh .la-title-zh, .la-search-page-container-zh .page-title {
    font-family: 'DM Serif Display', serif;
    font-size: 3.2em;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 0.25em;
}

.la-header-zh .la-theme-zh {
    font-family: 'DM Sans', sans-serif;
    font-style: italic;
    font-size: 1.5em;
    color: #555;
    margin-top: 0;
    margin-bottom: 1.5em;
    line-height: 1.4;
}

.la-content-zh h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.8em;
    font-weight: 400;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5em;
    margin-top: 2em;
    margin-bottom: 1em;
}

.la-cycle-info-zh {
    font-family: 'DM Sans', sans-serif;
}

.la-reference-zh a {
    font-weight: bold;
    text-decoration: none;
    color: #0073aa;
    font-style: italic;
}
.la-reference-zh a:hover {
    text-decoration: underline;
}

/* 3. Redesigned Social Share & Print Icons */
.la-share-buttons-zh {
    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-zh .share-label {
    font-family: 'DM Sans', sans-serif;
    font-weight: bold;
    margin-right: 10px;
    font-size: 0.9em;
    color: #555;
}

.la-share-icon-button-zh {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%; /* Makes the buttons circular */
    color: #fff !important;
    background-color: #333; /* Uniform dark grey color */
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out, transform 0.2s ease;
}

.la-share-icon-button-zh:hover {
    background-color: #1a1a1a; /* Darker on hover */
    transform: translateY(-2px);
}

.la-share-icon-button-zh svg {
    width: 20px;
    height: 20px;
}

.la-container-zh { width: 100%; max-width: 800px; margin: 2rem auto; padding: 1rem; font-family: sans-serif; }
.la-entry-zh { 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-zh { text-align: center; border-bottom: 2px solid #f0f0f0; padding-bottom: 1.5em; margin-bottom: 2em; }
.la-title-zh { font-size: 2.5em; margin-bottom: 0.2em; color: #333; }
.la-theme-zh { font-size: 1.5em; font-style: italic; color: #666; margin-top: 0; font-weight: normal; }
.la-alt-link-zh { margin-top: 1em; font-size: 0.9em; color: #555; }
.la-cycle-info-zh { 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-section-zh { margin-bottom: 2.5em; }
.la-section-zh h3 { font-size: 1.4em; color: #444; border-bottom: 1px solid #eee; padding-bottom: 0.5em; margin-bottom: 1em; }
.la-reference-zh { font-weight: bold; font-style: italic; color: #0073aa; font-size: 1.1em; }
.la-reference-zh a { color: inherit; text-decoration: none; }
.la-reference-zh a:hover { text-decoration: underline; }
.la-reading-zh .bible-passage-shortcode { background-color: transparent; border-left: 3px solid #f0f0f0; padding: 0 0 0 1.5em; margin: 1em 0 0 0; }
.la-reading-zh .bible-passage-shortcode .bvm-passage-title { display: none; }
.la-passage-text-zh, .la-manual-text-zh { line-height: 1.7; font-size: 1.1em; }
.la-passage-link-zh { color: inherit; text-decoration: none; }
.la-alt-celebrations-zh { 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-zh p { margin: 0 0 0.5em 0; }
.la-alt-celebrations-zh ul { list-style: none; padding: 0; margin: 0; }
.la-alt-celebrations-zh ul li { display: inline; }
.la-alt-celebrations-zh ul li:not(:last-child)::after { content: ' | '; margin: 0 5px; }

/* 4. Calendar Styles */
#la-calendar-wrap-zh { margin: 2em 0; }
.la-cal-header-zh { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1em; }
.la-cal-month-name-zh { margin: 0; font-size: 1.8em; text-align: center; font-family: 'Noto Serif TC', serif; }
.la-cal-nav-zh a { text-decoration: none; padding: 8px 12px; background-color: #f0f0f0; border-radius: 4px; color: #333; }
.la-cal-nav-zh a:hover { background-color: #e0e0e0; }
.la-cal-controls-zh { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1em; flex-wrap: wrap; gap: 10px; }
.la-cal-filter-form-zh, .la-cal-search-form-zh { display: flex; gap: 5px; }
.la-cal-controls-zh input, .la-cal-controls-zh select, .la-cal-controls-zh button { padding: 8px; border: 1px solid #ddd; border-radius: 4px; font-size: 1em; }
.la-cal-search-form-zh button { background-color: #0073aa; color: white; border-color: #0073aa; }
.la-calendar-zh { width: 100%; border-collapse: collapse; table-layout: fixed; }
.la-calendar-zh th, .la-calendar-zh td { border: 1px solid #ddd; padding: 8px; vertical-align: top; text-align: left; }
.la-day-names-zh th { background-color: #f9f9f9; font-weight: bold; text-align: center; }
.la-day-zh { height: 120px; position: relative; transition: background-color: 0.3s; }
.la-day-number-zh { font-size: 0.8em; font-weight: bold; color: #888; }
.la-day-event-zh { 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-zh-green { background-color: #e8f5e9; }
.la-day-zh-white { background-color: #fafafa; }
.la-day-zh-red { background-color: #ffebee; }
.la-day-zh-violet { background-color: #f3e5f5; }
.la-day-zh-rose { background-color: #fce4ec; }
.la-day-zh-blue { background-color: #e3f2fd; }
.la-day-event-zh.la-event-user-zh { background-color: rgba(255, 255, 255, 0.7); border: 1px solid rgba(0, 0, 0, 0.05); font-weight: bold; }
.la-day-event-zh.la-event-user-zh:hover { background-color: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.la-day-event-zh.la-event-auto-zh { font-style: italic; background-color: transparent; }

/* 5. Search Page Styles */
.la-search-page-container-zh { max-width: 800px; margin: 2rem auto; }
.la-search-filters-zh { background: #f9f9f9; padding: 1.5em; border-radius: 5px; margin-bottom: 2em; }
.la-search-filters-zh form { display: flex; flex-wrap: wrap; gap: 15px; align-items: flex-end; }
.la-search-filters-zh .filter-group-zh { display: flex; flex-direction: column; flex-grow: 1; }
.la-search-filters-zh label { font-weight: bold; margin-bottom: 5px; font-size: 0.9em; }
.la-search-filters-zh input, .la-search-filters-zh select { width: 100%; padding: 8px; border: 1px solid #ddd; border-radius: 4px; }
.la-search-filters-zh .filter-group-submit-zh button { width: 100%; padding: 8px 15px; background-color: #0073aa; color: white; border: 1px solid #0073aa; border-radius: 4px; cursor: pointer; }
.search-result-item-zh { border-bottom: 1px solid #eee; padding: 1em 0; }
.search-result-item-zh:last-child { border-bottom: none; }
.result-title-zh a { text-decoration: none; font-size: 1.2em; }
.result-date-zh { font-size: 0.9em; color: #777; margin-top: 5px; }

@media (max-width: 768px) { .la-entry-zh { padding: 1.5em; } .la-title-zh { font-size: 2em; } .la-theme-zh { font-size: 1.3em; } .la-cal-month-name-zh { font-size: 1.4em; } .la-cal-controls-zh, .la-search-filters-zh form { flex-direction: column; align-items: stretch; } .la-cal-filter-form-zh, .la-cal-search-form-zh { width: 100%; } .la-cal-search-form-zh input[type="search"] { flex-grow: 1; } .la-day-zh { height: 100px; padding: 4px; } .la-day-event-zh { font-size: 0.8em; max-height: 4.5em; } }
@media (max-width: 600px) { .la-title-zh { font-size: 1.8em; } .la-theme-zh { font-size: 1.2em; } .la-passage-text-zh, .la-manual-text-zh { font-size: 1em; } .la-cal-header-zh { flex-direction: column; gap: 10px; } .la-cal-month-name-zh { order: -1; } .la-day-zh { height: auto; min-height: 80px; } .la-calendar-zh th, .la-calendar-zh td { padding: 3px; } }

/* Day Navigation Links */
.la-day-navigation-zh {
    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-zh a {
    text-decoration: none;
    color: #0073aa;
    transition: color 0.2s ease-in-out;
}

.la-day-navigation-zh a:hover {
    color: #333;
}

.la-day-navigation-zh .nav-previous {
    text-align: left;
}

.la-day-navigation-zh .nav-next {
    text-align: right;
}

/* Style for the Gospel Reading Intro */
.la-reading-intro-zh {
    font-style: italic;
    color: #555;
    margin: -0.5em 0 1.5em 0;
    padding-left: 1em;
    border-left: 3px solid #ddd;
}

/* Responsive Calendar Styles for Mobile */
@media (max-width: 768px) {
    /* Hide the long event titles on small screens */
    .la-day-event-zh {
        display: none;
    }

    /* Make the day number more prominent */
    .la-day-number-zh {
        font-size: 1.2em;
        font-weight: bold;
        position: relative; /* Needed for the dot */
    }

    /* Add a dot under the number for days that have an event */
    td[data-link] .la-day-number-zh::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 50%;
        transform: translateX(-50%);
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background-color: #333; /* Color of the indicator dot */
    }

    /* Make the entire cell clickable */
    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); /* Slight highlight on hover/tap */
    }

    /* Adjust day name headings for smaller screens */
    .la-day-names-zh th {
        font-size: 0.8em;
    }
}