﻿/* CRC Events — used by /Events, /Events/{Month}, /Events/{Month}/{Year}.
   Builds on home.css (.crc-home, .crc-pillars, .crc-pillar-card, buttons). */

.crc-events .crc-pillars { min-height: 60vh; padding-top: 2.5rem; }

/* Events' own navbar (in-page for now) */
.crc-events-nav {
    display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.25rem;
    padding: .65rem clamp(1rem, 4vw, 3rem);
    background: rgba(10, 14, 17, .55);
    border-bottom: 1px solid rgba(212, 175, 55, .25);
}
.crc-events-nav-brand {
    font-weight: 800; letter-spacing: .04em; text-transform: uppercase; font-size: .9rem;
    color: var(--crc-gold) !important; text-decoration: none; display: inline-flex; gap: .45rem; align-items: center;
}
.crc-events-nav-list { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem; margin: 0; padding: 0; }
.crc-events-nav-link {
    display: inline-block; padding: .4rem .9rem; border-radius: 999px; font-weight: 600; font-size: .9rem;
    color: var(--crc-gold-light) !important; text-decoration: none;
}
.crc-events-nav-link:hover, .crc-events-nav-link.active { background: rgba(212, 175, 55, .16); }
.crc-events-nav .dropdown-item.active { background: rgba(212, 175, 55, .2); }

.crc-events-crumbs { font-size: .85rem; margin-bottom: 1rem; color: rgba(248, 249, 250, .55); }
.crc-events-crumbs a { color: var(--crc-gold-light); text-decoration: none; }
.crc-events-crumbs a:hover { text-decoration: underline; }
.crc-events-crumbs span { margin: 0 .3rem; }
.crc-events-crumbs span[aria-current] { margin: 0; color: rgba(248, 249, 250, .8); }

/* Landing: month cards */
.crc-events-month-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
.crc-events-month-name {
    font-family: "Fraunces", Georgia, serif; font-weight: 500; font-size: clamp(1.6rem, 3vw, 2.1rem);
    color: #faf6eb; margin-bottom: .5rem;
}
.crc-events-years { list-style: none; padding: 0; margin: 1rem 0 1.25rem; display: grid; gap: .5rem; }
.crc-events-years a {
    display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center;
    padding: .7rem 1rem; border-radius: 12px; text-decoration: none;
    background: rgba(0, 0, 0, .25); border: 1px solid rgba(212, 175, 55, .25);
}
.crc-events-years a:hover { border-color: rgba(212, 175, 55, .55); }
.crc-events-years strong { color: var(--crc-gold); font-size: 1.1rem; }
.crc-events-years span { color: rgba(248, 249, 250, .8); font-size: .92rem; }
.crc-events-years i { color: var(--crc-gold-light); }

/* Month page */
.crc-events-jump { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 2.5rem; }
.crc-events-jump a {
    padding: .45rem 1rem; border-radius: 999px; font-weight: 600; font-size: .85rem;
    border: 1px solid rgba(212, 175, 55, .45); color: var(--crc-gold-light); text-decoration: none;
}
.crc-events-jump a:hover { background: rgba(212, 175, 55, .15); }
.crc-events-month { margin-bottom: 2.5rem; }
.crc-events-month-head { margin-bottom: 1rem; }
.crc-events-month-head h2 { margin: 0; font-family: "Fraunces", Georgia, serif; font-weight: 500; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.crc-events-month-head h2 a { color: #faf6eb; text-decoration: none; }
.crc-events-month-head h2 a:hover { color: var(--crc-gold-light); }

/* Visit card */
.crc-events-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.crc-events-status {
    font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    padding: .3rem .7rem; border-radius: 999px; white-space: nowrap;
}
.crc-events-status.is-confirmed { background: rgba(61, 220, 132, .15); color: #3ddc84; border: 1px solid rgba(61, 220, 132, .4); }
.crc-events-status.is-planned { background: rgba(94, 196, 232, .12); color: var(--crc-teal); border: 1px solid rgba(94, 196, 232, .35); }
.crc-events-facts { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.25rem; margin: 0 0 1rem; }
.crc-events-facts dt { color: var(--crc-gold); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.crc-events-facts dd { margin: 0; color: rgba(248, 249, 250, .85); }
.crc-events-cities { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.crc-events-cities li {
    padding: .4rem .85rem; border-radius: 999px; background: rgba(0, 0, 0, .25);
    border: 1px solid rgba(212, 175, 55, .35); color: var(--crc-gold-light); font-weight: 600; font-size: .9rem;
}
.crc-events-note { font-size: .9rem; color: rgba(248, 249, 250, .6); margin: 0; }

/* Year page */
.crc-events-subhead { font-family: "Fraunces", Georgia, serif; font-weight: 500; color: #faf6eb; font-size: 1.5rem; margin: 2.5rem 0 1rem; }
.crc-events-table { --bs-table-bg: transparent; --bs-table-color: rgba(248, 249, 250, .88); --bs-table-border-color: rgba(212, 175, 55, .2); }
.crc-events-table th { color: var(--crc-gold); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }

@media (max-width: 991.98px) {
    .crc-events-month-grid { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) {
    .crc-events-facts { grid-template-columns: 1fr; }
    .crc-events-facts dt { margin-top: .4rem; }
    .crc-events-years a { grid-template-columns: auto 1fr; }
    .crc-events-years i { display: none; }
}

.crc-events-month-head h2 small { font-family: "Bricolage Grotesque", system-ui, sans-serif; font-size: .9rem; font-weight: 700; color: var(--crc-gold); margin-left: .6rem; letter-spacing: .06em; text-transform: uppercase; }
.crc-events-years em { font-style: normal; color: var(--crc-gold-light); font-weight: 600; }
.crc-events-table > :not(caption) > * > * { color: rgba(248, 249, 250, .88); background-color: transparent; }
.crc-events-table > thead > tr > th { color: var(--crc-gold); }

/* ---- Invitations ---- */
.crc-inv-public { color: var(--crc-gold-light); }
.crc-inv-notice {
    border: 1px solid rgba(212, 175, 55, .45); background: rgba(212, 175, 55, .08);
    border-radius: 14px; padding: .9rem 1.2rem; margin-bottom: 1.25rem;
}
.crc-inv-notice-big { font-size: 1.15rem; color: #faf6eb; }
.crc-inv-notice-big strong { color: var(--crc-gold); }
.crc-inv-notice-small { font-size: .88rem; color: rgba(248, 249, 250, .7); margin-top: .2rem; }
.crc-inv-error {
    border: 1px solid rgba(255, 107, 107, .55); background: rgba(255, 107, 107, .1); color: #ffd1d1;
    border-radius: 12px; padding: .7rem 1rem; margin-bottom: 1rem;
}
.crc-inv-error:empty, .crc-inv-error.validation-summary-valid { display: none; }
.crc-inv-error ul { margin: 0; padding-left: 1.1rem; }
.crc-inv-field-error { color: #ff9b9b; font-size: .85rem; }

.crc-inv-form fieldset { margin-bottom: 1.25rem; }
.crc-inv-form legend { float: none; width: auto; font-size: 1.05rem; font-weight: 700; color: var(--crc-gold-light); margin-bottom: .6rem; }
.crc-inv-form .form-label { color: rgba(248, 249, 250, .85); font-size: .9rem; margin-bottom: .25rem; }
.crc-inv-form .form-control {
    background: rgba(0, 0, 0, .25); border: 1px solid rgba(212, 175, 55, .3); color: #f8f9fa;
}
.crc-inv-form .form-control:focus { border-color: var(--crc-gold); box-shadow: 0 0 0 .2rem rgba(212, 175, 55, .2); background: rgba(0, 0, 0, .3); color: #fff; }
.crc-inv-form .form-control::placeholder { color: rgba(248, 249, 250, .35); }
.crc-inv-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.crc-inv-grid { display: grid; grid-template-columns: max-content 1fr 1fr; gap: .6rem .8rem; align-items: stretch; }
.crc-inv-grid-head { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--crc-gold); }
.crc-inv-city { font-weight: 700; color: #faf6eb; align-self: center; padding-right: .5rem; }
.crc-inv-option {
    display: flex; gap: .65rem; align-items: flex-start; cursor: pointer;
    padding: .65rem .8rem; border-radius: 12px; background: rgba(0, 0, 0, .25);
    border: 1px solid rgba(212, 175, 55, .25); transition: border-color .15s, background .15s;
}
.crc-inv-option:hover { border-color: rgba(212, 175, 55, .55); }
.crc-inv-option:has(input:checked) { border-color: var(--crc-gold); background: rgba(212, 175, 55, .12); }
.crc-inv-option.is-closed { opacity: .5; cursor: not-allowed; }
.crc-inv-option input { margin-top: .3rem; accent-color: #d4af37; }
.crc-inv-option-body, .crc-inv-cell { display: flex; flex-direction: column; gap: .05rem; }
.crc-inv-kind { font-weight: 700; color: var(--crc-gold-light); font-size: .92rem; }
.crc-inv-date { color: #f8f9fa; font-weight: 600; }
.crc-inv-code { font-family: ui-monospace, Consolas, monospace; font-size: .8rem; color: rgba(248, 249, 250, .55); }
.crc-inv-seats { font-size: .85rem; color: #3ddc84; }
.crc-inv-seats.is-full { color: #ffb86b; }
.crc-inv-seats.is-closed { color: rgba(248, 249, 250, .5); }
.crc-inv-link { font-size: .85rem; font-weight: 600; color: var(--crc-gold) !important; text-decoration: none; margin-top: .15rem; }
.crc-inv-link:hover { color: var(--crc-gold-light) !important; }
.crc-inv-table td { vertical-align: top; }
.crc-inv-status h1 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.crc-inv-status p { color: rgba(248, 249, 250, .8); }

@media (max-width: 575.98px) {
    .crc-inv-grid { grid-template-columns: 1fr 1fr; }
    .crc-inv-grid-head:first-child { display: none; }
    .crc-inv-city { grid-column: 1 / -1; margin-top: .4rem; }
}
.crc-inv-when { font-size: .88rem; color: rgba(248, 249, 250, .85); }
.crc-inv-venue { font-size: .85rem; color: rgba(248, 249, 250, .7); }
.crc-inv-venue a { color: var(--crc-gold) !important; margin-left: .25rem; }
.crc-inv-recheck { font-size: .8rem; color: rgba(255, 184, 107, .85); }
.crc-inv-flash { border-left: 3px solid var(--crc-gold); padding: .4rem .8rem; background: rgba(212, 175, 55, .08); color: #faf6eb; border-radius: 6px; }

/* ---- Events admin ---- */
.crc-admin .crc-pillars { padding-top: 1.5rem; }
.crc-admin-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: .5rem; }
.crc-admin-who { color: rgba(248, 249, 250, .8); font-size: .9rem; display: flex; gap: .6rem; align-items: center; }
.crc-admin-btn {
    display: inline-block; padding: .3rem .7rem; border-radius: 8px; font-size: .82rem; font-weight: 600; cursor: pointer;
    background: rgba(0, 0, 0, .25); border: 1px solid rgba(212, 175, 55, .4); color: var(--crc-gold-light) !important; text-decoration: none;
}
.crc-admin-btn:hover { background: rgba(212, 175, 55, .15); }
.crc-admin-btn.is-go { border-color: rgba(61, 220, 132, .55); color: #3ddc84 !important; }
.crc-admin-btn.is-stop { border-color: rgba(255, 107, 107, .55); color: #ff9b9b !important; }
.crc-admin-table { font-size: .85rem; }
.crc-admin-table td, .crc-admin-table th { white-space: nowrap; }
.crc-admin-table td.crc-admin-note { white-space: normal; min-width: 14rem; color: rgba(248, 249, 250, .65); }
.crc-admin-table a { color: var(--crc-gold-light); }
.crc-admin-free { color: #3ddc84 !important; font-weight: 700; }
.crc-admin-zero { color: #ffb86b !important; font-weight: 700; }
.crc-admin-count { font-family: ui-monospace, Consolas, monospace; font-size: .9rem; color: var(--crc-gold); margin-left: .4rem; }
.crc-admin-status { padding: .15rem .5rem; border-radius: 999px; font-size: .75rem; font-weight: 700; border: 1px solid rgba(248, 249, 250, .25); }
.crc-admin-status.st-confirmed { color: #3ddc84; border-color: rgba(61, 220, 132, .5); }
.crc-admin-status.st-pending { color: var(--crc-teal); border-color: rgba(94, 196, 232, .5); }
.crc-admin-status.st-waitlisted, .crc-admin-status.st-full { color: #ffb86b; border-color: rgba(255, 184, 107, .5); }
.crc-admin-status.st-cancelled, .crc-admin-status.st-declined { color: rgba(248, 249, 250, .5); }
.crc-admin-filter { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin: 1.25rem 0 .5rem; color: rgba(248, 249, 250, .8); font-size: .88rem; }
.crc-admin-filter select { margin-left: .35rem; background: rgba(0, 0, 0, .3); color: #f8f9fa; border: 1px solid rgba(212, 175, 55, .35); border-radius: 6px; padding: .25rem .4rem; }
.crc-admin-code { background: rgba(0, 0, 0, .35); border: 1px solid rgba(212, 175, 55, .3); border-radius: 8px; padding: .75rem; color: #faf6eb; white-space: pre-wrap; word-break: break-all; }
.crc-admin code { color: var(--crc-gold-light); }
.crc-admin-status.st-rebooked { color: rgba(61, 220, 132, .7); }

/* ---- Gatherings (e.g. Fatehgarh Churian Brainstorming) ---- */
.crc-gathering-head { display: flex; gap: .9rem; align-items: center; }
.crc-gathering-head .crc-pillar-icon { margin: 0; flex: none; }
.crc-gathering-region { color: var(--crc-gold-light); font-weight: 600; }
.crc-gathering-meetings { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.crc-gathering-meetings li {
    display: flex; gap: .75rem; padding: .85rem 1rem; border-radius: 12px;
    background: rgba(0, 0, 0, .25); border: 1px solid rgba(212, 175, 55, .3);
}
.crc-gathering-meetings li.is-tbd { border-style: dashed; }
.crc-gathering-num {
    flex: none; width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center;
    background: rgba(212, 175, 55, .15); color: var(--crc-gold); font-weight: 800;
}
.crc-gathering-title { font-weight: 700; color: var(--crc-gold-light); }
.crc-gathering-when { color: #f8f9fa; font-weight: 600; }
.crc-gathering-where { color: rgba(248, 249, 250, .85); font-size: .92rem; }
.crc-gathering-where a { color: var(--crc-gold) !important; margin-left: .25rem; }
.crc-gathering-address { color: rgba(248, 249, 250, .65); font-size: .85rem; }
.crc-gathering-note { color: rgba(248, 249, 250, .55); font-size: .82rem; margin-top: .2rem; }
@media (max-width: 991.98px) { .crc-gathering-meetings { grid-template-columns: 1fr; } }

/* ---- Gathering registration (verified email + phone, no limit) ---- */
.crc-gathering-actions { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; }
.crc-gathering-open { margin: .6rem 0 0; font-size: .85rem; color: rgba(248, 249, 250, .65); }
.crc-reg-meetings { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem .8rem; }
.crc-reg-tag { font-size: .72rem; font-weight: 600; color: var(--crc-teal); margin-left: .35rem; }
.crc-reg-code { font-family: ui-monospace, Consolas, monospace; font-size: 1.5rem; letter-spacing: .35em; max-width: 13rem; text-align: center; }
.crc-reg-resend { display: block; background: none; border: 0; padding: 0; margin-top: .45rem; font-size: .85rem; font-weight: 600; color: var(--crc-gold) !important; text-decoration: underline; cursor: pointer; }
.crc-reg-resend:hover { color: var(--crc-gold-light) !important; }
.crc-reg-hint { display: block; font-size: .78rem; color: rgba(248, 249, 250, .55); margin-top: .15rem; }
.crc-reg-verified { color: #3ddc84; font-weight: 700; padding: .55rem 0; }
.crc-reg-ref { font-family: ui-monospace, Consolas, monospace; color: var(--crc-gold-light); letter-spacing: .05em; }
.crc-reg-done-list { margin-top: 1rem; }
.crc-reg-ok { color: #3ddc84; }
@media (max-width: 767.98px) {
    .crc-reg-meetings { grid-template-columns: 1fr; }
}
.crc-gathering-map { display: inline-block; margin-top: .25rem; font-family: ui-monospace, Consolas, monospace; font-size: .8rem; color: var(--crc-gold) !important; text-decoration: none; }
.crc-gathering-map:hover { color: var(--crc-gold-light) !important; text-decoration: underline; }
