/* Eureka YouTube Research Tool Styles */

/* 管理画面のフォントに合わせつつ、必要な部分だけ上書き */
#eureka-research-tool-app {
    font-family: 'Inter', sans-serif;
    position: relative;
    z-index: 1;
}

/* メインの白いコンテナ */
.wp-like-wrap { 
    max-width: 100%; 
    background: #fff; 
    border: 1px solid #c3c4c7; 
    box-shadow: 0 1px 1px rgba(0,0,0,.04); 
    padding: 2rem; 
    box-sizing: border-box;
}

/* ボタン */
.wp-like-button { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    text-decoration: none; 
    font-size: 13px; 
    line-height: 2.15384615; 
    min-height: 30px; 
    margin: 0; 
    padding: 0 10px; 
    cursor: pointer; 
    border-width: 1px; 
    border-style: solid; 
    -webkit-appearance: none; 
    border-radius: 3px; 
    white-space: nowrap; 
    box-sizing: border-box; 
}
.button-primary { background: #2271b1; border-color: #2271b1; color: #fff; }
.button-primary:hover, .button-primary:focus { background: #135e96; border-color: #135e96; color: #fff; }
.button-secondary { color: #2271b1; border-color: #2271b1; background: #f6f7f7; }
.button-secondary:hover, .button-secondary:focus { background: #f0f0f1; border-color: #0a4b78; color: #0a4b78; }
.button-primary:disabled { background: #a7aaad; border-color: #a7aaad; color: #fff; cursor: not-allowed; }

/* テーブル */
.wp-like-table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.wp-like-table th, .wp-like-table td { padding: 12px; text-align: left; border-bottom: 1px solid #ddd; vertical-align: middle; }
.wp-like-table th { background-color: #f9f9f9; cursor: pointer; font-weight: 600; }
.wp-like-table th .sort-icon { opacity: 0.3; margin-left: 5px; }
.wp-like-table th.sorted .sort-icon { opacity: 1; }
.thumbnail-img { width: 120px; height: 67px; object-fit: cover; border-radius: 4px; cursor: pointer; }

/* モーダル */
.modal-backdrop { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(0, 0, 0, 0.6); 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    z-index: 100000; /* WP admin barより上に */
}
.modal-content { 
    background-color: white; 
    padding: 0; 
    border-radius: 8px; 
    width: 90%; 
    max-width: 800px; 
    max-height: 85vh; 
    overflow: hidden; 
    display: flex; 
    flex-direction: column; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.modal-header { padding: 1rem 1.5rem; border-bottom: 1px solid #ddd; background: #f8f9fa; }
.modal-body { padding: 1.5rem; overflow-y: auto; flex-grow: 1; }
.modal-footer { padding: 1rem 1.5rem; border-top: 1px solid #ddd; text-align: right; background: #f8f9fa; }

/* ページネーション */
.pagination-controls { display: flex; justify-content: center; align-items: center; margin-top: 1.5rem; gap: 5px; }
.pagination-button { padding: 6px 12px; border: 1px solid #c3c4c7; background-color: #f6f7f7; border-radius: 3px; cursor: pointer; font-size: 13px; }
.pagination-button:disabled { cursor: not-allowed; opacity: 0.5; }
.pagination-button.active { background-color: #2271b1; color: white; border-color: #2271b1; }

/* アイコン */
.gemini-icon { display: inline-block; width: 1.2em; height: 1.2em; background: conic-gradient(from 180deg at 50% 50%, #4285f4 0deg, #4285f4 90deg, #34a853 90deg, #34a853 180deg, #fbbc05 180deg, #fbbc05 270deg, #ea4335 270deg, #ea4335 360deg); border-radius: 50%; vertical-align: text-bottom; margin-right: 0.5em; }

/* タブ */
.ai-tab { 
    padding: 12px 20px; 
    cursor: pointer; 
    border-bottom: 2px solid transparent; 
    background: none; 
    border-top: none; 
    border-left: none; 
    border-right: none;
    font-weight: 500;
    color: #646970;
}
.ai-tab:hover { color: #2271b1; }
.ai-tab.active { border-bottom-color: #2271b1; color: #2271b1; font-weight: 600; }

/* 文章整形 (Tailwindのtypographyプラグインで補完されるが、念のため) */
.prose { font-size: 14px; line-height: 1.7; color: #3c434a; }
.prose h2, .prose h3 { margin-top: 1.5em; margin-bottom: 0.8em; font-weight: 700; color: #1d2327; }
.prose ul { list-style-position: inside; padding-left: 1em; list-style-type: disc; margin-bottom: 1em; }
.prose li { margin-bottom: 0.4em; }
.prose strong { color: #2271b1; font-weight: 600; }
.prose pre { background-color: #f0f0f1; padding: 1em; border-radius: 4px; white-space: pre-wrap; word-wrap: break-word; margin: 1em 0; }

/* Video Modal */
.video-modal-content { max-width: 800px; }
.video-modal-body { padding: 0; }
#video-player-container { position: relative; padding-bottom: 56.25%; /* 16:9 Aspect Ratio */ height: 0; background: #000; }
#video-player-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
#video-modal-title { font-size: 18px; margin: 0; }
#video-modal-title a { text-decoration: none; color: #1d2327; }
#video-modal-title a:hover { text-decoration: underline; color: #2271b1; }