/**
 * Lab Page Styles
 * External CSS for CyBehave360 Behavioural Lab page
 */

/* Lab Hero */
.lab-hero {
    background: linear-gradient(135deg, #6490A3 0%, #4B506D 100%);
    color: white;
    padding: 10rem 5% 6rem;
    margin-top: 80px;
    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%, rgba(100, 144, 163, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(100, 144, 163, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.lab-hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.lab-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    backdrop-filter: blur(10px);
}

.lab-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.lab-hero p {
    font-size: 1.35rem;
    opacity: 0.95;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Universal Section Header Centering */
.section-header,
.section-header h2,
.section-header p,
.modules-intro,
.modules-intro h2,
.modules-intro p {
    text-align: center !important;
}

/* Icon Rendering Enhancement */
.purpose-icon,
.module-icon,
.benefit-icon {
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Android Emoji", sans-serif;
    font-style: normal;
}

/* Purpose Section */
.purpose-section {
    background: white;
    padding: 5rem 5%;
}

.section-header p,
.modules-intro p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.purpose-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

.purpose-card {
    background: #f8fafc;
    border-radius: 16px;
    padding: 2.5rem;
    border: 2px solid #e2e8f0;
    transition: all 0.3s;
}

.purpose-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(100, 144, 163, 0.15);
    border-color: #6490A3;
}

.purpose-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #6490A3 0%, #4B506D 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.purpose-card h3 {
    font-size: 1.5rem;
    color: #0f172a;
    margin-bottom: 1rem;
    font-weight: 700;
}

.purpose-card p {
    color: #64748b;
    line-height: 1.7;
}

/* Modules Section */
.modules-section {
    background: #f8fafc;
    padding: 5rem 5%;
}

.modules-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.modules-intro h2,
.modules-intro p {
    text-align: center;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.module-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    border: 2px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}

.module-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(100, 144, 163, 0.2);
    border-color: #6490A3;
}

.module-header {
    background: linear-gradient(135deg, #6490A3 0%, #4B506D 100%);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.module-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
}

.module-header h3 {
    font-size: 1.3rem;
    margin-bottom: 0.25rem;
    font-weight: 700;
    color: white;
}

.module-subtitle {
    font-size: 0.85rem;
    opacity: 0.9;
}

.module-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.module-description {
    color: #475569;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex: 1;
    font-size: 0.95rem;
}

.module-features {
    list-style: none;
    margin-bottom: 1.25rem;
}

.module-features li {
    padding: 0.5rem 0;
    color: #475569;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.module-features li::before {
    content: "\2713";
    color: #6490A3;
    font-weight: bold;
    font-size: 1rem;
    flex-shrink: 0;
}

.module-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #d1fae5;
    color: #065f46;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-top: auto;
}

.module-status.coming-soon {
    background: #e0eff5;
    color: #4B506D;
}

.module-status.planned {
    background: #f3f4f6;
    color: #4b5563;
}

/* How It Works Section */
.how-it-works {
    background: white;
    padding: 5rem 5%;
}

.how-it-works .section-header h2,
.how-it-works .section-header p {
    text-align: center;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: #f8fafc;
    border-radius: 16px;
    border: 2px solid #e2e8f0;
    position: relative;
    transition: all 0.3s;
}

.step-card:hover {
    border-color: #6490A3;
    transform: translateY(-5px);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6490A3 0%, #4B506D 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.step-card h3 {
    font-size: 1.3rem;
    color: #0f172a;
    margin-bottom: 1rem;
    font-weight: 700;
}

.step-card p {
    color: #64748b;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Benefits Section */
.benefits-section {
    background: #f8fafc;
    padding: 5rem 5%;
}

/* Journey recommendation box */
.journey-recommendation {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 16px;
}

.journey-recommendation p {
    font-size: 1.1rem;
    color: #475569;
    max-width: 800px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 968px) {
    .lab-hero {
        padding: 6rem 5% 4rem;
    }
    
    .lab-hero h1 {
        font-size: 2.5rem;
    }
    
    .lab-hero p {
        font-size: 1.15rem;
    }
    
    .purpose-grid,
    .modules-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .lab-hero {
        padding: 5rem 5% 3rem;
    }
    
    .lab-hero h1 {
        font-size: 2rem;
    }
    
    .lab-hero p {
        font-size: 1rem;
    }
    
    .module-header h3 {
        font-size: 1.1rem;
    }
}

/* Disabled/Coming Soon Cards - Works in both Light and Dark Modes */
.module-card.step-card-disabled,
.step-card.step-card-disabled {
    opacity: 0.6;
    pointer-events: none;
    cursor: not-allowed;
    position: relative;
}

/* Add grey overlay for better visual indication in light mode */
.module-card.step-card-disabled::after,
.step-card.step-card-disabled::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(148, 163, 184, 0.25);
    border-radius: inherit;
    pointer-events: none;
}

/* Prevent hover effects on disabled cards */
.step-card-disabled:hover {
    transform: none;
    border-color: #e2e8f0;
}

.module-card.step-card-disabled:hover {
    transform: none;
    border-color: #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Grey out text content in disabled cards */
.step-card-disabled h3,
.step-card-disabled p {
    color: #94a3b8 !important;
}

.step-card-disabled .step-number {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%) !important;
    opacity: 0.7;
}

.module-card.step-card-disabled .module-header {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%) !important;
    opacity: 0.7;
}

.module-card.step-card-disabled h3,
.module-card.step-card-disabled p,
.module-card.step-card-disabled .module-subtitle,
.module-card.step-card-disabled .module-description,
.module-card.step-card-disabled .module-features li {
    color: #94a3b8 !important;
}

.module-card.step-card-disabled .module-features li::before {
    color: #cbd5e1 !important;
}

/* Availability note for disabled cards */
.availability-note {
    margin-top: 1.5rem;
    padding: 0.75rem 1rem;
    background: #fef3c7;
    color: #92400e;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    border: 1px solid #fde68a;
}

/* ==================== Coming Soon Modal ==================== */

/* Modal Overlay - HIDDEN by default */
.modal {
    display: none; /* Critical: Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

/* Modal Content Container */
.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Close Button (X) */
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: 2px solid #e2e8f0;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    line-height: 1;
    padding: 0;
}

.modal-close:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
    transform: rotate(90deg);
}

/* Modal Body */
.modal-body {
    padding: 3rem 2.5rem;
    text-align: center;
}

/* Modal Icon */
.modal-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: rocketBounce 2s ease-in-out infinite;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Android Emoji", sans-serif;
}

@keyframes rocketBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Modal Heading */
.modal-body h2 {
    font-size: 2rem;
    color: #4B506D;
    margin-bottom: 1rem;
    font-weight: 700;
}

/* Modal Text */
.modal-body p {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.modal-body p:last-of-type {
    margin-bottom: 2rem;
}

.modal-body p strong {
    color: #6490A3;
    font-weight: 700;
}

/* Modal Button */
.modal-body .btn {
    min-width: 150px;
    background: #6490A3;
    color: white;
}

.modal-body .btn:hover {
    background: #4B506D;
    opacity: 1;
}

/* Modal Responsive Design */
@media (max-width: 640px) {
    .modal-content {
        max-width: 90%;
        margin: 1rem;
    }
    
    .modal-body {
        padding: 2rem 1.5rem;
    }
    
    .modal-body h2 {
        font-size: 1.5rem;
    }
    
    .modal-body p {
        font-size: 0.95rem;
    }
    
    .modal-icon {
        font-size: 3rem;
    }
}
