/**
 * 記事フィードバック機能 - スタイル
 * 
 * レスポンシブ対応、アニメーション、モダンなUI
 * 
 * @package Article_Feedback
 * @version 1.0.0
 */

/* ========================================
   フィードバックウィジェット - 基本スタイル
   ======================================== */
.article-feedback-widget {
    margin: 30px 0 2.2em 0;
    padding: 16px 16px 20px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #efefef;
}

/* ========================================
   質問セクション
   ======================================== */
.feedback-question {
    text-align: center;
}

.feedback-title {
    font-size: 13.5px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.6;
}

/* ========================================
   ボタンスタイル
   ======================================== */
.feedback-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: stretch;
}

.feedback-btn {
    flex: 1;
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #ffffff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 400;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #2b2827;
}

.feedback-btn:hover {
    background: #f5f5f5;
}

.feedback-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-icon {
    font-size: 15px;
    line-height: 1;
    font-weight: 600;    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon svg {
    display: block;}

.btn-text {
    font-size: 13px;
    line-height: 1.4;
    text-align: left;
}

/* ========================================
   サンキューメッセージ
   ======================================== */
.feedback-thanks {
    text-align: center;
    padding: 10px 0;
}

.thanks-icon-wrapper {
    margin-bottom: 12px;
}

.thanks-check-icon {
    display: inline-block;
    animation: scaleIn 0.4s ease;
    width: 50px;
    height: 50px;
}

.thanks-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.5;
}

.thanks-subtitle {
    font-size: 12px;
    font-weight: 400;
    color: #999999;
    margin: 0 0 16px 0;
    line-height: 1.6;
}

.thanks-close-btn {
    display: inline-block;
    padding: 7px 20px;
    background: transparent;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
}

.thanks-close-btn:hover {
    background: #f5f5f5;
}

/* ========================================
   ローディング
   ======================================== */
.feedback-loading {
    text-align: center;
    padding: 20px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ========================================
   アニメーション
   ======================================== */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

/* ========================================
   レスポンシブ対応
   ======================================== */

/* タブレット以下 (768px以下) */
@media (max-width: 768px) {
    .article-feedback-widget {
        padding: 14px;
        margin: 25px 0;
    }
    
    .feedback-title {
        font-size: 13px;
    }
    
    .feedback-buttons {
        gap: 8px;
    }
    
    .feedback-btn {
        max-width: 100%;
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .btn-text {
        font-size: 12px;
        line-height: 1.3;
    }
    
    .btn-icon {
        font-size: 14px;
    }
}

/* スマートフォン (480px以下) */
@media (max-width: 480px) {
    .article-feedback-widget {
        padding: 12px 10px;
        margin: 20px 0;
    }
    
    .feedback-title {
        font-size: 12.5px;
    }
    
    .feedback-buttons {
        gap: 6px;
    }
    
    .feedback-btn {
        padding: 9px 7px;
        font-size: 11px;
        gap: 6px;
    }
    
    .btn-text {
        font-size: 11px;
        line-height: 1.2;
    }
    
    .btn-icon {
        font-size: 13px;
    }
}

/* ========================================
   印刷時は非表示
   ======================================== */
@media print {
    .article-feedback-widget {
        display: none;
    }
}
