/* ============================================================
   experiments.css — Styles for the Experiments lab notebook page
   ============================================================ */

/* ── Page Header ── */
.exp-header {
    background-color: #0e1117;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 5rem 2rem 4rem;
}

.exp-header__content {
    max-width: 900px;
    margin: 0 auto;
}

.exp-header h1 {
    font-family: 'Libre Baskerville', serif;
    font-size: clamp(2.4rem, 5vw, 3.5rem);
    color: #f7f4ea;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.exp-header__sub {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    color: #9ca3af;
    max-width: 620px;
    line-height: 1.7;
    margin-top: 0.5rem;
}

/* ── Main experiment list ── */
.exp-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem 5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* ── Individual experiment card ── */
.experiment {
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.25s ease;
}

.experiment:hover {
    border-color: rgba(20, 184, 166, 0.35);
}

.experiment__inner {
    padding: 2.5rem;
}

/* ── Meta row (number, date, status) ── */
.experiment__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.exp-number {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #14b8a6;
}

.exp-date {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: #9ca3af;
}

/* Status badges */
.exp-status {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.2rem 0.65rem;
    border-radius: 100px;
}

.exp-status--complete {
    background: rgba(20, 184, 166, 0.12);
    color: #5eead4;
    border: 1px solid rgba(20, 184, 166, 0.3);
}

.exp-status--pending {
    background: rgba(179, 143, 93, 0.12);
    color: #d4a96a;
    border: 1px solid rgba(179, 143, 93, 0.3);
}

/* ── Experiment title & description ── */
.experiment__title {
    font-family: 'Libre Baskerville', serif;
    font-size: clamp(1.3rem, 2.5vw, 1.7rem);
    color: #f7f4ea;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.experiment__desc {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #c9d1d9;
    line-height: 1.75;
    margin-bottom: 0.85rem;
}

.experiment__desc a {
    color: #14b8a6;
}

.experiment__desc a:hover {
    color: #5eead4;
}

/* ── Files section ── */
.experiment__files {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.experiment__files h3 {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 1rem;
}

.file-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.file-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.file-item:hover {
    background: rgba(20, 184, 166, 0.06);
    border-color: rgba(20, 184, 166, 0.25);
}

.file-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.file-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.file-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #14b8a6;
    text-decoration: none;
}

.file-link:hover {
    color: #5eead4;
    text-decoration: underline;
}

.file-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    color: #9ca3af;
    line-height: 1.5;
}

/* ── section-label reuse (copied from index.css for standalone use) ── */
.section-label {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #14b8a6;
    border: 1px solid #14b8a6;
    border-radius: 100px;
    padding: 0.25rem 0.85rem;
    margin-bottom: 1.25rem;
}

/* ── Setup callout box ── */
.experiment__callout {
    background: rgba(20, 184, 166, 0.05);
    border: 1px solid rgba(20, 184, 166, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.exp-callout-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #14b8a6;
    margin-bottom: 0.75rem;
}

.experiment__callout p {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #c9d1d9;
    line-height: 1.75;
    margin: 0;
}

.experiment__callout em {
    color: #5eead4;
    font-style: italic;
}

/* ── Key Finding highlight box ── */
.experiment__finding {
    background: rgba(179, 143, 93, 0.07);
    border: 1px solid rgba(179, 143, 93, 0.25);
    border-left: 4px solid #b38f5d;
    border-radius: 0 12px 12px 0;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.exp-finding-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #d4a96a;
    margin-bottom: 0.75rem;
}

.experiment__finding p {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #c9d1d9;
    line-height: 1.75;
    margin: 0;
}

.experiment__finding em {
    color: #d4a96a;
    font-style: italic;
}

/* ── Files note / warning ── */
.exp-files-note {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 1rem;
    line-height: 1.6;
}

.exp-files-note code {
    font-family: 'Courier New', monospace;
    background: rgba(255, 255, 255, 0.06);
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    font-size: 0.78rem;
    color: #5eead4;
}

/* ════════════════════════════════════
   Summary card (experiments.html)
   ════════════════════════════════════ */
.exp-summary-card {
    display: block;
    text-decoration: none;
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem 2.25rem;
    transition: border-color 0.25s ease, transform 0.2s ease, background 0.25s ease;
}

.exp-summary-card:hover {
    border-color: rgba(20, 184, 166, 0.45);
    background: rgba(20, 184, 166, 0.03);
    transform: translateY(-3px);
    text-decoration: none;
}

.exp-summary-card__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.85rem;
}

.exp-summary-card__title {
    font-family: 'Libre Baskerville', serif;
    font-size: clamp(1.2rem, 2.5vw, 1.55rem);
    color: #f7f4ea;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    transition: color 0.2s ease;
}

.exp-summary-card:hover .exp-summary-card__title {
    color: #5eead4;
}

.exp-summary-card__teaser {
    font-family: 'Inter', sans-serif;
    font-size: 0.97rem;
    color: #9ca3af;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.exp-summary-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.exp-summary-card__files {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    color: #6b7280;
    letter-spacing: 0.05em;
}

.exp-summary-card__cta {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #14b8a6;
    transition: color 0.2s ease;
}

.exp-summary-card:hover .exp-summary-card__cta {
    color: #5eead4;
}

/* ════════════════════════════════════
   Detail page (exp-001.html etc.)
   ════════════════════════════════════ */
.exp-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s ease;
}

.exp-back-link:hover {
    color: #14b8a6;
    text-decoration: none;
}

.exp-main--detail {
    display: block;
}

.exp-detail-body {
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2.5rem;
}

/* ════════════════════════════════════
   Tech Stack section
   ════════════════════════════════════ */
.experiment__tech {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.18);
    border-radius: 12px;
}

.exp-tech-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #a5b4fc;
    margin-bottom: 1rem;
}

.exp-tech-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.exp-tech-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.exp-tech-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.05rem;
    line-height: 1.5;
}

.exp-tech-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.exp-tech-name {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #e0e7ff;
}

.exp-tech-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    color: #9ca3af;
    line-height: 1.5;
}

/* ════════════════════════════════════
   Video embed / placeholder
   ════════════════════════════════════ */
.exp-video-wrap {
    margin: 1.75rem 0;
    border-radius: 12px;
    overflow: hidden;
    background: #0a0d14;
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* 16:9 aspect ratio */
    position: relative;
    padding-top: 56.25%;
}

/* Active iframe fills the wrapper */
.exp-video-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Placeholder shown when no iframe is present */
.exp-video-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: repeating-linear-gradient(-45deg,
            rgba(255, 255, 255, 0.02),
            rgba(255, 255, 255, 0.02) 1px,
            transparent 1px,
            transparent 12px);
}

.exp-video-placeholder__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.exp-video-icon {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.15);
    line-height: 1;
}

.exp-video-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.2);
}

/* ════════════════════════════════════
   Noisy Nodes article link
   ════════════════════════════════════ */
.exp-article-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    margin: 1.25rem 0 1.75rem;
    background: rgba(251, 146, 60, 0.05);
    border: 1px solid rgba(251, 146, 60, 0.2);
    border-radius: 10px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.exp-article-link:hover {
    background: rgba(251, 146, 60, 0.08);
    border-color: rgba(251, 146, 60, 0.35);
}

.exp-article-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fb923c;
    white-space: nowrap;
    flex-shrink: 0;
}

.exp-article-anchor {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    text-decoration: none;
    flex: 1;
}

.exp-article-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    color: #f7f4ea;
    transition: color 0.15s ease;
}

.exp-article-link:hover .exp-article-title {
    color: #fdba74;
}

.exp-article-note {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    color: #6b7280;
    font-style: italic;
}