/* ==========================================================================
   Thesis Page Styles
   ========================================================================== */

/* Chapter Card Colors */
.chapter-cyber-blue::before { background: linear-gradient(90deg, transparent, var(--cyber-blue), transparent); }
.chapter-cyber-teal::before { background: linear-gradient(90deg, transparent, var(--cyber-teal), transparent); }
.chapter-cyber-purple::before { background: linear-gradient(90deg, transparent, var(--cyber-purple), transparent); }

/* Expandable Content */
.chapter-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding var(--transition-base);
}

.chapter-content.expanded {
    max-height: 2000px;
    padding-top: 1.5rem;
}

.cyber-card.expanded {
    transform: none;
}

/* Figure Gallery - White background for thesis figures */
.figure-thumbnail {
    cursor: pointer;
    transition: all var(--transition-base);
    background: #ffffff;
}

.figure-thumbnail img {
    background: #ffffff;
    padding: 0.5rem;
}

.figure-thumbnail:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow-blue);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 15, 28, 0.95);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 100%;
    max-height: calc(85vh - 4rem);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: var(--cyber-blue);
    cursor: pointer;
    transition: transform var(--transition-base);
}

.lightbox-close:hover {
    transform: scale(1.2);
}

/* Lightbox Figure Container */
.lightbox-figure-container {
    background: #ffffff;
    padding: 1.5rem;
    padding-bottom: 1rem;
    border-radius: 8px;
    max-width: 90%;
    max-height: 90vh;
    border: 2px solid var(--cyber-blue);
    box-shadow: 0 0 40px rgba(var(--cyber-blue-rgb), 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-figure-container img {
    max-width: 100%;
    max-height: calc(85vh - 6rem);
    object-fit: contain;
}

/* Lightbox Caption */
.lightbox-figure-caption {
    color: #374151;
    font-size: 0.9rem;
    text-align: left;
    margin-top: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 6px;
    max-width: 100%;
    line-height: 1.6;
}

.lightbox-figure-caption .caption-title {
    font-weight: 600;
    color: #1e293b;
    font-size: 1rem;
    display: block;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--cyber-blue);
}

.lightbox-figure-caption .caption-description {
    color: #475569;
}
