/* Hallucination Detector Specific Styles - Aligned with main theme */
.pg-scope .playground-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.pg-scope .playground-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 3rem 2rem;
    background: var(--gradient-primary);
    border-radius: 24px;
    color: white;
    position: relative;
    overflow: hidden;
}

.pg-scope .playground-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

.pg-scope .playground-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #fff, #e0e7ff);
    -webkit-background-clip: text;
    background-clip: text;
    font-weight: 700;
}

.pg-scope .playground-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

.pg-scope .demo-playground {
    background: var(--bg-container);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--shadow-medium);
    margin: 3rem 0;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.pg-scope .demo-playground::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124, 92, 255, 0.4), transparent);
}

.pg-scope .playground-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    font-weight: 700;
}

.pg-scope .demo-section {
    margin-bottom: 3rem;
}

/* Question Display */
.pg-scope .question-display {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(220, 252, 231, 0.05) 100%);
    border: 2px solid rgba(16, 185, 129, 0.2);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.pg-scope .question-content h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.pg-scope .question-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1.1rem;
}

/* AI Response Container */
.pg-scope .ai-response-container {
    margin-bottom: 2rem;
}

.pg-scope .ai-response {
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.05) 0%, rgba(79, 172, 254, 0.05) 100%);
    border: 2px solid rgba(124, 92, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    backdrop-filter: blur(10px);
}

.pg-scope .response-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.pg-scope .ai-label {
    font-weight: 600;
    color: var(--accent-primary);
    font-size: 1.2rem;
}

.pg-scope .confidence-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.pg-scope .confidence-bar {
    width: 100px;
    height: 12px;
    background: var(--bg-subtle);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.pg-scope .confidence-fill {
    height: 100%;
    background: linear-gradient(90deg, #ef4444, #f59e0b, #10b981);
    border-radius: 6px;
    transition: width 0.8s ease;
    width: 0%;
}

.pg-scope .confidence-value {
    font-weight: 600;
    color: var(--text-primary);
    min-width: 35px;
}

.pg-scope .response-content {
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 1.1rem;
}

/* Detection Controls */
.pg-scope .detection-controls {
    text-align: center;
    margin-bottom: 2rem;
}

.pg-scope .detection-question h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.pg-scope .detection-question p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.pg-scope .choice-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.pg-scope .choice-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 150px;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.pg-scope .accurate-btn {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(220, 252, 231, 0.1) 100%);
    border: 2px solid rgba(16, 185, 129, 0.3);
    color: var(--text-primary);
}

.pg-scope .accurate-btn:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(220, 252, 231, 0.2) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.2);
}

.pg-scope .hallucinated-btn {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(254, 226, 226, 0.1) 100%);
    border: 2px solid rgba(239, 68, 68, 0.3);
    color: var(--text-primary);
}

.pg-scope .hallucinated-btn:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(254, 226, 226, 0.2) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.2);
}

.pg-scope .choice-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.pg-scope .choice-btn.selected {
    transform: translateY(-2px) scale(1.05);
}

.pg-scope .accurate-btn.selected {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3) 0%, rgba(220, 252, 231, 0.3) 100%);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.pg-scope .hallucinated-btn.selected {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.3) 0%, rgba(254, 226, 226, 0.3) 100%);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

/* Feedback Container */
.pg-scope .feedback-container {
    background: var(--bg-container);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
    margin-bottom: 2rem;
}

.pg-scope .feedback-content {
    margin-bottom: 2rem;
}

.pg-scope .feedback-content h4 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: var(--text-primary);
}

.pg-scope .feedback-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.pg-scope .correct-feedback {
    border-left: 4px solid rgba(16, 185, 129, 0.8);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(220, 252, 231, 0.05) 100%);
}

.pg-scope .incorrect-feedback {
    border-left: 4px solid rgba(239, 68, 68, 0.8);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, rgba(254, 226, 226, 0.05) 100%);
}

.pg-scope .explanation {
    background: var(--bg-subtle);
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1rem;
    border: 1px solid var(--border-color);
}

.pg-scope .explanation h5 {
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.pg-scope .warning-signs {
    margin-top: 1rem;
}

.pg-scope .warning-signs ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pg-scope .warning-signs li {
    padding: 0.3rem 0;
    color: var(--text-secondary);
}

.pg-scope .warning-signs li::before {
    content: "\f071";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: .85em;
    color: var(--warning);
    margin-right: 0.5rem;
}

.pg-scope .next-example {
    text-align: center;
}

/* Statistics Section */
.pg-scope .stats-section {
    margin-top: 3rem;
}

.pg-scope .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.pg-scope .stat-card {
    background: var(--bg-container);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pg-scope .stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
}

.pg-scope .stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.pg-scope .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.pg-scope .stat-label {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
}

/* Educational Content */
.pg-scope .educational-content {
    margin-top: 3rem;
}

.pg-scope .step-card {
    background: var(--bg-container);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.pg-scope .step-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glass);
}

.pg-scope .step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.pg-scope .step-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.pg-scope .step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.3rem;
    box-shadow: var(--shadow-medium);
}

.pg-scope .step-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Hallucination Types */
.pg-scope .hallucination-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.pg-scope .type-card {
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.pg-scope .type-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-light);
    border-color: var(--accent-primary);
}

.pg-scope .type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pg-scope .type-card:hover::before {
    opacity: 1;
}

.pg-scope .type-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.pg-scope .type-card h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.pg-scope .type-card > p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.pg-scope .type-examples {
    margin-top: 1rem;
}

.pg-scope .type-examples strong {
    color: var(--accent-primary);
    font-size: 0.9rem;
}

.pg-scope .type-examples ul {
    margin-top: 0.5rem;
    padding-left: 1rem;
}

.pg-scope .type-examples li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

/* Detection Strategies */
.pg-scope .detection-strategies {
    margin-top: 1rem;
}

.pg-scope .strategy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.pg-scope .strategy-card {
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.pg-scope .strategy-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.pg-scope .strategy-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.pg-scope .strategy-card h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.pg-scope .strategy-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pg-scope .strategy-card li {
    color: var(--text-secondary);
    padding: 0.3rem 0;
    position: relative;
    padding-left: 1.2rem;
    font-size: 0.95rem;
    line-height: 1.4;
}

.pg-scope .strategy-card li::before {
    content: "•";
    color: var(--accent-primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Causes Explanation */
.pg-scope .causes-explanation {
    margin-top: 1rem;
}

.pg-scope .cause-item {
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--accent-primary);
}

.pg-scope .cause-item h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.pg-scope .cause-item p {
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Real-World Impact */
.pg-scope .impact-examples {
    margin-top: 1rem;
}

.pg-scope .impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.pg-scope .impact-card {
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.pg-scope .impact-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-light);
}

.pg-scope .impact-card.healthcare {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, rgba(254, 226, 226, 0.05) 100%);
}

.pg-scope .impact-card.healthcare::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ef4444, #f87171);
}

.pg-scope .impact-card.education {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(147, 197, 253, 0.05) 100%);
}

.pg-scope .impact-card.education::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #93c5fd);
}

.pg-scope .impact-card.journalism {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(253, 230, 138, 0.05) 100%);
}

.pg-scope .impact-card.journalism::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #f59e0b, #fde68a);
}

.pg-scope .impact-card.business {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(220, 252, 231, 0.05) 100%);
}

.pg-scope .impact-card.business::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #10b981, #dcfce7);
}

.pg-scope .impact-card h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.pg-scope .impact-card p {
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
    font-size: 0.95rem;
}

/* Fixed action buttons */
.pg-scope .fixed-actions {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 1000;
}

.pg-scope .fixed-actions .btn {
    box-shadow: var(--shadow-medium);
    min-width: 140px;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
}

.pg-scope .btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-light);
}

.pg-scope .btn-primary:hover {
    border-color: #677feb !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 92, 255, 0.4);
}

.pg-scope .btn-secondary {
    background: var(--bg-container);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.pg-scope .btn-secondary:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-2px);
    background: white;
}

/* Animation classes */
.pg-scope .fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.pg-scope .slide-up {
    animation: slideUp 0.6s ease-out forwards;
}

@keyframes fadeIn {
    from { 
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .pg-scope .playground-container {
        padding: 1rem;
    }

    .pg-scope .playground-header {
        padding: 2rem 1rem;
    }

    .pg-scope .playground-header h1 {
        font-size: 2rem;
        color: white;
    }

    .pg-scope .playground-header p {
        font-size: 1rem;
    }

    .pg-scope .demo-playground {
        padding: 1.5rem;
    }

    .pg-scope .choice-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .pg-scope .choice-btn {
        width: 100%;
    }

    .pg-scope .response-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .pg-scope .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .pg-scope .fixed-actions {
        position: static;
        flex-direction: row;
        justify-content: center;
        margin: 2rem 0;
    }

    .pg-scope .hallucination-types {
        grid-template-columns: 1fr;
    }

    .pg-scope .strategy-grid {
        grid-template-columns: 1fr;
    }

    .pg-scope .impact-grid {
        grid-template-columns: 1fr;
    }
}

/* Dark theme adjustments */
[data-theme="dark"] .pg-scope .question-display {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(220, 252, 231, 0.08) 100%);
    border-color: rgba(16, 185, 129, 0.3);
}

[data-theme="dark"] .pg-scope .ai-response {
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.08) 0%, rgba(79, 172, 254, 0.08) 100%);
    border-color: rgba(124, 92, 255, 0.3);
}

[data-theme="dark"] .pg-scope .accurate-btn {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(220, 252, 231, 0.15) 100%);
    border-color: rgba(16, 185, 129, 0.4);
}

[data-theme="dark"] .pg-scope .hallucinated-btn {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(254, 226, 226, 0.15) 100%);
    border-color: rgba(239, 68, 68, 0.4);
}