/* Prompt Techniques Page Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* *** ダークモードのCSS変数とスタイル *** */
:root {
    /* ライトモードの色定義 - 統一されたカラーシステム */
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --border-light: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --primary-color: #ff6156;
    --secondary-color: #f1f5f9;
    --accent-color: #ff6156;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
}

/* ダークモード */
[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --border-color: #475569;
    --border-light: #475569;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    --primary-color: #ff8c9e;
    --secondary-color: #475569;
    --accent-color: #ff8c9e;
    --success-color: #34d399;
    --warning-color: #fbbf24;
    --error-color: #f87171;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background: var(--bg-primary);
    min-height: 100vh;
    color: var(--text-primary);
    transition: background 0.3s ease, color 0.3s ease;
    margin: 0;
    padding: 0;
}

/* Main Layout */
.main-layout {
    display: flex;
    min-height: calc(100vh - 80px);
    margin-top: 80px;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    padding: 24px 20px;
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
    transition: all 0.3s ease;
}

.sidebar-header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.sidebar-header h1 {
    font-size: 1.25rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 8px;
}

.sidebar-header p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Progress Section */
.progress-section {
    margin-bottom: 24px;
}

.progress-title {
    font-size: 0.875rem;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
}

.progress-skills {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 1em;
}

.skill-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
}

.skill-name {
    flex: 1;
    font-weight: 500;
    color: var(--text-primary);
}

.skill-count {
    font-weight: 600;
    min-width: 35px;
    text-align: right;
    color: var(--text-primary);
}

.skill-bar-mini {
    background: var(--secondary-color);
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    width: 50px;
    flex-shrink: 0;
}

.skill-fill-mini {
    background: var(--primary-color);
    height: 100%;
    border-radius: 3px;
    transition: width 0.8s ease;
}

/* Filter Section */
.filter-section {
    margin-bottom: 24px;
}

.filter-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
    text-align: left;
}

.filter-subgroup {
    margin-bottom: 12px;
    padding-left: 1em;
}

.filter-subgroup:last-child {
    margin-bottom: 0;
}

.filter-subtitle {
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-left: 1em;
}

.filter-option {
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
    color: var(--text-primary);
    font-size: 0.75rem;
    border: 1px solid var(--border-light);
    display: inline-block;
    text-align: left;
    white-space: nowrap;
    width: auto;
    font-weight: 500;
}

.filter-option i {
    margin-right: 4px;
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.filter-option:hover {
    background: rgba(255, 97, 86, 0.1);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.filter-option.active {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
}

.filter-option.active i {
    color: var(--primary-color);
}

.filter-option:hover i {
    color: var(--primary-color);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 30px;
    margin-left: 280px;
    overflow-y: auto;
    min-width: 0;
    width: calc(100vw - 280px);
    max-width: calc(100vw - 280px);
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.content-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.025em;
}

.view-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.refresh-button {
    padding: 8px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.refresh-button:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Techniques Grid */
.techniques-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(460px, 1fr));
    gap: 16px;
    animation: fadeIn 0.3s ease-in-out;
    width: 100%;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Technique Card Styles (Hero Layout) */
.technique-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
    position: relative;
    height: auto;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.technique-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.technique-card.completed {
    border-color: var(--success-color) !important;
    background: var(--bg-card) !important;
}

.technique-card.pending {
    border-color: var(--border-light) !important;
}

/* Hero Card Layout */
.technique-card-hero {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Image Section (Top) */
.hero-image-section {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

/* Description Section (Middle) */
.technique-description {
    padding: 16px;
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    border-bottom: 1px solid var(--border-light);
    flex-grow: 1;
}

/* Info Section (Bottom) */
.hero-info-section {
    height: 60px;
    padding: 12px 16px;
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 10;
}

/* Header Elements */
.technique-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.technique-number {
    background: var(--primary-color);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.technique-card.completed .technique-number {
    background: var(--success-color) !important;
    color: white !important;
    position: relative;
}

.technique-card.completed .technique-number::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--success-color);
    color: white;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

/* Category Badge */
.technique-category {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    border: 1px solid transparent;
}

.technique-category.foundation {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.2);
}

.technique-category.structure {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.2);
}

.technique-category.thinking {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
    border-color: rgba(139, 92, 246, 0.2);
}

.technique-category.advanced {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.2);
}

/* Status Badge */
.technique-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.technique-status.completed {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.technique-status.pending {
    background: var(--secondary-color);
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
}

/* Title */
.technique-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    line-height: 1.4;
    word-break: keep-all;
    overflow-wrap: break-word;
}

/* GPT Usage */
.technique-gpt {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.gpt-prefix {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.gpt-text {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
    background: rgba(255, 97, 86, 0.1);
    padding: 2px 6px;
    border-radius: 6px;
    border: 1px solid rgba(255, 97, 86, 0.2);
}

/* Hero Status Time Row - Same as challenges.html */
.hero-status-time-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
}

.hero-status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1px solid transparent;
}

.hero-status-badge.completed {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.2);
}

.hero-status-badge.pending {
    background: rgba(255, 97, 86, 0.1);
    color: #ff6156;
    border-color: rgba(255, 97, 86, 0.2);
}

.hero-time-info {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--secondary-color);
    border: 1px solid var(--border-light);
}

.hero-detail-button {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
    cursor: pointer;
    transition: all 0.2s ease;
}

.hero-detail-button:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Actions */
.technique-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.action-button {
    flex: 1;
    padding: 8px 12px;
    border: 2px solid transparent;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8rem;
    white-space: nowrap;
    min-width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.action-button.primary {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--border-light);
}

.action-button.restart {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--border-light);
}

.action-button.secondary {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--border-light);
}

.action-button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.action-button.primary:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.action-button.restart:hover {
    background: var(--success-color);
    color: white;
    border-color: var(--success-color);
}

.action-button.secondary:hover {
    background: var(--bg-card);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--bg-card);
    margin: 5% auto;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-light);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-primary);
}

.close-button {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.close-button:hover {
    color: var(--text-primary);
}

.modal-body {
    line-height: 1.6;
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Technique Detail */
.technique-detail {
    color: var(--text-primary);
}

.detail-section {
    margin-bottom: 24px;
}

.detail-section h3 {
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-section h3 i {
    color: var(--primary-color);
}

.detail-section p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 8px;
}

.example-box {
    background: var(--secondary-color);
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    margin-top: 8px;
}

.example-box p {
    margin-bottom: 8px;
}

.example-box p:last-child {
    margin-bottom: 0;
}

.test-preview {
    background: var(--secondary-color);
    padding: 16px;
    border-radius: 8px;
    margin-top: 8px;
}

.test-question p {
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.test-options {
    list-style: none;
    padding: 0;
}

.test-options li {
    padding: 8px 12px;
    margin: 4px 0;
    border-radius: 4px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
}

.test-options li.correct {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--success-color);
    color: var(--success-color);
    font-weight: 600;
}

/* Loading and Error Messages */
.loading-message,
.error-message,
.no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    margin: 20px;
    grid-column: 1 / -1;
}

.loading-spinner {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.loading-message h3,
.error-message h3,
.no-results h3 {
    margin: 0 0 8px 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.loading-message p,
.error-message p,
.no-results p {
    margin: 0 0 20px 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Enhanced Error Message Styles */
.error-message .error-icon {
    margin-bottom: 20px;
}

.error-message .error-icon i {
    font-size: 4rem;
    color: #ff6b6b;
}

.error-message .error-main {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.error-message .error-detail {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.5;
}

.error-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.error-action-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.error-action-btn:hover {
    background: var(--primary-dark, #2563eb);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.error-action-btn:nth-child(2) {
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--border-light);
}

.error-action-btn:nth-child(2):hover {
    background: var(--bg-card);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.no-results i {
    font-size: 4rem;
    color: var(--text-secondary);
    opacity: 0.5;
    margin-bottom: 20px;
}

/* Mobile Filter Toggle */
.mobile-filter-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: all 0.2s ease;
}

/* Toast Messages */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--primary-color);
    z-index: 3000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 300px;
}

.toast.show {
    transform: translateX(0);
}

.toast.toast-success {
    border-left-color: var(--success-color);
}

.toast.toast-warning {
    border-left-color: var(--warning-color);
}

.toast.toast-error {
    border-left-color: var(--error-color);
}

.toast i {
    color: var(--primary-color);
}

.toast.toast-success i {
    color: var(--success-color);
}

.toast.toast-warning i {
    color: var(--warning-color);
}

.toast.toast-error i {
    color: var(--error-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        position: fixed;
        left: -280px;
        transition: left 0.3s ease;
        z-index: 1500;
        top: 0;
        height: 100vh;
        padding-top: 100px;
        box-shadow: var(--shadow-xl);
    }

    .sidebar.open {
        left: 0;
    }

    .main-content {
        padding: 16px;
        margin-left: 0;
        width: 100vw;
        max-width: 100vw;
    }

    .mobile-filter-toggle {
        display: block;
    }

    .mobile-filter-toggle:hover {
        transform: scale(1.05);
    }

    .techniques-grid {
        grid-template-columns: repeat(auto-fit, minmax(440px, 1fr));
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .techniques-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .content-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .content-title {
        font-size: 1.5rem;
    }

    .view-controls {
        width: 100%;
        justify-content: space-between;
    }

    .technique-card {
        height: auto;
        min-height: 340px;
    }
    
    .hero-image-section {
        height: 200px;
    }
    
    .hero-info-section {
        height: 60px;
        padding: 12px 14px;
    }

    .technique-actions {
        flex-direction: column;
        gap: 6px;
    }

    .action-button {
        min-height: 44px;
        font-size: 0.9rem;
    }

    .modal-content {
        margin: 2% auto;
        padding: 20px;
        width: 95%;
        max-height: 90vh;
    }

    .modal-title {
        font-size: 1.25rem;
    }
}
/* ===== AI Recommendations Section ===== */
.ai-recommendations-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

.recommendations-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.recommendations-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.recommendations-title i {
    color: var(--primary-color);
}

.recommendations-refresh {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.recommendations-refresh:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.recommendations-refresh.spinning i {
    animation: spin 1s linear;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.recommendations-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Unified Recommendation Card Design */
.recommendation-card.unified-design {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.recommendation-card.unified-design:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

/* Simple Recommendation Card Design */
.recommendation-card.simple {
    padding: 12px 16px;
    min-height: auto;
}

.rec-simple-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rec-simple-header .rec-title {
    margin: 0 !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    flex: 1;
    display: block !important;
    line-height: 1.4 !important;
}

/* ダークモード対応 */
[data-theme="dark"] .rec-simple-header .rec-title {
    color: #f1f5f9 !important;
}

/* Loading and Empty States */
.recommendations-loading,
.recommendations-empty,
.recommendations-error {
    text-align: center;
    padding: 24px 16px;
    color: var(--text-secondary);
}

.recommendations-loading i {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.recommendations-empty i {
    font-size: 2rem;
    margin-bottom: 12px;
    color: var(--success-color);
}

.empty-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.empty-message {
    font-size: 0.9rem;
    line-height: 1.4;
}

.recommendations-error i {
    font-size: 2rem;
    margin-bottom: 12px;
    color: var(--error-color);
}

.error-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

/* Recommendation Mark */
.recommendation-mark {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: var(--shadow-sm);
}

/* Highlight Effect for Technique Cards */
.technique-card.highlighted {
    animation: highlightPulse 2s ease-out;
    border-color: var(--primary-color) !important;
}

@keyframes highlightPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 97, 86, 0);
    }
    50% {
        box-shadow: 0 0 20px 8px rgba(255, 97, 86, 0.3);
    }
}

/* ===== AIチャットヒント ===== */
.content-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: nowrap;
    justify-content: flex-start;
}

.ai-chat-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 6px 12px;
    background: rgba(59, 130, 246, 0.08);
    border-radius: 16px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.2s ease;
    cursor: pointer;
}

.ai-chat-hint i {
    color: #3b82f6;
    font-size: 1rem;
}

.ai-chat-hint:hover {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.3);
}

/* レスポンシブ対応 - タブレット */
@media (max-width: 768px) {
    .content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .ai-chat-hint {
        font-size: 0.85rem;
        padding: 5px 10px;
    }
}
