/* ================================================================
   shared.css — design system shared across all pages.
   Mirrors the program page aesthetic: cards, green gradient
   headers, content rows, badges, and outlined buttons.
   ================================================================ */

/* --- Page heading -------------------------------------------- */
.page-heading {
    text-align: center;
    margin: 8px 0 28px;
}
.page-heading h4 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

/* --- Content card -------------------------------------------- */
.content-card {
    background: white;
    border: 1px solid #dde8e5;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09);
    overflow: hidden;
    margin-bottom: 16px;
}

/* --- Card section header (green gradient bar) ---------------- */
.card-section-header {
    background: linear-gradient(135deg, #30c39e 0%, #1a9b7b 100%);
    color: white;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    font-weight: 600;
}
.card-section-header i {
    font-size: 0.9rem;
    opacity: 0.85;
}
.card-section-header .header-badge {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    opacity: 0.88;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    padding: 2px 8px;
}

/* --- Content rows (inside a card) ---------------------------- */
.content-row {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 12px 20px;
    border-bottom: 1px solid #f0f4f3;
    transition: background 0.15s;
}
.content-row:last-child {
    border-bottom: none;
}
.content-row:hover {
    background: #f5faf9;
}

.row-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #30c39e;
    white-space: nowrap;
    min-width: 210px;
    flex-shrink: 0;
}
.row-label i {
    margin-right: 6px;
    width: 14px;
    text-align: center;
}

.row-value {
    flex: 1;
    font-size: 0.95rem;
    color: #333;
    line-height: 1.5;
}

/* --- Status / type badges ------------------------------------ */
.badge-label {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: white;
    padding: 2px 7px;
    border-radius: 4px;
    margin: 0 4px;
    vertical-align: middle;
    position: relative;
    top: -1px;
}
.badge-extended { background: #e53935; }
.badge-tbd      { background: #9e9e9e; }
.badge-keynote  { background: #f0a500; }
.badge-full     { background: #1565c0; }
.badge-short    { background: #039be5; }
.badge-demo     { background: #6a1b9a; }

/* --- Prose block inside a card ------------------------------ */
.section-prose {
    padding: 16px 20px;
    font-size: 0.93rem;
    color: #333;
    line-height: 1.7;
    text-align: justify;
}
.section-prose p {
    margin-bottom: 0.8em;
}
.section-prose p:last-child {
    margin-bottom: 0;
}

/* --- Reset aggressive banner-info link style inside cards -- */
.content-card a:not(.btn-green) {
    background: none !important;
    padding: 0 !important;
    font-size: inherit !important;
    letter-spacing: normal !important;
    color: #30c39e !important;
    border-radius: 0 !important;
    display: inline !important;
    font-weight: 500;
}
.content-card a:not(.btn-green):hover {
    text-decoration: underline !important;
    color: #1a9b7b !important;
}

/* --- Outlined green button ---------------------------------- */
.btn-green {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #30c39e !important;
    border: 1.5px solid #30c39e;
    border-radius: 6px;
    padding: 7px 18px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none !important;
    background: none !important;
    transition: background 0.15s, color 0.15s;
    cursor: pointer;
}
.btn-green i {
    color: inherit !important;
    font-size: 0.9rem !important;
}
.btn-green:hover {
    background: #30c39e !important;
    color: white !important;
    text-decoration: none !important;
}

/* --- Keynote row (gold left accent, warm bg) --------------- */
.keynote-card-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 14px 20px;
    border-bottom: 1px solid #f0f4f3;
    border-left: 4px solid #f0a500;
    background: #fffbf2;
    transition: background 0.15s;
}
.keynote-card-row:last-child {
    border-bottom: none;
}
.keynote-card-row:hover {
    background: #fff7e6;
}
.keynote-card-row .keynote-content {
    flex: 1;
}
.keynote-card-row .keynote-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 4px;
    line-height: 1.4;
}
.keynote-card-row .keynote-speaker {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 4px;
}
.keynote-card-row .keynote-abstract {
    font-size: 0.85rem;
    color: #555;
    margin-top: 6px;
    text-align: justify;
    line-height: 1.5;
}

/* --- News items -------------------------------------------- */
.news-item {
    padding: 10px 20px;
    border-bottom: 1px solid #f0f4f3;
}
.news-item:last-child {
    border-bottom: none;
}
.news-item .news-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #222;
}
.news-item .news-date {
    font-size: 0.82rem;
    color: #999;
    margin-top: 1px;
}
.news-item .news-date.highlight {
    color: #e53935;
    font-weight: 600;
}
.news-item .news-link {
    display: inline-block;
    margin-top: 5px;
}

/* --- Track cards ------------------------------------------- */
.track-card {
    background: white;
    border: 1px solid #dde8e5;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09);
    overflow: hidden;
    margin-bottom: 12px;
}
.track-card .track-header {
    background: linear-gradient(135deg, #30c39e 0%, #1a9b7b 100%);
    color: white;
    padding: 10px 18px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.track-card .track-header-title {
    font-size: 0.95rem;
    font-weight: 600;
    flex: 1;
}
.track-card .track-header-chair {
    font-size: 0.78rem;
    font-weight: 400;
    opacity: 0.88;
    white-space: nowrap;
}
.track-card .track-header-chair i {
    margin-right: 4px;
}
.track-card .track-body {
    padding: 12px 18px;
    font-size: 0.9rem;
    color: #444;
    line-height: 1.6;
}
.track-card .track-chair {
    font-size: 0.83rem;
    color: #666;
    margin-top: 4px;
}
.track-card .track-items {
    margin-top: 8px;
    padding-left: 0;
    list-style: none;
}
.track-card .track-items li {
    font-size: 0.85rem;
    color: #555;
    padding: 2px 0;
}
.track-card .track-items li::before {
    content: "✓";
    color: #30c39e;
    font-weight: 700;
    margin-right: 8px;
}

/* --- Person card (organization page) ----------------------- */
.person-card {
    text-align: center;
    padding: 16px 12px 20px;
}
.person-card img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #dde8e5;
    display: block;
    margin: 0 auto 10px;
}

/* Featured person card — larger photo for Program Chairs */
.person-card-featured img {
    width: 150px;
    height: 150px;
    border: 3px solid #30c39e;
}
.person-card .person-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 4px;
}
.person-card .person-role {
    font-size: 0.82rem;
    color: #666;
}
.person-card .person-role em {
    color: #30c39e;
}

/* --- PC member rows ---------------------------------------- */
.pc-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 8px 20px;
    border-bottom: 1px solid #f0f4f3;
    font-size: 0.9rem;
    transition: background 0.15s;
}
.pc-row:last-child {
    border-bottom: none;
}
.pc-row:hover {
    background: #f5faf9;
}
.pc-row .pc-name {
    font-weight: 500;
    color: #222;
    min-width: 200px;
    flex-shrink: 0;
}
.pc-row .pc-affiliation {
    color: #666;
    font-size: 0.85rem;
}

/* --- Filled green button (primary CTA) --------------------- */
.btn-green-filled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: white !important;
    background: #30c39e !important;
    border: 1.5px solid #30c39e;
    border-radius: 6px;
    padding: 7px 18px;
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none !important;
    transition: background 0.15s, border-color 0.15s;
    cursor: pointer;
}
.btn-green-filled i { color: inherit !important; font-size: 0.88rem !important; }
.btn-green-filled:hover {
    background: #1a9b7b !important;
    border-color: #1a9b7b;
    color: white !important;
}

/* --- Archive edition cards ---------------------------------- */
.archive-edition-card {
    background: white;
    border: 1px solid #dde8e5;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.archive-edition-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.13);
}
.archive-edition-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}
.archive-edition-card .edition-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.archive-edition-card .edition-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}
.archive-edition-card .edition-meta {
    font-size: 0.83rem;
    color: #666;
    margin-bottom: 3px;
}
.archive-edition-card .edition-meta i {
    color: #30c39e;
    margin-right: 5px;
    width: 12px;
    text-align: center;
}
.archive-edition-card .edition-actions {
    margin-top: auto;
    padding-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.archive-edition-card .edition-actions a {
    display: flex !important;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

/* --- Responsive -------------------------------------------- */
@media (max-width: 768px) {
    .content-row {
        flex-direction: column;
        gap: 4px;
    }
    .row-label {
        min-width: unset;
    }
    .pc-row {
        flex-direction: column;
        gap: 2px;
    }
    .pc-row .pc-name {
        min-width: unset;
    }
    .keynote-card-row {
        flex-direction: column;
        gap: 6px;
    }
}
