/* GLEC Event Manager - イベント一覧スタイル */

.glec-event-list-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}

.glec-event-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.glec-event-item {
    display: grid;
    grid-template-columns: 100px 1fr 150px 120px;
    gap: 15px;
    align-items: center;
    padding: 20px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.glec-event-item:hover {
    border-color: #0073aa;
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.1);
}

/* 回数表示 */
.glec-event-round {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    text-align: center;
}

/* 詳細情報 */
.glec-event-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.glec-event-title {
    font-size: 18px;
    font-weight: 700;
    color: #0073aa;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* 対象学年バッジ */
.glec-grade-badges {
    display: inline-flex;
    gap: 5px;
}

.glec-grade-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}

.glec-grade-badge.glec-grade-小学生 {
    background: #ff69b4; /* ピンク */
}

.glec-grade-badge.glec-grade-中学生 {
    background: #1e90ff; /* 青 */
}

.glec-grade-badge.glec-grade-高校生 {
    background: #228b22; /* 緑 */
}

.glec-event-date {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.glec-event-time {
    margin-left: 10px;
    font-size: 14px;
    color: #0073aa;
    font-weight: 600;
}

.glec-event-location {
    font-size: 14px;
    color: #666;
}

.glec-event-booking-period {
    font-size: 13px;
    color: #999;
}

/* ステータス */
.glec-event-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.glec-status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}

/* ステータスの色分け */
.glec-status-badge.status-open {
    background: #d4edda;
    color: #155724;
}

.glec-status-badge.status-almost-full {
    background: #fff3cd;
    color: #856404;
}

.glec-status-badge.status-full {
    background: #f8d7da;
    color: #721c24;
}

.glec-status-badge.status-upcoming {
    background: #d1ecf1;
    color: #0c5460;
}

.glec-status-badge.status-closed,
.glec-status-badge.status-ended {
    background: #e2e3e5;
    color: #6c757d;
}

.glec-status-badge.status-undecided {
    background: #e8e8f0;
    color: #5a5a8a;
}

.glec-capacity-info {
    font-size: 13px;
    color: #666;
    display: none; /* 人数表示を非表示 */
}

/* アクションボタン */
.glec-event-action {
    display: flex;
    justify-content: center;
}

.glec-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.glec-btn-primary {
    background: #0073aa;
    color: #fff;
}

.glec-btn-primary:hover {
    background: #005a87;
    color: #fff;
}

.glec-btn-secondary {
    background: #fff;
    color: #0073aa;
    border: 2px solid #0073aa;
}

.glec-btn-secondary:hover {
    background: #f0f0f0;
    color: #005a87;
    border-color: #005a87;
}

/* 終了したイベント */
.glec-event-item.status-ended {
    opacity: 0.6;
    border-color: #e0e0e0;
}

.glec-event-item.status-ended:hover {
    border-color: #ccc;
    box-shadow: none;
}

/* イベントなし */
.glec-no-events {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .glec-event-item {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 15px;
    }
    
    .glec-event-round {
        text-align: left;
        font-size: 16px;
    }
    
    .glec-event-title {
        font-size: 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .glec-grade-badges {
        gap: 4px;
    }
    
    .glec-grade-badge {
        padding: 3px 10px;
        font-size: 12px;
    }
    
    .glec-event-status {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .glec-event-action {
        justify-content: stretch;
    }
    
    .glec-btn {
        width: 100%;
    }
}
