/* 統一按鈕設計系統 - 通用樣式 */
/* CSS 變數定義已移至 global-variables.css */

/* 主要按鈕 - 用於重要操作（實心按鈕） */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--primary-color);
    color: #FFFFFF;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
    height: 40px;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: #FFFFFF;
    text-decoration: none;
}

.btn-primary:focus {
    outline: 2px solid #3B82F6;
    outline-offset: 2px;
}

/* 次要按鈕 - 用於一般操作（空心按鈕） */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: #FFFFFF;
    color: var(--text-light);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
}

.btn-secondary:hover {
    background: var(--background-light);
    color: var(--text-light);
    text-decoration: none;
    border-color: #9CA3AF;
}

.btn-secondary:focus {
    outline: 2px solid #3B82F6;
    outline-offset: 2px;
}

/* 小型按鈕 - 用於緊湊空間 */
.btn-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    background: #FFFFFF;
    color: var(--text-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    box-shadow: var(--shadow-light);
    font-family: 'Inter', sans-serif;
}

.btn-small:hover {
    background: var(--background-light);
    color: var(--text-light);
    text-decoration: none;
    border-color: #9CA3AF;
}

/* 圖標按鈕 - 用於圖標操作 */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #FFFFFF;
    color: var(--text-light);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    box-shadow: var(--shadow-light);
}

.btn-icon:hover {
    background: var(--background-light);
    color: var(--text-light);
    text-decoration: none;
    border-color: #9CA3AF;
}

/* 危險按鈕 - 實心按鈕 */
.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: #DC2626;
    color: #FFFFFF;
    border: 2px solid transparent;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    box-shadow: var(--shadow-light);
    font-family: 'Inter', sans-serif;
}

.btn-danger:hover {
    background: var(--primary-dark);
    color: #FFFFFF;
    text-decoration: none;
}

/* 創建貼文按鈕 - 實心按鈕 */
.create-post-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 14px;
    background: var(--primary-color);
    color: #FFFFFF;
    border: 2px solid transparent;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
}

.create-post-btn:hover {
    background: var(--primary-dark);
}

.create-post-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

/* 向後兼容的舊樣式 */
.buttons-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--primary-color);
    color: #FFFFFF;
    border: 2px solid transparent;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
}

.buttons-button:hover {
    background: var(--primary-dark);
    color: #FFFFFF;
    text-decoration: none;
}

/* 其他特殊按鈕樣式 */
.write-review-btn {
    padding: 8px 16px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 12px;
    font-family: 'Inter', sans-serif;
}

.write-review-btn:hover {
    background-color: var(--primary-dark);
}

.more-reviews-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.more-reviews-btn:hover {
    background-color: #fdf6e3;
}

.claim-button {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: white;
    color: var(--text-light);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.5;
    cursor: pointer;
    transition: all 0.2s;
}

.claim-button:hover {
    background-color: var(--background-light);
}

/* 禁用狀態 - 適用於所有按鈕 */
.btn-primary:disabled,
.btn-secondary:disabled,
.btn-small:disabled,
.btn-icon:disabled,
.btn-danger:disabled,
.create-post-btn:disabled,
.buttons-button:disabled,
.write-review-btn:disabled,
.claim-button:disabled {
    background: #F3F4F6 !important;
    color: #9CA3AF !important;
    border-color: #E5E7EB !important;
    cursor: not-allowed !important;
    opacity: 0.6;
    transform: none !important;
    box-shadow: none !important;
}

/* 載入中狀態 */
.btn-primary.loading,
.btn-danger.loading,
.create-post-btn.loading,
.buttons-button.loading {
    position: relative;
    color: transparent;
}

.btn-primary.loading::after,
.btn-danger.loading::after,
.create-post-btn.loading::after,
.buttons-button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid #FFFFFF;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: button-spin 1s linear infinite;
}

@keyframes button-spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 活躍狀態 */
.btn-secondary.active {
    background: #F0F9FF;
    color: #0369A1;
    border-color: #0284C7;
}

/* SVG 圖標通用樣式 */
.btn-primary svg,
.btn-secondary svg,
.btn-small svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

/* 響應式設計 */
@media (max-width: 576px ) {
    .btn-primary,
    .btn-secondary,
    .buttons-button {
        font-size: 14px;
        padding: 8px 14px;
    }
    
    .btn-small {
        font-size: 13px;
        padding: 6px 10px;
    }
    
    .claim-button {
        font-size: 14px;
        padding: 12px 16px;
    }
} 