/* ============================================================
    KvYunlinCalendar — 雲林活動行事曆樣式
============================================================ */

/* ─── common ─────────────────────────────────── */
.ylCal_cale {
    max-width: 1000px;
    margin: 0 auto;
}

.ylCal_detail {
    font-family: "Noto Sans TC", "Noto Serif TC", "Microsoft JhengHei", "PingFang TC", sans-serif;
    color: #333;
    line-height: 1.6;
}

.ylCal_tag {
    display: inline-block;
    padding: 1px 10px;
    font-size: .8em;
    color: #3b6fb6;
    background: #eef3fb;
    border-radius: 12px;
    line-height: 1.8;
}

/* ─── phpCale: 清單頁 ───────────────────────── */

.ylCal_detail_header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3b6fb6;
}

.ylCal_detail_header h3 {
    margin: 0;
    font-size: 1.2em;
    color: #3b6fb6;
}

.ylCal_event_count {
    font-size: .85em;
    color: #888;
}

.ylCal_no_event {
    padding: 24px 0;
    text-align: center;
    color: #aaa;
    font-size: .95em;
}

.ylCal_event_list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ─── card ───────────────────────────────────── */

.ylCal_card {
    display: flex;
    gap: 20px;
    padding: 40px 0;
    border-bottom: 1px solid #A4A4A4;
}

.ylCal_card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ylCal_card_img {
    flex: 0 0 50%;
    overflow: hidden;
    border-radius: 4px;
}

.ylCal_card_img img {
    display: block;
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.ylCal_card_body {
    flex: 1;
    min-width: 0;
}

.ylCal_card_title {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 150%;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ylCal_card_title::before {
    content: "";
    display: inline-block;
    width: 26px;
    height: 37px;
    border-radius: 35%;
    background: #A1CFE8;
    vertical-align: text-bottom;
    flex-shrink: 0;
}

.ylCal_card_title a,
.ylCal_card_title span {
    color: #222;
    text-decoration: none;
}

.ylCal_card_title a:hover {
    color: #3b6fb6;
    text-decoration: underline;
}

.ylCal_card_date {
    font-size: .9em;
    color: #555;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ylCal_card_date::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e05a6f;
    flex-shrink: 0;
    margin-left: 2px;
}

.ylCal_card_area {
    font-size: .9em;
    color: #666;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ylCal_card_area::before {
    content: url(https://athena.noon360.com/noon360/yunlin/MsgInfo/Group1000004763_20251121_15572694.svg);
    font-size: .85em;
    margin-left: 1px;
    vertical-align: middle;
    width: 10px;
    height: 17px;
}

.ylCal_card_tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.ylCal_tag {
    display: inline-block;
    padding: 1px 10px;
    font-size: .8em;
    color: #3b6fb6;
    background: #eef3fb;
    border-radius: 12px;
    line-height: 1.8;
}

/* description */
.ylCal_card_desc {
    font-size: 1rem;
    color: #000;
    line-height: 1.7;
    word-break: break-all;
    text-align: justify;
}

/* ─── tooltip ────────────────────────────────── */

.ylCal_tooltip {
    font-size: .85em;
    line-height: 1.5;
    max-width: 240px;
    background: #fff;
    border-radius: 20px;
    padding: 10px;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
}

.ylCal_tooltip strong {
    display: block;
    margin-bottom: 4px;
}

.ylCal_tooltip_item {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ylCal_tooltip_more {
    color: #999;
    margin-top: 2px;
}

/* ─── phpBlogInfo: 詳情頁 ───────────────────── */

.ylCal_info {
    display: none;
}

.ylCal_info_container {
    max-width: 960px;
    margin: 0 auto;
}

.ylCal_info_images {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-bottom: 24px;
    border-radius: 6px;
}

.ylCal_info_images img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    object-fit: cover;
}

.ylCal_info_body {
    padding: 0 4px;
}

.ylCal_info_title {
    font-size: 1.6em;
    font-weight: 700;
    color: #222;
    margin: 0 0 16px;
    line-height: 1.4;
}

#ylCalInfoMeta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e8e8e8;
}

.ylCal_info_date_row {
    font-size: .95em;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ylCal_info_date_row::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e05a6f;
    flex-shrink: 0;
}

.ylCal_info_area_row {
    font-size: .95em;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ylCal_info_area_row::before {
    content: "\1F4CD";
    font-size: .85em;
}

.ylCal_info_tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ylCal_info_content {
    font-size: 1em;
    line-height: 1.8;
    color: #444;
    margin-bottom: 24px;
    word-break: break-word;
}

.ylCal_info_content img {
    max-width: 100%;
    height: auto;
}

.ylCal_info_source {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e8e8e8;
}

.ylCalSourceLink {
    display: inline-block;
    padding: 8px 20px;
    font-size: .9em;
    color: #fff;
    background: #3b6fb6;
    border-radius: 4px;
    text-decoration: none;
    transition: background .2s;
}

.ylCalSourceLink:hover {
    background: #2e5a96;
}

/* ─── responsive ─────────────────────────────── */

@media (max-width: 600px) {
    .ylCal_card {
        flex-direction: column;
    }

    .ylCal_card_img {
        flex: none;
        max-width: 100%;
    }

    .ylCal_info_images {
        flex-direction: column;
    }
}
