/* ==========================================================================
   Tributes page - hero, stats, filterable grid, read-more + submit modals
   ========================================================================== */

.trib-page {
    background: #000;
    overflow: hidden;
}

.trib-hero {
    position: relative;
    padding: 70px 0 90px;
    background:
        radial-gradient(circle at 15% 20%, rgba(201, 154, 61, 0.14), transparent 40%),
        linear-gradient(160deg, #0b0a08 0%, #000 100%);
    border-bottom: 1px solid rgba(201, 154, 61, 0.3);
    isolation: isolate;
    overflow: hidden;
}

.trib-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: var(--inside-hero-image);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.28;
    filter: saturate(0.72) contrast(1.05);
    pointer-events: none;
}

.trib-hero > * {
    z-index: 1;
}

.trib-hero > .trib-hero-inner {
    position: relative;
}

.trib-hero-inner {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.trib-hero-title {
    margin: 0;
    color: var(--gold-light);
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 900;
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    letter-spacing: 0.03em;
}

.trib-hero-rule {
    display: inline-block;
    width: 90px;
    height: 1px;
    margin: 18px 0;
    background: rgba(201, 154, 61, 0.6);
}

.trib-hero-script {
    margin: 0 0 14px;
    color: #fff;
    font-family: 'Allura', cursive;
    font-size: clamp(1.6rem, 2.8vw, 2.1rem);
}

.trib-hero-lead {
    max-width: 56ch;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
    line-height: 1.65;
}

.trib-hero-book {
    position: absolute;
    top: 60px;
    left: 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 130px;
    padding: 24px 14px;
    background: linear-gradient(160deg, #14110c, #060504);
    border: 1px solid rgba(201, 154, 61, 0.6);
    border-radius: 10px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    transform: rotate(-6deg);
}

.trib-hero-book__crown {
    width: 26px;
    height: 26px;
    color: var(--gold);
}

.trib-hero-book__title {
    margin: 0;
    color: var(--gold-light);
    font-family: 'Cinzel', 'Playfair Display', serif;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
}

.trib-hero-book__diamond {
    width: 18px;
    height: 18px;
    color: var(--gold);
}

.trib-hero-photo {
    position: absolute;
    top: 50px;
    right: 6%;
    width: 180px;
}

.trib-hero-photo__frame {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 2px solid rgba(201, 154, 61, 0.6);
    border-radius: 50%;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.trib-hero-photo__frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.trib-hero-photo__wreath {
    width: 100%;
    color: var(--gold);
    margin-top: -20px;
}

.trib-stats {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin-top: -40px;
    margin-bottom: 60px;
    padding: 26px 10px;
    background: var(--cream);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.trib-stats__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 6px 20px;
    border-right: 1px solid rgba(201, 154, 61, 0.25);
}

.trib-stats__item:last-child {
    border-right: 0;
}

.trib-stats__icon {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: var(--gold-light);
    background: var(--black);
    border-radius: 50%;
}

.trib-stats__icon svg {
    width: 22px;
    height: 22px;
}

.trib-stats__label {
    margin: 0;
    color: var(--muted);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.trib-stats__item h3 {
    margin: 2px 0;
    color: var(--black);
    font-family: Georgia, serif;
    font-size: 1.8rem;
}

.trib-stats__sub {
    margin: 0;
    color: var(--muted);
    font-size: 0.78rem;
}

.trib-explore-heading {
    display: flex;
    align-items: center;
    gap: 18px;
    justify-content: center;
    margin-bottom: 30px;
}

.trib-explore-heading span {
    width: 60px;
    height: 1px;
    background: rgba(201, 154, 61, 0.5);
}

.trib-explore-heading h2 {
    margin: 0;
    color: var(--gold-light);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.trib-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.trib-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.trib-filter-btn {
    padding: 9px 20px;
    color: var(--gold-light);
    background: transparent;
    border: 1px solid rgba(201, 154, 61, 0.5);
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 200ms ease, color 200ms ease;
}

.trib-filter-btn.is-active,
.trib-filter-btn:hover {
    color: var(--black);
    background: var(--gold-light);
    border-color: var(--gold-light);
}

.trib-search {
    position: relative;
    display: flex;
    align-items: center;
}

.trib-search svg {
    position: absolute;
    left: 14px;
    width: 16px;
    height: 16px;
    color: rgba(255, 255, 255, 0.5);
}

.trib-search input {
    padding: 10px 16px 10px 38px;
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(201, 154, 61, 0.35);
    border-radius: 999px;
    font-size: 0.85rem;
    min-width: 220px;
}

.trib-search input:focus {
    outline: none;
    border-color: var(--gold);
}

.trib-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 60px 20px;
    margin-bottom: 40px;
    color: rgba(244, 217, 154, 0.6);
    border: 1px dashed rgba(201, 154, 61, 0.4);
    border-radius: 16px;
    text-align: center;
}

.trib-empty-state span {
    font-size: 2rem;
}

.trib-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 34px;
}

.trib-card {
    display: flex;
    flex-direction: column;
    padding: 24px 22px;
    background: var(--cream);
    border: 1px solid rgba(201, 154, 61, 0.4);
    border-radius: 16px;
    transition: transform 240ms ease, box-shadow 240ms ease;
}

.trib-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 46px rgba(0, 0, 0, 0.35);
}

.trib-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 10px;
}

.trib-card__quote {
    color: var(--gold);
    font-family: Georgia, serif;
    font-size: 2.4rem;
    line-height: 1;
}

.trib-card__heart {
    color: rgba(201, 154, 61, 0.55);
}

.trib-card__heart svg {
    width: 18px;
    height: 18px;
}

.trib-card__message {
    flex: 1;
    margin: 0 0 12px;
    color: var(--black-soft);
    font-size: 0.9rem;
    line-height: 1.6;
}

.trib-card__readmore {
    align-self: flex-start;
    margin-bottom: 14px;
    padding: 0;
    color: var(--gold);
    background: none;
    border: 0;
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: underline;
    cursor: pointer;
}

.trib-card__author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px dashed rgba(201, 154, 61, 0.35);
}

.trib-card__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    border-radius: 50%;
    object-fit: cover;
}

.trib-card__avatar--initials {
    color: var(--gold-light);
    background: var(--black);
    font-size: 0.78rem;
    font-weight: 800;
}

.trib-card__author strong {
    display: block;
    color: var(--black);
    font-size: 0.86rem;
}

.trib-card__author small {
    display: block;
    color: var(--muted);
    font-size: 0.72rem;
}

.trib-viewmore-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    margin-bottom: 50px;
    color: var(--black);
    background: var(--gold-light);
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 200ms ease, transform 200ms ease;
}

.trib-viewmore-btn:hover {
    background: var(--gold);
    transform: translateY(-2px);
}

.trib-cta {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    margin-bottom: 70px;
    padding: 26px 32px;
    background: linear-gradient(160deg, #0d0b09, #050403);
    border: 1px solid rgba(201, 154, 61, 0.5);
    border-radius: 18px;
    overflow: hidden;
}

.trib-cta__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    color: var(--gold);
    border: 1px solid rgba(201, 154, 61, 0.5);
    border-radius: 50%;
}

.trib-cta__icon svg {
    width: 20px;
    height: 20px;
}

.trib-cta__text {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex: 0 0 auto;
}

.trib-cta__script {
    color: var(--gold-light);
    font-family: 'Allura', cursive;
    font-size: 1.6rem;
}

.trib-cta__title {
    color: #fff;
    font-family: Georgia, serif;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.trib-cta__desc {
    flex: 1;
    min-width: 220px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.85rem;
}

.trib-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    color: var(--black);
    background: var(--gold-light);
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 200ms ease, transform 200ms ease;
    white-space: nowrap;
}

.trib-cta__btn:hover {
    background: var(--gold);
    transform: translateY(-2px);
}

.trib-cta__diamond {
    position: absolute;
    right: 20px;
    bottom: -10px;
    width: 70px;
    height: 70px;
    color: var(--gold);
    opacity: 0.5;
}

/* Modals shared */
.trib-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1400;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 300ms ease, visibility 300ms ease;
}

.trib-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.trib-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 1410;
    max-height: 88vh;
    overflow-y: auto;
    padding: 34px 30px;
    background: linear-gradient(160deg, #0d0b09, #050403);
    border: 1px solid rgba(201, 154, 61, 0.5);
    border-radius: 20px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -46%);
    transition: opacity 280ms ease, transform 280ms ease, visibility 280ms ease;
}

.trib-modal.is-open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%);
}

.trib-modal__close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 38px;
    height: 38px;
    color: var(--gold-light);
    background: transparent;
    border: 1px solid rgba(244, 217, 154, 0.4);
    border-radius: 50%;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.trib-modal__title {
    margin: 0 0 6px;
    color: var(--gold-light);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.6rem;
}

.trib-modal__subtitle {
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.88rem;
}

/* Read more modal */
.trib-readmore-modal {
    width: min(560px, 92vw);
    text-align: center;
}

.trib-readmore-modal__quote {
    display: block;
    color: var(--gold);
    font-family: Georgia, serif;
    font-size: 3rem;
    line-height: 1;
}

.trib-readmore-modal__message {
    color: rgba(255, 247, 232, 0.9);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 22px;
}

.trib-readmore-modal__meta p {
    margin: 0 0 4px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.82rem;
}

.trib-readmore-modal__meta strong {
    color: var(--gold-light);
    font-size: 1rem;
}

/* Submit modal / form */
.trib-submit-modal {
    width: min(640px, 92vw);
}

.trib-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.trib-form-row label,
.trib-form-full {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: rgba(255, 247, 232, 0.85);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.trib-form-full {
    margin-bottom: 18px;
}

.trib-form-row input,
.trib-form-row select,
.trib-form-full textarea,
.trib-form-full input {
    padding: 11px 14px;
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(201, 154, 61, 0.35);
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 400;
    text-transform: none;
}

.trib-form-row input:focus,
.trib-form-row select:focus,
.trib-form-full textarea:focus,
.trib-form-full input:focus {
    outline: none;
    border-color: var(--gold);
}

.trib-form-row select option {
    color: #000;
    background: #fff;
}

.trib-photo-preview {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.trib-photo-preview img {
    width: 74px;
    height: 74px;
    object-fit: cover;
    border-radius: 10px;
}

.trib-photo-preview:has(img) {
    position: relative;
}

.trib-photo-preview button {
    width: 22px;
    height: 22px;
    margin-left: -30px;
    margin-top: -6px;
    color: #fff;
    background: rgba(0, 0, 0, 0.65);
    border: 0;
    border-radius: 50%;
    font-size: 0.9rem;
    line-height: 1;
    cursor: pointer;
}

.trib-form-message {
    display: none;
    padding: 10px 14px;
    margin-bottom: 16px;
    border-radius: 10px;
    font-size: 0.85rem;
}

.trib-form-message.is-visible {
    display: block;
}

.trib-form-message.is-success {
    color: var(--black);
    background: var(--gold-light);
}

.trib-form-message.is-error {
    color: #fff;
    background: #b34141;
}

.trib-form-submit {
    display: block;
    width: 100%;
    padding: 15px;
    color: var(--black);
    background: var(--gold-light);
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.88rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 200ms ease;
}

.trib-form-submit:hover {
    background: var(--gold);
}

.trib-form-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.trib-form-submit.is-loading {
    position: relative;
    color: transparent;
}

.trib-form-submit.is-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border: 2px solid rgba(16, 15, 13, 0.35);
    border-top-color: var(--black);
    border-radius: 50%;
    animation: trib-spin 700ms linear infinite;
}

@keyframes trib-spin {
    to {
        transform: rotate(360deg);
    }
}

.trib-toast {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 1500;
    max-width: 320px;
    padding: 14px 20px;
    color: var(--black);
    background: var(--gold-light);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    font-size: 0.85rem;
    font-weight: 700;
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: transform 260ms ease, opacity 260ms ease, visibility 260ms ease;
}

.trib-toast.is-visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.trib-toast.is-error {
    color: #fff;
    background: #b34141;
}
