/* ============================================================
   Ghost Hunters Map — Team single & archive styles
   ============================================================ */

/* ================================================================
   SINGLE TEAM
   ================================================================ */

/* ---------- Hero ---------- */
.ghm-team-hero {
    background-color: var(--color-bg-surface);
    border-bottom: 1px solid var(--color-border);
    padding-block: var(--spacing-xl);
}

.ghm-team-hero__inner {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: var(--spacing-xl);
    align-items: start;
}

@media (max-width: 640px) {
    .ghm-team-hero__inner {
        grid-template-columns: 1fr;
    }
}

/* ---------- Logo ---------- */
.ghm-team-logo-img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.ghm-team-logo-placeholder {
    width: 160px;
    height: 160px;
    background-color: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ghm-team-logo-placeholder svg {
    width: 80px;
    height: 80px;
}

/* ---------- Hero info ---------- */
.ghm-team-hero__actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    flex-wrap: wrap;
}

.ghm-team-hero__name {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--color-ghost-white);
    margin-bottom: var(--spacing-sm);
    line-height: 1.15;
}

.ghm-team-hero__location {
    color: var(--color-text-muted);
    font-size: 1rem;
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: 6px;
}

.ghm-team-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.ghm-team-meta-item {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.ghm-team-hero__links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    align-items: center;
}

/* ---------- Body layout ---------- */
.ghm-team-body {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: var(--spacing-xl);
    align-items: start;
}

@media (max-width: 768px) {
    .ghm-team-body {
        grid-template-columns: 1fr;
    }
}

/* ---------- Prose content ---------- */
.ghm-prose {
    color: var(--color-text);
    line-height: 1.8;
    font-size: 1rem;
}

.ghm-prose p {
    margin-bottom: var(--spacing-md);
}

.ghm-prose p:last-child {
    margin-bottom: 0;
}

/* ---------- Sidebar block ---------- */
.ghm-team-sidebar-block {
    background-color: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
}

.ghm-team-sidebar-block__title {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-sm);
}

/* ---------- Tags ---------- */
.ghm-tag-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.ghm-tag {
    display: inline-block;
    font-size: 0.78rem;
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
    border-radius: 99px;
    padding: 2px 10px;
    text-decoration: none;
    transition: color var(--transition), border-color var(--transition);
}

.ghm-tag:hover {
    color: var(--color-ghost-white);
    border-color: var(--color-accent);
    opacity: 1;
}

/* ================================================================
   ARCHIVE
   ================================================================ */

/* ---------- Archive header ---------- */
.ghm-archive-header {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: var(--spacing-lg);
}

.ghm-archive-header .ghm-title {
    margin-bottom: 0;
}

.ghm-archive-header__sub {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    flex: 1;
}

/* ---------- Teams grid ---------- */
.ghm-teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

/* ---------- Team card ---------- */
.ghm-team-card {
    background-color: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.ghm-team-card:hover {
    border-color: var(--color-accent);
    box-shadow: 0 4px 24px rgba(0, 212, 255, 0.18), 0 2px 8px rgba(0, 0, 0, 0.4);
}

.ghm-team-card__media-link {
    display: block;
    overflow: hidden;
}

.ghm-team-card__logo {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.ghm-team-card:hover .ghm-team-card__logo {
    transform: scale(1.04);
}

.ghm-team-card__logo-placeholder {
    width: 100%;
    height: 160px;
    background-color: var(--color-bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ghm-team-card__logo-placeholder svg {
    width: 60px;
    height: 60px;
    opacity: 0.4;
}

.ghm-team-card__body {
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    flex: 1;
}

.ghm-team-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
}

.ghm-team-card__title a {
    color: var(--color-ghost-white);
    text-decoration: none;
}

.ghm-team-card__title a:hover {
    text-decoration: underline;
    opacity: 1;
}

.ghm-team-card__location,
.ghm-team-card__founded {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin: 0;
}

.ghm-team-card__excerpt {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    flex: 1;
    margin-top: var(--spacing-xs);
}

.ghm-team-card__excerpt p {
    margin: 0;
}

.ghm-team-card__cta {
    display: inline-block;
    margin-top: var(--spacing-sm);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-accent);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color var(--transition);
}

.ghm-team-card__cta:hover {
    color: var(--color-ghost-white);
    text-decoration: underline;
    opacity: 1;
}

/* ---------- Pagination ---------- */
.ghm-pagination {
    margin-top: var(--spacing-xl);
    display: flex;
    justify-content: center;
}

.ghm-pagination .nav-links {
    display: flex;
    gap: var(--spacing-xs);
    align-items: center;
}

.ghm-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    font-size: 0.875rem;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: border-color var(--transition), color var(--transition);
}

.ghm-pagination .page-numbers.current,
.ghm-pagination .page-numbers:hover {
    border-color: var(--color-accent);
    color: var(--color-ghost-white);
    opacity: 1;
}

.ghm-pagination .page-numbers.dots {
    border-color: transparent;
}

/* ---------- Sidebar wrapper (multiple blocks) ---------- */
.ghm-team-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    position: sticky;
    top: calc(64px + var(--spacing-md));
}

.ghm-team-sidebar-block {
    background-color: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
}

/* ---------- Social links ---------- */
.ghm-social-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.ghm-social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    text-decoration: none;
    padding: 4px 0;
    transition: color var(--transition);
}

.ghm-social-link:hover {
    color: var(--color-accent);
    opacity: 1;
}

.ghm-social-link__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    flex-shrink: 0;
    font-style: normal;
}

/* ---------- Claim banner ---------- */
.ghm-claim-banner {
    background: linear-gradient(135deg, var(--color-bg-elevated) 0%, rgba(0, 212, 255, 0.06) 100%);
    border-top: 1px solid rgba(0, 212, 255, 0.25);
    border-bottom: 1px solid rgba(0, 212, 255, 0.25);
    padding-block: var(--spacing-xl);
}

.ghm-claim-banner__inner {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-xl);
}

.ghm-claim-banner__text {
    flex: 1;
}

.ghm-claim-banner__eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin: 0 0 6px;
}

.ghm-claim-banner__title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-ghost-white);
    margin: 0 0 8px;
    line-height: 1.2;
}

.ghm-claim-banner__sub {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin: 0;
    max-width: 480px;
    line-height: 1.6;
}

.ghm-claim-banner__action {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    min-width: 280px;
}

/* Status notices */
.ghm-claim-notice {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin: 0;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}

.ghm-claim-notice--success {
    color: #5cbf8a;
    border-color: rgba(92, 191, 138, 0.35);
    background-color: rgba(92, 191, 138, 0.06);
}

/* Claim form */
.ghm-claim-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.ghm-claim-form--hidden {
    display: none;
}

.ghm-claim-form__hint {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

.ghm-claim-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
}

.ghm-claim-form__field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ghm-claim-form__field label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-text-muted);
    letter-spacing: 0.04em;
}

.ghm-claim-form__field input,
.ghm-claim-form__field textarea {
    background-color: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-ghost-white);
    font-size: 0.875rem;
    padding: 8px 10px;
    width: 100%;
    transition: border-color var(--transition);
    font-family: inherit;
}

.ghm-claim-form__field input:focus,
.ghm-claim-form__field textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
}

.ghm-claim-form__field textarea {
    resize: vertical;
    min-height: 80px;
}

@media (max-width: 768px) {
    .ghm-claim-banner__inner {
        flex-direction: column;
    }

    .ghm-claim-banner__action {
        width: 100%;
        min-width: unset;
    }

    .ghm-claim-form__row {
        grid-template-columns: 1fr;
    }
}

/* ---------- Investigation videos ---------- */
.ghm-team-videos {
    border-top: 1px solid var(--color-border);
}

.ghm-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.ghm-video-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: var(--color-bg-elevated);
}

.ghm-video-wrap iframe,
.ghm-video-wrap embed,
.ghm-video-wrap object {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    border: none;
}

.ghm-video-wrap--fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
    border: 1px solid var(--color-border);
    font-size: 0.875rem;
}

/* ---------- Team group photo ---------- */
.ghm-team-photo-wrap {
    margin-top: var(--spacing-md);
}

.ghm-team-photo {
    display: block;
    margin-inline: auto;
    max-width: 720px;
    width: 100%;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    object-fit: cover;
}

/* form photo preview */
.ghm-form__current-photo {
    margin-bottom: var(--spacing-sm);
}

.ghm-form__photo-preview {
    display: block;
    max-width: 320px;
    width: 100%;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    object-fit: cover;
    margin-bottom: 4px;
}
