/* Model Show Page CSS */

/* ===== Container & Layout ===== */
.model-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
    min-height: 100vh;
}

/* ===== Header Section ===== */
.model-back-button {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
}

.model-back-button .btn-back-insight {
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.model-back-button .btn-back-insight:hover {
    transform: translateX(-3px);
}

.model-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem 0;
}

.model-title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: 800;
    /* Light-based gradient text with subtle glow to stand out over the white iframe */
    background: linear-gradient(90deg, #eaf6ff 0%, #b9e0ff 50%, #dff6ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    text-shadow: 0 6px 20px rgba(21,93,168,0.06), 0 2px 8px rgba(134,185,255,0.08);
}

/* A soft glow behind the header to imply light coming from the title */
.model-header {
    position: relative;
}
.model-header::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 42px; /* adjust to sit just behind the title */
    width: 520px;
    height: 120px;
    transform: translateX(-50%);
    background: radial-gradient(circle at center, rgba(134,185,255,0.10), rgba(134,185,255,0.03) 35%, transparent 60%);
    filter: blur(14px);
    pointer-events: none;
    z-index: 0;
}

/* Make sure the title is above the glow */
.model-header .model-title { position: relative; z-index: 1; }

.model-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.model-info {
    color: #666;
    font-size: 1rem;
}

.model-info i {
    margin-right: 0.5rem;
    color: #2196F3;
}

/* ===== Main Iframe Container (90% screen height) ===== */
.iframe-main-container {
    position: relative;
    height: 90vh;
    min-height: 600px;
    background: #2a2c3e;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.main-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* ===== No Model Fallback ===== */
.no-model {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #aaa;
    text-align: center;
}

.no-model i {
    color: #666;
    margin-bottom: 1rem;
}

/* ===== Content Section ===== */
.model-content {
    max-width: 1000px;
    margin: 0 auto;
}

/* ===== Description Section ===== */
.description-section {
    background: linear-gradient(180deg, #0f1720 0%, #0b0f14 100%);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 30px rgba(2, 6, 23, 0.6);
    border: 1px solid rgba(255,255,255,0.04);
}

.description-section h2 {
    color: #ffffff;
    margin: 0;
    font-size: 1.6rem;
    padding-bottom: 0.5rem;
    /* Subtle light accent so subheadings pick up the same theme */
    text-shadow: 0 4px 12px rgba(134,185,255,0.04);
}

.description-section h2 i {
    margin-right: 0.5rem;
    color: #86b9ff;
}

.description-content {
    color: #dbe9fb;
    line-height: 1.8;
    font-size: 1.05rem;
    margin-top: 1rem;
}

/* Header layout for description to place actions on the right */
.description-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

/* Back button styling specific to insights pages */
.btn-back-insight {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-size: 0.95rem;
    background: linear-gradient(180deg, rgba(134,185,255,0.08), rgba(134,185,255,0.02));
    color: #e6f4ff;
    border: 1px solid rgba(134,185,255,0.15);
    border-radius: 6px;
    text-decoration: none;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.btn-back-insight i { color: #86b9ff; }

.btn-back-insight:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(134,185,255,0.08);
    background: linear-gradient(180deg, rgba(134,185,255,0.12), rgba(134,185,255,0.03));
}

/* Ensure the bottom navigation remains centered visually */
.navigation-section { text-align: center; padding: 2rem 0; }

/* ===== Research Studies Section ===== */
.research-section {
    margin-bottom: 2rem;
}

.research-section h2 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    border-bottom: 2px solid #2196F3;
    padding-bottom: 0.5rem;
}

.research-section h2 i {
    margin-right: 0.5rem;
    color: #2196F3;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.research-card {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.research-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.research-card h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.research-card p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.research-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-completed {
    background: #d4edda;
    color: #155724;
}

.status-published {
    background: #cce7ff;
    color: #004085;
}

.status-active {
    background: #fff3cd;
    color: #856404;
}

.date-info {
    color: #888;
    font-size: 0.9rem;
}

.date-info i {
    margin-right: 0.3rem;
}

/* ===== Navigation Section ===== */
.navigation-section {
    text-align: center;
    padding: 2rem 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: 1px solid #6c757d;
}

.btn-secondary:hover {
    background: #5a6268;
    border-color: #545b62;
    transform: translateY(-1px);
}

.btn-primary {
    background: #2196F3;
    color: white;
    border: 1px solid #2196F3;
}

.btn-primary:hover {
    background: #1976D2;
    border-color: #1976D2;
}

.btn-outline-primary {
    background: transparent;
    color: #2196F3;
    border: 1px solid #2196F3;
}

.btn-outline-primary:hover {
    background: #2196F3;
    color: white;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .model-container {
        padding: 0.5rem;
    }
    
    .model-title {
        font-size: 2rem;
    }
    
    .model-meta {
        gap: 1rem;
    }
    
    .iframe-main-container {
        height: 70vh;
        min-height: 400px;
    }
    
    .description-section,
    .research-card {
        padding: 1.5rem;
    }
    
    .research-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .model-title {
        font-size: 1.8rem;
    }
    
    .iframe-main-container {
        height: 60vh;
        min-height: 350px;
    }
    
    .description-section,
    .research-card {
        padding: 1rem;
    }
}

/* ===== Fullscreen Styles ===== */
.iframe-main-container:fullscreen {
    border-radius: 0;
    margin: 0;
    height: 100vh;
}

.iframe-main-container:-webkit-full-screen {
    border-radius: 0;
    margin: 0;
    height: 100vh;
}

.iframe-main-container:-moz-full-screen {
    border-radius: 0;
    margin: 0;
    height: 100vh;
}