/* ============================================================
   イベント一覧ページ
   ============================================================ */

#event-archive h1 {
    font-size: 1.4em;
}

.event-list {
    list-style: none;
    padding: 0;
    margin: 24px 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.event-item {
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    transition: box-shadow 0.2s, transform 0.2s;
}

.event-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.event-item > a {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* サムネイル */
.event-item__thumb {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f0ebe3;
}

.event-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-item__thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0ebe3, #e8d8c8);
}

.event-item__thumb-placeholder .material-icons-round {
    font-size: 48px;
    color: #c9b99a;
}

/* バッジ（画像の上に重ねる） */
.event-item__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.05em;
}

.event-item__badge--open {
    background: #f80;
    color: #fff;
}

.event-item__badge--closed {
    background: rgba(0,0,0,0.5);
    color: #fff;
}

/* コンテンツ */
.event-item__content {
    padding: 14px 16px 16px;
}

.event-item__title {
    font-size: 15px;
    font-weight: bold;
    margin: 0 0 10px;
    line-height: 1.5;
}

.event-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    font-size: 12.5px;
    color: #777;
}

.event-item__meta span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.event-item__meta .material-icons-round {
    font-size: 15px;
    color: #b0a080;
}

/* ページネーション */
.pagination {
    text-align: center;
    margin: 24px 0;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 2px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}

.pagination .current {
    background: #c9a96e;
    color: #fff;
    border-color: #c9a96e;
}

/* SP */
@media screen and (max-width: 600px) {
    .event-list {
        grid-template-columns: 1fr;
    }
    .event-item__thumb {
        height: 160px;
    }
}

/* ============================================================
   マイページ：交流イベント
   ============================================================ */

.mypage-event-page {
    margin: 16px 0;
}

.mypage-event-page .tab-bar {
    margin-bottom: 24px;
}

.mypage-event-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mypage-event-list > li {
    margin: 0;
    padding: 0;
}

.mypage-event-list > li:before {
    display: none;
}

.mypage-event-item {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}

.mypage-event-item:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
    transform: translateY(-1px);
}

.mypage-event-item > a {
    display: flex;
    align-items: stretch;
    text-decoration: none;
    color: inherit;
}

.mypage-event-item__thumb {
    position: relative;
    width: 140px;
    flex-shrink: 0;
    background: #f0ebe3;
    overflow: hidden;
}

.mypage-event-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mypage-event-item__thumb-placeholder {
    width: 100%;
    height: 100%;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0ebe3, #e8d8c8);
}

.mypage-event-item__thumb-placeholder .material-icons-round {
    font-size: 36px;
    color: #c9b99a;
}

.mypage-event-item__badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    color: #fff;
}

.mypage-event-item__badge--upcoming {
    background: #f80;
}

.mypage-event-item__badge--past {
    background: rgba(0,0,0,0.5);
}

.mypage-event-item__body {
    flex: 1;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mypage-event-item__title {
    font-size: 15px;
    font-weight: bold;
    margin: 0 0 6px;
    color: #333;
    line-height: 1.5;
}

.mypage-event-item__date {
    font-size: 13px;
    color: #777;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.mypage-event-item__date .material-icons-round {
    font-size: 16px;
    color: #b0a080;
}

.mypage-event-item--past {
    opacity: 0.85;
}

.mypage-event-empty {
    padding: 40px 20px;
    text-align: center;
    color: #999;
    background: #fafafa;
    border-radius: 8px;
}

@media screen and (max-width: 600px) {
    .mypage-event-item__thumb {
        width: 100px;
    }
    .mypage-event-item__body {
        padding: 12px 14px;
    }
    .mypage-event-item__title {
        font-size: 14px;
    }
    .mypage-event-item__date {
        font-size: 12px;
    }
}
