/* ============================================================
   record-details.css – Dedicated styles for Records/Details page
   ============================================================ */

/* ── Hero Banner ────────────────────────────────────────────── */
.rd-hero {
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 55%, #24243e 100%);
    border-radius: 16px;
    padding: 2.5rem 2.5rem 2rem;
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 40px rgba(15, 12, 41, 0.45);
    position: relative;
    overflow: hidden;
}

.rd-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg,
        rgba(255,255,255,0) 30%,
        rgba(255,255,255,0.04) 50%,
        rgba(255,255,255,0) 70%);
    background-size: 200% 100%;
    animation: rd-shimmer 5s linear infinite;
    pointer-events: none;
}

@keyframes rd-shimmer {
    from { background-position: 200% 0; }
    to   { background-position: -200% 0; }
}

.rd-avatar-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    box-shadow: 0 0 0 4px rgba(102,126,234,0.4), 0 8px 24px rgba(0,0,0,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    flex-shrink: 0;
    animation: rd-spin-slow 20s linear infinite;
}

@keyframes rd-spin-slow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.rd-hero-text {
    flex: 1;
    min-width: 0;
}

.rd-breadcrumb {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #a78bfa;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.rd-breadcrumb a {
    color: #c4b5fd;
    text-decoration: none;
    transition: color 0.2s;
}

.rd-breadcrumb a:hover {
    color: #fff;
    text-decoration: underline;
}

.rd-record-title {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin: 0 0 0.5rem;
    word-break: break-word;
}

.rd-record-subtitle {
    font-size: 1rem;
    color: rgba(255,255,255,0.65);
    margin-bottom: 1rem;
    font-style: italic;
}

/* ── Badge pills ────────────────────────────────────────────── */
.rd-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.rd-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(6px);
}

.rd-badge-year   { background: rgba(102,126,234,0.25); color: #c4b5fd; border: 1px solid rgba(102,126,234,0.4); }
.rd-badge-discs  { background: rgba(16,185,129,0.2);   color: #6ee7b7; border: 1px solid rgba(16,185,129,0.35); }
.rd-badge-field  { background: rgba(245,158,11,0.2);   color: #fcd34d; border: 1px solid rgba(245,158,11,0.35); }
.rd-badge-length { background: rgba(239,68,68,0.2);    color: #fca5a5; border: 1px solid rgba(239,68,68,0.35); }
.rd-badge-review { background: rgba(168,85,247,0.2);   color: #e9d5ff; border: 1px solid rgba(168,85,247,0.35); }

/* ── Meta Info Strip ────────────────────────────────────────── */
.rd-meta-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1px;
    background: #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.rd-meta-cell {
    background: #fff;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.rd-meta-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
}

.rd-meta-value {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a2e;
}

.rd-meta-value a {
    color: #4f46e5;
    text-decoration: none;
    transition: color 0.15s;
}

.rd-meta-value a:hover {
    color: #3730a3;
    text-decoration: underline;
}

.rd-meta-value.empty {
    color: #d1d5db;
    font-style: italic;
    font-weight: 400;
}

/* ── Action Buttons ─────────────────────────────────────────── */
.rd-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

/* ── Section Cards Grid ─────────────────────────────────────── */
.rd-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.rd-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.rd-card-header {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #fff;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.rd-card-body {
    padding: 1.25rem 1.5rem;
    flex: 1;
}

.rd-detail-list {
    display: flex;
    flex-direction: column;
}

.rd-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
    gap: 1rem;
    font-size: 0.92rem;
}

.rd-detail-item:last-child {
    border-bottom: none;
}

.rd-item-label {
    font-weight: 600;
    color: #6b7280;
    flex-shrink: 0;
    min-width: 120px;
}

.rd-item-value {
    color: #1f2937;
    font-weight: 500;
    text-align: right;
    word-break: break-word;
}

.rd-item-value.code-path {
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.82rem;
    background: #f3f4f6;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    color: #374151;
    text-align: left;
    display: inline-block;
    max-width: 100%;
}

.rd-item-value a {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 600;
}

.rd-item-value a:hover {
    text-decoration: underline;
}

.rd-pill-tag {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    background: #e0e7ff;
    color: #4338ca;
}

/* ── Review Content ─────────────────────────────────────────── */
.rd-review-box {
    color: #374151;
    line-height: 1.75;
    font-size: 0.95rem;
}

.rd-review-box p {
    margin-bottom: 1rem;
}

.rd-review-box p:last-child {
    margin-bottom: 0;
}

.rd-no-review {
    color: #9ca3af;
    font-style: italic;
    text-align: center;
    padding: 2.5rem 1rem;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    .rd-hero {
        flex-direction: column;
        padding: 1.5rem 1.25rem;
        gap: 1.25rem;
    }

    .rd-avatar-icon {
        width: 68px;
        height: 68px;
        font-size: 1.8rem;
    }

    .rd-cards-grid {
        grid-template-columns: 1fr;
    }

    .rd-detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .rd-item-value {
        text-align: left;
    }
}
