/* EventPrime Custom Styles - Events Table */

/* 表格容器 */
.ep-events-table-container {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.ep-events-table-container h3 {
    color: #333;
    font-size: 24px;
    font-weight: 600;
    border-bottom: 3px solid #4CAF50;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

/* 表格響應式容器 */
.ep-table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* 表格樣式 */
.ep-events-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
}

.ep-events-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.ep-events-table thead th {
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
    border: none;
}

.ep-events-table thead th:first-child {
    border-top-left-radius: 8px;
}

.ep-events-table thead th:last-child {
    border-top-right-radius: 8px;
}

.ep-events-table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid #e0e0e0;
}

.ep-events-table tbody tr:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.ep-events-table tbody td {
    padding: 15px 12px;
    vertical-align: middle;
    color: #555;
}

.ep-events-table tbody tr:last-child td {
    border-bottom: none;
}

/* 連結樣式 */
.ep-events-table a {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.ep-events-table a:hover {
    color: #45a049;
    text-decoration: underline;
}

/* 報名按鈕 */
.ep-events-table .ep-btn {
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    display: inline-block;
}

.ep-events-table .ep-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 2px 5px rgba(102, 126, 234, 0.4);
}

.ep-events-table .ep-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.6);
    color: #fff;
    text-decoration: none;
}

.ep-events-table .ep-text-muted {
    color: #999;
    font-style: italic;
    font-size: 12px;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .ep-events-table-container {
        padding: 20px 15px;
    }

    .ep-events-table {
        font-size: 12px;
    }

    .ep-events-table thead th,
    .ep-events-table tbody td {
        padding: 10px 8px;
    }

    .ep-events-table .ep-btn {
        padding: 6px 15px;
        font-size: 11px;
    }
}

/* 特殊狀態 */
.ep-events-table tbody tr.event-past {
    opacity: 0.6;
}

.ep-events-table tbody tr.event-full td {
    background-color: #fee;
}

/* 加載動畫 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ep-events-table tbody tr {
    animation: fadeIn 0.5s ease-out;
}