/* ═══════════════════════════════════════════════════
   THE CARRY — Caddy Request Board
   Comic book energy meets tournament bulletin board
   ═══════════════════════════════════════════════════ */

.carry-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1rem 3rem;
}

/* ── Alerts ───────────────────────────────────────── */
.carry-alert {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    font-weight: 500;
    animation: carry-slideDown 0.3s ease-out;
}

.carry-alert--danger {
    background: rgba(var(--theme-danger-rgb, 220, 53, 69), 0.12);
    color: var(--theme-danger);
    border: 1px solid rgba(var(--theme-danger-rgb, 220, 53, 69), 0.25);
}

@keyframes carry-slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Hero (Landing) ───────────────────────────────── */
.carry-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
    height: 320px;
    background: var(--surface-1);
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.carry-hero__image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
}

.carry-hero__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem max(1.25rem, calc(50vw - 480px + 1rem));
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        transparent 100%
    );
}

.carry-hero__tagline {
    font-size: 1.35rem;
    font-weight: 700;
    color: #00A69C;
    margin: 0 0 0.25rem;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.carry-hero__desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* ── Action Bar (Create Board) ────────────────────── */
.carry-action-bar {
    background: var(--surface-1);
    border: 1px solid var(--theme-border-color, rgba(0, 0, 0, 0.1));
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--theme-shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.06));
}

.carry-url-form__label {
    display: block;
    font-weight: 700;
    font-size: 1rem;
    color: var(--theme-text-primary);
    margin-bottom: 0.5rem;
}

.carry-url-form__label i {
    color: #00A69C;
}

.carry-url-form__row {
    display: flex;
    gap: 0.5rem;
}

.carry-url-form__input {
    flex: 1;
    min-width: 0;
}

.carry-url-form__btn {
    white-space: nowrap;
    font-weight: 600;
    flex-shrink: 0;
    width: auto;
}

.carry-url-form__help {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: var(--theme-text-muted);
}

.carry-cta-signin {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--theme-text-secondary);
    font-size: 0.95rem;
}

.carry-cta-signin i {
    font-size: 1.25rem;
    color: var(--theme-text-muted);
}

/* ── Sections ─────────────────────────────────────── */
.carry-section {
    margin-top: 2rem;
}

.carry-section__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--theme-text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.carry-section__title i {
    color: #00A69C;
}

.carry-section__count {
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--surface-2);
    color: var(--theme-text-secondary);
    padding: 0.15rem 0.6rem;
    border-radius: 99px;
    margin-left: 0.25rem;
}

/* ── Board Cards Grid ─────────────────────────────── */
.carry-boards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.carry-board-card {
    display: flex;
    flex-direction: column;
    background: var(--surface-1);
    border: 1px solid var(--surface-2);
    border-radius: 12px;
    padding: 1.25rem;
    text-decoration: none;
    color: var(--theme-text-primary);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.carry-board-card:hover {
    transform: translateY(-3px);
    border-color: #00A69C;
    box-shadow: 0 8px 24px rgba(0, 166, 156, 0.12);
    text-decoration: none;
    color: var(--theme-text-primary);
}

.carry-board-card__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.carry-board-card__tier {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #00A69C;
}

.carry-board-card__count {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--theme-success);
}

.carry-board-card__count i {
    margin-right: 0.2rem;
}

.carry-board-card__name {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.carry-board-card__details {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.82rem;
    color: var(--theme-text-secondary);
    margin-top: auto;
}

.carry-board-card__details i {
    width: 1rem;
    text-align: center;
    opacity: 0.6;
}

/* ── Empty State ──────────────────────────────────── */
.carry-empty-state {
    text-align: center;
    padding: 2.5rem 2rem;
    color: var(--theme-text-muted);
}

.carry-empty-state--compact {
    padding: 2rem;
}

.carry-empty-state i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
    opacity: 0.4;
}

.carry-empty-state p {
    margin: 0;
    font-size: 1rem;
}

/* ── Board Header ─────────────────────────────────── */
.carry-board-header {
    margin-bottom: 1.5rem;
}

.carry-board-header__back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--theme-text-secondary);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: color 0.15s;
}

.carry-board-header__back:hover {
    color: #00A69C;
}

.carry-board-header__info {
    background: var(--surface-1);
    border: 1px solid var(--surface-2);
    border-radius: 12px;
    padding: 1.5rem;
}

.carry-board-header__tier {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #1a1f2e;
    background: #00A69C;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.carry-board-header__title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--theme-text-primary);
    margin: 0 0 0.5rem;
    line-height: 1.2;
}

.carry-board-header__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--theme-text-secondary);
    margin-bottom: 0.75rem;
}

.carry-board-header__meta i {
    opacity: 0.6;
    margin-right: 0.25rem;
}

.carry-board-header__pdga-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: #00A69C;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.15s;
}

.carry-board-header__pdga-link:hover {
    opacity: 0.8;
}

.carry-board-header__closed {
    margin-top: 0.75rem;
    padding: 0.5rem 1rem;
    background: rgba(var(--theme-danger-rgb, 220, 53, 69), 0.1);
    color: var(--theme-danger);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* ── Post Request Form ────────────────────────────── */
.carry-post-request {
    background: var(--surface-1);
    border: 1px solid var(--surface-2);
    border-left: 3px solid #00A69C;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.carry-post-request__header {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.carry-post-request__header > i {
    font-size: 1.5rem;
    color: #00A69C;
    margin-top: 0.15rem;
}

.carry-post-request__header h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    color: var(--theme-text-primary);
}

.carry-post-request__header p {
    margin: 0.15rem 0 0;
    font-size: 0.9rem;
    color: var(--theme-text-secondary);
}

.carry-request-form__fields {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.carry-request-form__field {
    flex: 0 0 auto;
    min-width: 140px;
}

.carry-request-form__field--wide {
    flex: 1;
    min-width: 200px;
}

.carry-request-form__submit {
    margin-top: 1rem;
    font-weight: 600;
}

/* ── Anonymous CTA ────────────────────────────────── */
.carry-anon-cta__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.carry-anon-cta__divider {
    color: var(--theme-text-muted);
    font-size: 0.85rem;
}

.carry-anon-cta__signin {
    color: var(--theme-link);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
}

.carry-anon-cta__signin:hover {
    text-decoration: underline;
}

.carry-request-card__anon-cta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding-top: 0.75rem;
    border-top: 1px solid var(--surface-2);
    margin-top: 0.75rem;
}

/* ── Request Cards ────────────────────────────────── */
.carry-request-card {
    background: var(--surface-1);
    border: 1px solid var(--surface-2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: border-color 0.15s;
}

.carry-request-card:hover {
    border-color: rgba(0, 166, 156, 0.2);
}

.carry-request-card--closed {
    opacity: 0.55;
}

.carry-request-card--closed a {
    pointer-events: auto;
}

.carry-request-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.carry-request-card__player {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.carry-request-card__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.carry-request-card__badges {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

/* ── Flippy Bio Section ───────────────────────────── */
.carry-request-card__flippy {
    background: linear-gradient(135deg, rgba(0, 166, 156, 0.06), rgba(255, 107, 107, 0.04));
    border: 1px solid rgba(0, 166, 156, 0.15);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    position: relative;
}

.carry-request-card__tagline {
    font-size: 1.15rem;
    font-weight: 700;
    font-style: italic;
    color: var(--theme-text-primary);
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.carry-request-card__bio {
    color: var(--theme-text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0 0 0.5rem;
}

.carry-request-card__flippy-attr {
    font-size: 0.75rem;
    color: var(--theme-text-muted);
    font-style: italic;
}

.carry-request-card__flippy-attr i {
    color: #FF6B6B;
}

/* ── Competitor Note ──────────────────────────────── */
.carry-request-card__note {
    font-size: 0.9rem;
    color: var(--theme-text-secondary);
    padding: 0.5rem 0.75rem;
    background: var(--surface-2);
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.carry-request-card__note i {
    color: var(--theme-text-muted);
    margin-right: 0.35rem;
}

/* ── Offer Form ───────────────────────────────────── */
.carry-request-card__offer-form {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--surface-2);
}

.carry-offer-input {
    display: flex;
    gap: 0.5rem;
}

.carry-offer-input .btn {
    white-space: nowrap;
    font-weight: 600;
    flex-shrink: 0;
}

/* ── Owner Actions ────────────────────────────────── */
.carry-request-card__owner-actions {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--surface-2);
    display: flex;
}

/* ── Offers List ──────────────────────────────────── */
.carry-offers {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--surface-2);
}

.carry-offers__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--theme-text-primary);
    margin: 0 0 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.carry-offers__title i {
    color: #00A69C;
}

.carry-offers__count {
    font-size: 0.75rem;
    background: var(--surface-2);
    color: var(--theme-text-secondary);
    padding: 0.1rem 0.5rem;
    border-radius: 99px;
}

.carry-offer {
    padding: 0.85rem 1rem;
    background: var(--surface-2);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    border-left: 3px solid transparent;
    transition: border-color 0.15s;
}

.carry-offer--accepted {
    border-left-color: var(--theme-success);
    background: rgba(var(--theme-success-rgb, 25, 135, 84), 0.06);
}

.carry-offer__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.carry-offer__player {
    font-weight: 600;
}

.carry-offer__message {
    font-style: italic;
    color: var(--theme-text-secondary);
    font-size: 0.9rem;
    margin: 0.25rem 0 0.5rem;
}

.carry-offer__actions {
    display: flex;
    gap: 0.5rem;
}

/* ── My Offer Status ──────────────────────────────── */
.carry-my-offer {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--surface-2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ── Contact Card (matched pairs only) ────────────── */
/* ── Matched Banner ────────────────────────────────── */
.carry-matched-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(var(--theme-success-rgb, 25, 135, 84), 0.1), rgba(0, 166, 156, 0.08));
    border: 1px solid rgba(var(--theme-success-rgb, 25, 135, 84), 0.25);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.carry-matched-banner__icon {
    font-size: 1.5rem;
    color: var(--theme-success);
}

.carry-matched-banner__text {
    font-weight: 700;
    color: var(--theme-success);
    font-size: 1rem;
}

.carry-matched-banner__sub {
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--theme-text-secondary);
}

/* ── Contact Card (matched pairs only) ────────────── */
.carry-contact-card {
    margin-top: 0.75rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(var(--theme-success-rgb, 25, 135, 84), 0.08), rgba(0, 166, 156, 0.06));
    border: 1px solid rgba(var(--theme-success-rgb, 25, 135, 84), 0.2);
    border-radius: 10px;
}

.carry-contact-card--inline {
    margin-top: 0.5rem;
}

.carry-contact-card__header {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--theme-success);
    margin-bottom: 0.5rem;
}

.carry-contact-card__header i {
    margin-right: 0.25rem;
}

.carry-contact-card__details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.carry-contact-card__item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: var(--theme-text-primary);
    text-decoration: none;
    padding: 0.35rem 0.75rem;
    background: var(--surface-1);
    border: 1px solid var(--surface-2);
    border-radius: 8px;
    transition: border-color 0.15s, background 0.15s;
}

.carry-contact-card__item:hover {
    border-color: #00A69C;
    background: rgba(0, 166, 156, 0.06);
    color: var(--theme-text-primary);
    text-decoration: none;
}

.carry-contact-card__item i {
    color: #00A69C;
    font-size: 0.85rem;
}

/* ── Badge System ─────────────────────────────────── */
.carry-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.4;
}

.carry-badge--division {
    background: rgba(0, 104, 186, 0.15);
    color: #6fb8f5;
}

@media (prefers-color-scheme: light) {
    .carry-badge--division {
        color: #0068BA;
    }
}

.carry-badge--rating {
    background: rgba(255, 179, 71, 0.15);
    color: #d4860a;
}

.carry-badge--open {
    background: rgba(var(--theme-success-rgb, 25, 135, 84), 0.12);
    color: var(--theme-success);
}

.carry-badge--filled {
    background: rgba(0, 166, 156, 0.12);
    color: #00A69C;
}

.carry-badge--closed {
    background: var(--surface-2);
    color: var(--theme-text-muted);
}

.carry-badge--pending {
    background: rgba(255, 179, 71, 0.15);
    color: #b8860b;
}

.carry-badge--accepted {
    background: rgba(var(--theme-success-rgb, 25, 135, 84), 0.15);
    color: var(--theme-success);
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 768px) {
    .carry-hero {
        height: 240px;
    }

    .carry-hero__tagline {
        font-size: 1.1rem;
    }

    .carry-hero__overlay {
        padding: 1.25rem;
    }

    .carry-board-header__title {
        font-size: 1.35rem;
    }

    .carry-board-header__meta {
        flex-direction: column;
        gap: 0.25rem;
    }

    .carry-request-card__header {
        flex-direction: column;
    }

    .carry-url-form__row {
        flex-direction: column;
    }

    .carry-offer-input {
        flex-direction: column;
    }

    .carry-request-form__fields {
        flex-direction: column;
    }

    .carry-boards-grid {
        grid-template-columns: 1fr;
    }
}
