/**
 * 豐格會員管理前端樣式
 */

/* 社交登入容器 */
.fd-social-login-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.fd-social-login-container h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    font-size: 18px;
}

.fd-social-login-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fd-social-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #fff;
}

.fd-social-login-btn img {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.fd-line-login {
    background: #00B900;
}

.fd-line-login:hover {
    background: #009900;
}



/* 會員資料表單 */
.fd-member-profile-completion,
.fd-member-profile-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.fd-member-profile-completion h2,
.fd-member-profile-form h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 24px;
}

.fd-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fd-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fd-form-group label {
    font-weight: 500;
    color: #555;
    font-size: 14px;
}

.fd-form-group input,
.fd-form-group select,
.fd-form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.fd-form-group input:focus,
.fd-form-group select:focus,
.fd-form-group textarea:focus {
    outline: none;
    border-color: #007cba;
}

.fd-form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.fd-btn-primary,
.fd-btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.fd-btn-primary {
    background: #007cba;
    color: #fff;
}

.fd-btn-primary:hover {
    background: #005a87;
}

.fd-btn-secondary {
    background: #6c757d;
    color: #fff;
}

.fd-btn-secondary:hover {
    background: #545b62;
}

.fd-btn-secondary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 會員等級資訊 */
.fd-member-level-info {
    max-width: 500px;
    margin: 0 auto;
    padding: 25px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.fd-member-level-info h3 {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
    font-size: 20px;
}

.fd-level-details {
    margin-bottom: 25px;
}

.fd-level-details p {
    margin: 10px 0;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fd-level-details strong {
    color: #555;
    font-weight: 600;
}

.fd-next-level {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.fd-next-level h4 {
    margin-bottom: 15px;
    color: #333;
    font-size: 16px;
}

.fd-next-level p {
    margin: 8px 0;
    color: #666;
}

.fd-progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 10px;
}

.fd-progress {
    height: 100%;
    background: linear-gradient(90deg, #007cba, #005a87);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* 點數資訊 */
.fd-points-info {
    max-width: 500px;
    margin: 0 auto;
    padding: 25px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.fd-points-info h3 {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
    font-size: 20px;
}

.fd-points-details {
    margin-bottom: 25px;
}

.fd-points-details p {
    margin: 10px 0;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fd-points-details strong {
    color: #555;
    font-weight: 600;
}

.fd-points-redemption {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.fd-points-redemption h4 {
    margin-bottom: 15px;
    color: #333;
    font-size: 16px;
}

.fd-points-redemption .fd-form-group {
    margin-bottom: 15px;
}

/* 點數歷史 */
.fd-points-history {
    max-width: 800px;
    margin: 0 auto;
    padding: 25px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.fd-points-history h3 {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
    font-size: 20px;
}

.fd-points-history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.fd-points-history-table th,
.fd-points-history-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.fd-points-history-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.fd-points-history-table .positive {
    color: #28a745;
    font-weight: 600;
}

.fd-points-history-table .negative {
    color: #dc3545;
    font-weight: 600;
}

/* 等級升級通知 */
.fd-level-upgrade-notice {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: #fff;
    padding: 15px 20px;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    cursor: pointer;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 響應式設計 */
@media (max-width: 768px) {
    .fd-social-login-container,
    .fd-member-profile-completion,
    .fd-member-profile-form,
    .fd-member-level-info,
    .fd-points-info,
    .fd-points-history {
        margin: 10px;
        padding: 20px;
    }
    
    .fd-social-login-btn {
        padding: 15px 20px;
        font-size: 16px;
    }
    
    .fd-form-group input,
    .fd-form-group select,
    .fd-form-group textarea {
        padding: 15px;
        font-size: 16px;
    }
    
    .fd-btn-primary,
    .fd-btn-secondary {
        padding: 15px 24px;
        font-size: 16px;
        width: 100%;
    }
    
    .fd-points-history-table {
        font-size: 14px;
    }
    
    .fd-points-history-table th,
    .fd-points-history-table td {
        padding: 8px;
    }
}

/* 載入動畫 */
.fd-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 錯誤訊息 */
.fd-error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 6px;
    margin: 10px 0;
    border: 1px solid #f5c6cb;
}

/* 成功訊息 */
.fd-success {
    background: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 6px;
    margin: 10px 0;
    border: 1px solid #c3e6cb;
}

/* 描述文字 */
.fd-description {
    color: #6c757d;
    font-size: 14px;
    margin-top: 5px;
}

/* 必填欄位標記 */
.fd-required {
    color: #dc3545;
    margin-left: 4px;
}

/* 表單驗證錯誤 */
.fd-form-group.error input,
.fd-form-group.error select,
.fd-form-group.error textarea {
    border-color: #dc3545;
}

.fd-form-group.error .fd-error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
} 