/* css/events.css */

/* 1. 列表頁樣式 */
.events-page {
    background-color: #f8f9fa;
    padding-top: 4rem; /* 沒有大圖區塊，上方留空間 */
    padding-bottom: 5rem;
}

.page-title-box {
    margin-bottom: 3rem;
    border-left: 5px solid #a32638; /* 使用高質感的酒紅色做點綴 */
    padding-left: 1.2rem;
}

.page-title-box h2 {
    font-weight: 700;
    margin: 0;
    color: #2b2b2b;
    letter-spacing: 2px;
    font-size: 2rem;
}

.page-title-box p {
    color: #777;
    margin-top: 0.5rem;
    margin-bottom: 0;
    letter-spacing: 1px;
    font-size: 1.1rem;
}

/* 活動清單卡片 */
.event-card {
    background-color: #fff;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border-bottom: 3px solid transparent;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    color: inherit;
    border-bottom: 3px solid #a32638;
}

/* 圖片等比例容器 */
.event-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    background-color: #f1f1f1;
}

.event-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.event-card:hover .event-img-wrap img {
    transform: scale(1.05);
}

.event-status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #a32638;
    color: #fff;
    font-size: 0.85rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    letter-spacing: 1px;
}

.event-body {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.event-date {
    color: #a32638; 
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.8rem;
    font-family: 'Inter', sans-serif;
    letter-spacing: 1px;
}

.event-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    line-height: 1.5;
    color: #222;
}

.event-meta {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.event-meta i {
    margin-right: 8px;
    color: #a32638;
    opacity: 0.8;
}

.event-meta .meta-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.event-footer {
    margin-top: auto;
    border-top: 1px solid #f4f4f4;
    padding-top: 1.2rem;
    font-weight: 600;
    color: #a32638;
    text-align: right;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.event-footer span {
    font-size: 0.9rem;
    color: #a32638;
    transition: padding-left 0.3s;
}

.event-card:hover .event-footer span {
    padding-left: 5px;
}


/* --------------------------
   2. 內容內頁樣式 (Detail) 
-----------------------------*/

.event-detail-page {
    background-color: #fff;
}

.event-detail-header {
    background-color: #fbfcfd;
    padding: 4rem 0;
    border-bottom: 1px solid #eee;
}

/* 麵包屑導覽 */
.breadcrumb-custom {
    margin-bottom: 2rem;
}
.breadcrumb-custom a {
    color: #666;
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 1px;
}
.breadcrumb-custom a:hover {
    color: #a32638;
}
.breadcrumb-custom span {
    color: #999;
    margin: 0 10px;
}
.breadcrumb-custom .current {
    color: #222;
    font-weight: 600;
}

.detail-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #222;
    line-height: 1.4;
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

/* 海報容器 */
.detail-poster-wrap {
    border-radius: 12px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.1);
    overflow: hidden;
    background-color: #eee;
}
.detail-poster-wrap img {
    width: 100%;
    height: auto;
    display: block;
}

/* 演出資訊卡片 (時間/地點/票價) */
.detail-info-box {
    padding: 2.5rem;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.04);
    border: 1px solid #f0f0f0;
}

.info-item {
    display: flex;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    align-items: flex-start;
}
.info-item:last-of-type {
    margin-bottom: 0;
}
.info-item i {
    color: #a32638;
    margin-right: 15px;
    font-size: 1.5rem;
    line-height: 1;
    margin-top: 5px;
}
.info-item .content {
    color: #333;
    line-height: 1.6;
}
.info-item .content strong {
    display: block;
    margin-bottom: 5px;
    color: #888;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn-buy-ticket {
    background-color: #a32638;
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    width: 100%;
    text-align: center;
    letter-spacing: 2px;
    transition: all 0.3s;
    font-size: 1.1rem;
    margin-top: 2rem;
    box-shadow: 0 4px 15px rgba(163,38,56,0.3);
}
.btn-buy-ticket:hover {
    background-color: #8a1d2d;
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 6px 20px rgba(163,38,56,0.4);
}

.btn-buy-ticket.disabled {
    background-color: #ccc;
    color: #fff;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* 下半部：詳細介紹文案 */
.detail-content-area {
    padding: 5rem 0;
}

.detail-text {
    font-size: 1.15rem;
    line-height: 2.2;
    color: #4a4a4a;
    text-align: justify;
    text-justify: inter-ideograph;
}

.detail-text h3 {
    font-weight: 700;
    color: #222;
    margin-bottom: 1.5rem;
    border-left: 4px solid #a32638;
    padding-left: 1.2rem;
    margin-top: 3rem;
    font-size: 1.6rem;
    letter-spacing: 1px;
}
.detail-text h3:first-child {
    margin-top: 0;
}

.detail-text p {
    margin-bottom: 1.8rem;
}

/* 分享按鈕群 */
.share-links {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 15px;
}
.share-links span {
    font-weight: 600;
    color: #666;
}
.share-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #f4f4f4;
    color: #555;
    text-decoration: none;
    transition: all 0.2s;
}
.share-btn:hover {
    background-color: #a32638;
    color: #fff;
}
