/**
 * 感興趣按鈕 CSS 樣式
 * 檔案位置: /wp-content/themes/你的主題/css/interest-button.css
 */

/* 感興趣區塊容器 */
.interest-section {
    margin: 30px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    text-align: center;
}

/* 感興趣按鈕 */
.interest-button {
    background-color: #007cba;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.interest-button:hover {
    background-color: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 124, 186, 0.3);
}

.interest-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 124, 186, 0.3);
}

.interest-button:disabled,
.interest-button.processing {
    background-color: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 已表達興趣狀態 */
.already-interested {
    color: #28a745;
    font-weight: 600;
    margin: 0;
    font-size: 16px;
}

/* 訊息顯示 */
.interest-message {
    margin-top: 15px;
}

.success-message {
    color: #28a745;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 12px;
    border-radius: 6px;
    margin: 0;
}

.error-message {
    color: #dc3545;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 12px;
    border-radius: 6px;
    margin: 0;
}

/* 登入提示連結 */
.interest-section a {
    color: #007cba;
    text-decoration: underline;
    font-weight: 600;
}

.interest-section a:hover {
    color: #005a87;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .interest-section {
        margin: 20px 0;
        padding: 15px;
    }
    
    .interest-button {
        padding: 10px 20px;
        font-size: 14px;
        width: 100%;
        max-width: 200px;
    }
}

/* 管理後台的表格樣式 */
.interested-users-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.interested-users-table th,
.interested-users-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.interested-users-table th {
    background-color: #f1f1f1;
    font-weight: 600;
}