/**
 * Single Reflection Page — LC Award Management
 * Mirrors award-template.css design language with purple (Reflections) accent.
 */

/* ── Page container ──────────────────────────────────────────────────────── */
.lc-reflection-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* ── Breadcrumb ──────────────────────────────────────────────────────────── */
.lc-rp-breadcrumb {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
}
.lc-rp-breadcrumb a {
    color: #7e57c2;
    text-decoration: none;
}
.lc-rp-breadcrumb a:hover { text-decoration: underline; }
.lc-rp-breadcrumb-sep { color: #bdc3c7; }

/* ── Two-column grid (mirrors .award-content-grid) ──────────────────────── */
.lc-rp-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: start;
}

/* ── Main article card ───────────────────────────────────────────────────── */
.lc-rp-main {
    background: #fff;
    border-radius: 8px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: relative;
}

/* ── Opening decorative quote mark ──────────────────────────────────────── */
.lc-rp-open-quote {
    font-size: 6rem;
    line-height: 1;
    color: #ede7f6;
    font-family: Georgia, 'Times New Roman', serif;
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    pointer-events: none;
    user-select: none;
}

/* ── Reflection title ────────────────────────────────────────────────────── */
.lc-rp-title {
    font-size: 2.4rem !important;
    font-weight: 400 !important;
    color: #2c3e50 !important;
    line-height: 1.25 !important;
    margin: 0 0 1.25rem 0 !important;
    padding-top: 0.5rem;
    border: none !important;
}

/* ── Byline ──────────────────────────────────────────────────────────────── */
.lc-rp-byline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0eaf9;
    flex-wrap: wrap;
}
.lc-rp-byline-text {
    font-size: 0.95rem;
    color: #555;
}
.lc-rp-byline-text strong { color: #2c3e50; }

/* ── Avatar (initials circle) ────────────────────────────────────────────── */
.lc-rp-avatar {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #9c6fe4 0%, #6a3db8 100%);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.5px;
}
.lc-rp-avatar-lg {
    width: 52px;
    height: 52px;
    min-width: 52px;
    font-size: 1rem;
}

/* ── Specialty badge ─────────────────────────────────────────────────────── */
.lc-rp-specialty-badge {
    display: inline-block;
    background: #ede7f6;
    color: #5e35b1;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    white-space: nowrap;
}

/* ── Reflection content body ─────────────────────────────────────────────── */
.lc-rp-content {
    font-size: 1.1rem;
    color: #3a3a3a;
    line-height: 1.85;
}
.lc-rp-content p {
    margin-bottom: 1.5rem;
}
.lc-rp-content p:last-child { margin-bottom: 0; }

/* Style the embedded award photo (wp:image block between Part 1 and Part 2) */
.lc-rp-content .wp-block-image {
    margin: 2.5rem 0 !important;
    text-align: center;
}
.lc-rp-content .wp-block-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
    background: #fff;
    padding: 12px;
    box-sizing: border-box;
}
.lc-rp-content .wp-block-image figcaption {
    font-size: 0.85rem;
    color: #7f8c8d;
    font-style: italic;
    margin-top: 0.5rem;
    line-height: 1.4;
}

/* ── Article footer ──────────────────────────────────────────────────────── */
.lc-rp-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f0eaf9;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.lc-rp-pub-date {
    font-size: 0.85rem;
    color: #9e9e9e;
    letter-spacing: 0.3px;
}
.lc-rp-all-link {
    font-size: 0.9rem;
    color: #7e57c2;
    text-decoration: none;
    font-weight: 500;
}
.lc-rp-all-link:hover { text-decoration: underline; }

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
.lc-rp-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* ── Widget card (mirrors .award-widget) ─────────────────────────────────── */
.lc-rp-widget {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.lc-rp-widget-title {
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    color: #7f8c8d !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 1rem 0 !important;
    border: none !important;
    padding: 0 !important;
}

/* Award thumbnail in sidebar */
.lc-rp-award-thumb-wrap {
    margin-bottom: 1rem;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.lc-rp-award-thumb {
    width: 100%;
    height: auto;
    display: block;
}

/* Award title link */
.lc-rp-award-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 1rem 0;
    line-height: 1.4;
}
.lc-rp-award-title a {
    color: #2c3e50;
    text-decoration: none;
}
.lc-rp-award-title a:hover { color: #7e57c2; }

/* Detail rows (mirrors .detail-group) */
.lc-rp-detail-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f5f5f5;
    font-size: 0.875rem;
}
.lc-rp-detail-row:last-of-type { border-bottom: none; }
.lc-rp-detail-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #9e9e9e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}
.lc-rp-detail-value { color: #495057; }

/* View Award Post button */
.lc-rp-view-award-btn {
    display: block;
    margin-top: 1rem;
    padding: 0.6rem 1rem;
    background: #7e57c2;
    color: #fff !important;
    text-align: center;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.2s ease;
}
.lc-rp-view-award-btn:hover { background: #5e35b1; }

/* Writer widget */
.lc-rp-writer-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.lc-rp-writer-info {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.lc-rp-writer-name {
    font-size: 0.95rem;
    color: #2c3e50;
}
.lc-rp-writer-stat {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
    margin: 0.1rem 0 0.6rem;
}

.lc-rp-writer-stat-number {
    font-size: 1.35rem;
    font-weight: 800;
    color: #5e35b1;
    line-height: 1;
}

.lc-rp-writer-stat-label {
    font-size: 0.74rem;
    color: #6b3fa0;
    line-height: 1.35;
}

.lc-rp-writer-note {
    font-size: 0.82rem;
    color: #7f8c8d;
    line-height: 1.55;
    margin: 0;
}

/* Back widget */
.lc-rp-back-widget { text-align: center; }
.lc-rp-back-link {
    font-size: 0.9rem;
    color: #7e57c2;
    text-decoration: none;
    font-weight: 500;
}
.lc-rp-back-link:hover { text-decoration: underline; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .lc-rp-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .lc-rp-sidebar { order: -1; }
}

@media (max-width: 600px) {
    .lc-reflection-page { padding: 1rem; }
    .lc-rp-main { padding: 1.5rem; }
    .lc-rp-title { font-size: 1.8rem !important; }
    .lc-rp-open-quote { font-size: 4rem; top: 0.5rem; left: 1rem; }
    .lc-rp-footer { flex-direction: column; align-items: flex-start; }
}
