/* ---------------------------------------------------------------
   HALL OF FAME ? Community block + Result Code submission form
   Append to: equilibrium/css/exigency.css
   --------------------------------------------------------------- */

/* -- Trophy glow pulse ---------------------------------------- */

.xig-hof-trophy {
    font-size: 1.8rem;
    animation: xig-trophy-pulse 3s ease-in-out infinite;
}

@keyframes xig-trophy-pulse {
    0%,  100% { filter: drop-shadow( 0 0 5px rgba(255,229,0,0.55) ); }
    50%        { filter: drop-shadow( 0 0 14px rgba(255,229,0,0.95) ); }
}

/* -- Subtitle -------------------------------------------------- */

.xig-comm-hof-subtitle {
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 0.76rem;
    letter-spacing: 0.14em;
    color: #FFE500;
    opacity: 0.7;
    text-transform: uppercase;
    margin: 0.2rem 0 0;
}

/* -- Flavour paragraph ---------------------------------------- */

.xig-comm-hof-flavour {
    font-size: 0.92rem;
    color: #999999;
    line-height: 1.75;
    margin: 0 0 1.25rem;
}

.xig-hof-code-label {
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: #FFE500;
    background-color: rgba(255,229,0,0.08);
    border: 1px solid rgba(255,229,0,0.25);
    padding: 1px 7px;
    border-radius: 2px;
    white-space: nowrap;
}

/* -- Divider rule ---------------------------------------------- */

.xig-hof-rule {
    border: none;
    border-top: 1px solid #2a2a00;
    margin: 0 0 1.5rem;
}

/* -- Not-logged-in gate --------------------------------------- */

.xig-hof-gate {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(255,229,0,0.04);
    border: 1px dashed rgba(255,229,0,0.2);
    border-radius: 2px;
    padding: 1.1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.xig-hof-gate-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    opacity: 0.55;
    margin-top: 2px;
}

.xig-hof-gate-text {
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 0.84rem;
    color: #888888;
    margin: 0 0 1rem;
}

.xig-hof-gate-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* -- HOF board link ------------------------------------------- */

.xig-hof-board-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1.5rem;
    font-size: 0.76rem;
    letter-spacing: 0.12em;
    color: #FFE500 !important;
    border: 1px solid rgba(255,229,0,0.3) !important;
    border-radius: 2px;
    padding: 0.45rem 0.85rem;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.xig-hof-board-link:hover {
    background: rgba(255,229,0,0.06);
    border-color: #FFE500 !important;
    box-shadow: 0 0 10px rgba(255,229,0,0.15);
}

/* ----------------------------------------------------------------
   RESULT CODE SUBMISSION FORM
   ---------------------------------------------------------------- */

.xig-rc-form-wrap {
    margin-bottom: 1.5rem;
}

/* -- Field containers ------------------------------------------- */

.xig-rc-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
    min-width: 0;
}

.xig-rc-field-full {
    width: 100%;
    flex: none;
}

/* Two fields side by side */
.xig-rc-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.xig-rc-row .xig-rc-field {
    flex: 1;
    min-width: 200px;
}

/* Bottom margin on standalone full-width fields */
.xig-rc-field-full {
    margin-bottom: 1rem;
}

/* -- Labels ----------------------------------------------------- */

.xig-rc-label {
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    color: #777777;
    text-transform: uppercase;
    display: block;
}

.xig-rc-req {
    color: #FF007F;
    margin-left: 2px;
}

.xig-rc-opt {
    color: #444444;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: none;
    margin-left: 4px;
}

/* -- Text inputs ----------------------------------------------- */

.xig-rc-input,
.xig-rc-textarea {
    width: 100%;
    box-sizing: border-box;
    background-color: #2A2A2A;
    border: 1px solid #444444;
    color: #FFFFFF;
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 0.9rem;
    padding: 0.6rem 0.85rem;
    border-radius: 2px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    caret-color: #FFE500;
}

.xig-rc-input::placeholder,
.xig-rc-textarea::placeholder {
    color: #888888;
    font-family: 'Share Tech Mono', 'Courier New', monospace;
}

.xig-rc-input:focus,
.xig-rc-textarea:focus {
    border-color: #FFE500;
    box-shadow: 0 0 0 2px rgba(255,229,0,0.1), 0 0 8px rgba(255,229,0,0.06);
}

/* Code textarea ? monospace, allow resize vertical only */
.xig-rc-textarea {
    resize: vertical;
    min-height: 80px;
    font-size: 0.82rem;
    line-height: 1.5;
    word-break: break-all;
}

/* Hint text below code field */
.xig-rc-hint {
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 0.68rem;
    color: #444444;
    letter-spacing: 0.04em;
    display: block;
}

/* -- Location row: text input + map button side by side ------- */

.xig-rc-location-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.xig-rc-location-inputs {
    display: flex;
    gap: 0.6rem;
    align-items: stretch;
    flex-wrap: wrap;
}

.xig-rc-location-text {
    flex: 1;
    min-width: 180px;
}

/* Map toggle button */
.xig-rc-map-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: transparent;
    border: 1px solid rgba(255,229,0,0.3);
    color: #FFE500;
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0 0.85rem;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.xig-rc-map-toggle:hover {
    background: rgba(255,229,0,0.06);
    border-color: #FFE500;
    box-shadow: 0 0 8px rgba(255,229,0,0.12);
}

.xig-rc-map-toggle[aria-expanded="true"] {
    background: rgba(255,229,0,0.08);
    border-color: #FFE500;
    color: #FFE500;
}

.xig-rc-map-icon {
    font-size: 1rem;
    line-height: 1;
}

/* -- Map panel (collapsible) ----------------------------------- */

.xig-rc-map-panel {
    display: none;
    flex-direction: column;
    gap: 0.6rem;
}

.xig-rc-map-panel.xig-map-open {
    display: flex;
}

.xig-rc-map-note {
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 0.7rem;
    color: #555555;
    margin: 0;
    line-height: 1.5;
}

/* Leaflet map container */
.xig-rc-map {
    width: 100%;
    height: 260px;
    border: 1px solid #2a2a2a;
    border-radius: 2px;
    background: #0d0d0d;
    /* Leaflet injects its own tiles ? cursor crosshair signals interactivity */
    cursor: crosshair;
}

/* Clear pin button */
.xig-rc-map-clear {
    display: none;
    align-self: flex-start;
    background: transparent;
    border: 1px solid rgba(255,0,127,0.3);
    color: #FF007F;
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.3rem 0.7rem;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.xig-rc-map-clear:hover {
    background: rgba(255,0,127,0.06);
    border-color: #FF007F;
}

.xig-rc-map-clear.xig-map-clear-visible {
    display: block;
}

/* -- Feedback bar ---------------------------------------------- */

.xig-rc-feedback {
    padding: 0.7rem 1rem;
    border-radius: 2px;
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 0.82rem;
    margin-bottom: 1rem;
    display: none;
    border-left: 3px solid;
}

.xig-rc-feedback.xig-fb-error {
    display: block;
    background: #1a0008;
    border-color: #FF007F;
    color: #ff6fa8;
}

.xig-rc-feedback.xig-fb-success {
    display: block;
    background: #020d00;
    border-color: #39FF14;
    color: #90ff70;
}

.xig-rc-feedback.xig-fb-info {
    display: block;
    background: #00080f;
    border-color: #00CFFF;
    color: #70d8ff;
}

/* -- Action buttons -------------------------------------------- */

.xig-rc-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 1.25rem;
}

/* Submit ? lime bordered, fills on hover */
.xig-rc-btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 2px solid #39FF14;
    color: #39FF14;
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.65rem 1.75rem;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    text-shadow: 0 0 6px rgba(57,255,20,0.4);
    box-shadow: 0 0 10px rgba(57,255,20,0.1);
}

.xig-rc-btn-submit:hover:not(:disabled) {
    background: #39FF14;
    color: #000000;
    text-shadow: none;
    box-shadow: 0 0 20px rgba(57,255,20,0.35);
}

.xig-rc-btn-submit:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* Idle / busy span toggle */
.xig-rc-btn-submit .xig-rc-btn-idle  { display: inline; }
.xig-rc-btn-submit .xig-rc-btn-busy  { display: none; }
.xig-rc-btn-submit.xig-submitting .xig-rc-btn-idle { display: none; }
.xig-rc-btn-submit.xig-submitting .xig-rc-btn-busy { display: inline; }

/* Clear ? muted, pink on hover */
.xig-rc-btn-clear {
    background: transparent;
    border: 1px solid #2a2a2a;
    color: #555555;
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.65rem 1.25rem;
    border-radius: 2px;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.xig-rc-btn-clear:hover {
    color: #FF007F;
    border-color: rgba(255,0,127,0.4);
}

/* -- Responsive ------------------------------------------------ */

@media (max-width: 560px) {
    .xig-rc-row {
        flex-direction: column;
    }
    .xig-rc-location-inputs {
        flex-direction: column;
    }
    .xig-rc-map-toggle {
        width: 100%;
        justify-content: center;
        padding: 0.55rem 0.85rem;
    }
    .xig-rc-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .xig-rc-btn-submit,
    .xig-rc-btn-clear {
        text-align: center;
        justify-content: center;
    }
}

/* -- HOF board link ? above the category cards ---------------- */

.xig-hof-board-link-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

/* Override margin-top that was set for the in-card version */
.xig-hof-board-link-wrap .xig-hof-board-link {
    margin-top: 0;
}
/* ---------------------------------------------
   HOF BOARD LINK — trophy sparkle animation
   Same pulse as the in-card trophy icon
   --------------------------------------------- */

.xig-hof-board-link .xig-hof-trophy-icon {
    display: inline-block;
    animation: xig-trophy-pulse 3s ease-in-out infinite;
    font-style: normal;
}