/* ===== LABORATORY THEME ===== */
:root {
    --lab-green: #00ff88;
    --lab-blue: #00d4ff;
    --lab-purple: #a855f7;
    --lab-glow-green: rgba(0, 255, 136, 0.3);
    --lab-glow-blue: rgba(0, 212, 255, 0.3);
    --lab-glow-purple: rgba(168, 85, 247, 0.3);
}

/* ===== LAB HERO ===== */
.lab-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    padding: var(--spacing-2xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.lab-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, var(--lab-glow-purple) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, var(--lab-glow-blue) 0%, transparent 50%);
    opacity: 0.3;
    animation: labPulse 4s ease-in-out infinite;
}

@keyframes labPulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.6;
    }
}

.lab-header {
    position: relative;
    z-index: 1;
}

.lab-icon {
    font-size: 5rem;
    margin-bottom: var(--spacing-md);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.lab-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, var(--lab-green) 0%, var(--lab-blue) 50%, var(--lab-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lab-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* ===== LAB GRID ===== */
.lab-grid-section {
    padding: var(--spacing-2xl) 0;
}

.lab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--spacing-xl);
}

.lab-card {
    background: var(--bg-glass);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.lab-card:hover {
    transform: translateY(-8px);
    border-color: var(--lab-blue);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
}

/* ===== LAB BEAKER (Tubo de Ensaio) ===== */
.lab-card-image {
    height: 200px;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.lab-beaker {
    width: 80px;
    height: 120px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 0 0 40px 40px;
    position: relative;
    overflow: hidden;
}

.lab-liquid {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(180deg, var(--lab-green) 0%, var(--lab-blue) 100%);
    opacity: 0.6;
    animation: liquidBubble 2s ease-in-out infinite;
}

@keyframes liquidBubble {

    0%,
    100% {
        height: 60%;
    }

    50% {
        height: 65%;
    }
}

.lab-bubbles {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
}

.lab-bubbles span {
    position: absolute;
    bottom: 0;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    animation: bubbleRise 3s ease-in-out infinite;
}

.lab-bubbles span:nth-child(1) {
    left: 20%;
    animation-delay: 0s;
}

.lab-bubbles span:nth-child(2) {
    left: 50%;
    animation-delay: 1s;
}

.lab-bubbles span:nth-child(3) {
    left: 80%;
    animation-delay: 2s;
}

@keyframes bubbleRise {
    0% {
        bottom: 0;
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        bottom: 100px;
        opacity: 0;
    }
}

.lab-icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    z-index: 2;
}

/* ===== LAB CARD CONTENT ===== */
.lab-card-content {
    padding: var(--spacing-xl);
}

.lab-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
    color: var(--text-primary);
}

.lab-card-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
    font-size: 0.95rem;
}

.lab-card-meta {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.lab-difficulty {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.lab-difficulty-beginner {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.lab-difficulty-intermediate {
    background: rgba(234, 179, 8, 0.1);
    color: #eab308;
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.lab-difficulty-advanced {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.lab-time {
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.lab-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: var(--spacing-md) var(--spacing-lg);
    background: linear-gradient(135deg, var(--lab-green) 0%, var(--lab-blue) 100%);
    color: #0f172a;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.lab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.lab-btn:hover::before {
    left: 100%;
}

.lab-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--lab-glow-blue);
}

/* ===== LAB WARNING ===== */
.lab-warning {
    padding: var(--spacing-2xl) 0;
}

.warning-box {
    display: flex;
    gap: var(--spacing-lg);
    padding: var(--spacing-xl);
    background: rgba(234, 179, 8, 0.1);
    border: 2px solid rgba(234, 179, 8, 0.3);
    border-radius: var(--radius-lg);
    align-items: center;
}

.warning-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.warning-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: #eab308;
}

.warning-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .lab-title {
        font-size: 2rem;
    }

    .lab-grid {
        grid-template-columns: 1fr;
    }

    .warning-box {
        flex-direction: column;
        text-align: center;
    }
}