/* ===================================
   IADAI LAB - Additional Styles
   =================================== */

/* Lab Hero Section */
.lab-hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 60px;
}

.lab-hero-content {
    text-align: center;
    padding: 60px 40px;
    max-width: 800px;
    margin: 0 auto;
}

.lab-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-cyan));
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: var(--text-light);
    animation: float 3s ease-in-out infinite;
}

.lab-hero-content h1 {
    font-size: 48px;
    color: var(--text-light);
    margin-bottom: 20px;
    font-weight: 900;
}

.lab-hero-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

/* Experiments Section */
.experiments-section {
    padding: 80px 0;
}

.experiment-card {
    margin-bottom: 40px;
    padding: 40px;
}

.experiment-header {
    display: flex;
    gap: 25px;
    align-items: flex-start;
    margin-bottom: 30px;
}

.experiment-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-cyan));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--text-light);
    flex-shrink: 0;
}

.experiment-header h3 {
    font-size: 28px;
    color: var(--text-light);
    margin-bottom: 10px;
    font-weight: 700;
}

.experiment-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

/* Experiment Demo */
.experiment-demo {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.experiment-demo textarea,
.experiment-demo input[type="text"] {
    width: 100%;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    color: var(--text-light);
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
}

.experiment-demo textarea {
    min-height: 150px;
}

.experiment-demo textarea:focus,
.experiment-demo input[type="text"]:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-cyan);
    box-shadow: 0 0 20px rgba(0, 172, 193, 0.3);
}

.experiment-demo textarea::placeholder,
.experiment-demo input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Analysis Result */
.analysis-result,
.headlines-result {
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    min-height: 100px;
    display: none;
    animation: slideUp 0.4s ease;
}

.analysis-result.active,
.headlines-result.active {
    display: block;
}

.result-item {
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 15px;
    border-left: 4px solid var(--primary-cyan);
}

[dir="rtl"] .result-item {
    border-left: none;
    border-right: 4px solid var(--primary-cyan);
}

.result-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 5px;
    font-weight: 600;
}

.result-value {
    font-size: 18px;
    color: var(--text-light);
    font-weight: 700;
}

.sentiment-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-top: 5px;
}

.sentiment-positive {
    background: rgba(39, 201, 63, 0.2);
    color: #27c93f;
    border: 1px solid #27c93f;
}

.sentiment-neutral {
    background: rgba(255, 189, 46, 0.2);
    color: #ffbd2e;
    border: 1px solid #ffbd2e;
}

.sentiment-negative {
    background: rgba(255, 95, 86, 0.2);
    color: #ff5f56;
    border: 1px solid #ff5f56;
}

/* Headlines Result */
.headline-item {
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.headline-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(-5px);
}

[dir="rtl"] .headline-item:hover {
    transform: translateX(5px);
}

.headline-text {
    font-size: 18px;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 8px;
}

.headline-score {
    font-size: 14px;
    color: var(--primary-cyan);
}

/* Chart Container */
.chart-container {
    position: relative;
    padding: 20px;
}

/* Research Section */
.research-section {
    padding: 80px 0;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.research-card {
    padding: 35px;
    position: relative;
}

.research-status {
    position: absolute;
    top: 20px;
    right: 20px;
}

[dir="rtl"] .research-status {
    right: auto;
    left: 20px;
}

.status-badge {
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.status-published {
    background: rgba(39, 201, 63, 0.2);
    color: #27c93f;
    border: 1px solid #27c93f;
}

.status-ongoing {
    background: rgba(255, 189, 46, 0.2);
    color: #ffbd2e;
    border: 1px solid #ffbd2e;
}

.research-card h3 {
    font-size: 22px;
    color: var(--text-light);
    margin: 40px 0 15px;
    font-weight: 700;
    line-height: 1.4;
}

.research-card p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 20px;
}

.research-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.research-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.research-meta i {
    color: var(--primary-cyan);
}

.btn-small {
    padding: 10px 25px;
    font-size: 14px;
}

/* Lab Stats Section */
.lab-stats-section {
    padding: 80px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.stat-card {
    text-align: center;
    padding: 50px 30px;
    transition: all 0.3s ease;
}

.stat-card i {
    font-size: 50px;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.stat-card .stat-number {
    font-size: 48px;
    font-weight: 900;
    color: var(--primary-cyan);
    margin-bottom: 10px;
}

.stat-card .stat-label {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

.stat-card:hover {
    transform: translateY(-10px);
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-cyan);
    animation: spin 1s ease-in-out infinite;
}

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

/* Responsive */
@media (max-width: 768px) {
    .lab-hero-content h1 {
        font-size: 32px;
    }
    
    .experiment-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .experiment-header h3 {
        font-size: 24px;
    }
    
    .research-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .chart-container {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .lab-hero-content {
        padding: 40px 20px;
    }
    
    .lab-hero-content h1 {
        font-size: 28px;
    }
    
    .experiment-card {
        padding: 25px;
    }
    
    .experiment-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
}