/**
 * Zelda Fan Content – single profile pages (v2.6.0)
 *
 * Shared stylesheet for both profile templates:
 *   - templates/single-profile-new.php  (claimed member profiles)
 *   - templates/single-fan_profile.php  (ghost / unclaimed Extreme Fan profiles)
 *
 * All colours, fonts and radii resolve through zfc-tokens.css, which maps them
 * to the active theme's theme.json presets — no hard-coded palette here.
 * Selectors are scoped to .zfc-profile-page so the file is harmless on pages
 * that do not render a profile.
 */

.zfc-profile-page {
    max-width: 1120px;
    margin: 0 auto;
    padding: clamp(12px, 2vw, 28px);
    font-family: var(--font-family-primary);
    color: var(--text-primary);
}

.zfc-profile-page *,
.zfc-profile-page *::before,
.zfc-profile-page *::after {
    box-sizing: border-box;
}

/* -------------------------------------------------------------------------
   Hero – dark band framed in accent, matching .zfc-hero-banner
   ------------------------------------------------------------------------- */
.zfc-profile-hero {
    background-color: var(--main-bg);
    border: 2px solid var(--main-gold);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--main-accent) 35%, transparent), 0 10px 26px var(--main-shadow);
    padding: clamp(24px, 4vw, 40px);
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.zfc-profile-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 95% 0, var(--zfc-c-accent-tint), transparent 45%),
        repeating-linear-gradient(125deg, transparent 0 65px, rgba(255, 255, 255, 0.025) 65px 66px);
    pointer-events: none;
}

.zfc-profile-hero .zfc-hero-overlay {
    position: relative;
    display: flex;
    align-items: center;
    gap: 28px;
}

.zfc-profile-avatar {
    flex-shrink: 0;
}

.zfc-profile-avatar img,
.zfc-profile-avatar .zfc-avatar-fallback {
    display: block;
    width: 112px;
    height: 112px;
    border: 3px solid var(--main-gold);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    object-fit: cover;
}

.zfc-profile-avatar .zfc-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--main-green);
    color: var(--main-accent);
    font-family: var(--font-family-accent);
    font-size: 2.6rem;
    font-weight: var(--font-weight-bold);
}

.zfc-profile-info {
    min-width: 0;
    text-align: left;
}

.zfc-profile-designation {
    display: block;
    font-size: 0.75rem;
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--main-accent);
    margin-bottom: 8px;
}

.zfc-profile-page .zfc-profile-name {
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.1;
    color: var(--text-light);
    margin: 0 0 10px;
    font-family: var(--font-family-accent);
    font-weight: var(--font-weight-bold);
    text-shadow: none;
    overflow-wrap: anywhere;
}

.zfc-profile-name::after {
    display: none;
}

.zfc-profile-details {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    color: color-mix(in srgb, var(--text-light) 82%, transparent);
    font-size: 0.9rem;
}

.zfc-profile-details span {
    overflow-wrap: anywhere;
}

.zfc-profile-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.zfc-profile-page .zfc-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 0.7rem;
    font-weight: var(--font-weight-extra-bold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-family: var(--font-family-primary);
}

.zfc-badge-extreme {
    background: var(--main-gold);
    color: var(--main-bg);
}

.zfc-badge-unclaimed {
    background: transparent;
    border: 1px solid var(--main-accent);
    color: var(--main-accent);
}

.zfc-badge-game {
    border: 1px solid color-mix(in srgb, var(--text-light) 30%, transparent);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-light);
}

.zfc-hero-actions {
    margin-left: auto;
    align-self: flex-start;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.zfc-hero-actions .zfc-nav-link {
    background: color-mix(in srgb, var(--text-light) 10%, transparent);
    border-color: color-mix(in srgb, var(--text-light) 30%, transparent);
    color: var(--text-light);
}

.zfc-hero-actions .zfc-nav-link:hover {
    background: color-mix(in srgb, var(--text-light) 18%, transparent);
    border-color: var(--main-accent);
    color: var(--text-light);
}

.zfc-hero-actions .zfc-nav-primary {
    background: var(--main-gold);
    border-color: var(--main-accent);
    color: var(--main-bg);
}

.zfc-hero-actions .zfc-nav-primary:hover {
    background: var(--main-accent);
    border-color: var(--main-accent);
    color: var(--main-bg);
}

/* -------------------------------------------------------------------------
   Nav bar
   ------------------------------------------------------------------------- */
.zfc-profile-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 8px;
    background: var(--main-light);
    border: 1px solid var(--zfc-game-border);
}

.zfc-profile-page .zfc-nav-link {
    padding: 10px 16px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: var(--font-weight-medium);
    background: var(--zfc-c-paper);
    border: 1px solid var(--zfc-game-border);
    transition: background-color var(--transition-speed) var(--transition-easing);
}

.zfc-profile-page .zfc-nav-link:hover {
    background: var(--zfc-c-paper-well);
    color: var(--text-primary);
    text-decoration: none;
}

.zfc-profile-page .zfc-nav-primary {
    background: var(--main-bg);
    color: var(--text-light);
    border-color: var(--main-gold);
}

.zfc-profile-page .zfc-nav-primary:hover {
    background: var(--main-green);
    color: var(--main-accent);
}

/* -------------------------------------------------------------------------
   Content sections – parchment cards, square corners, hairline borders
   ------------------------------------------------------------------------- */
.zfc-profile-section {
    min-width: 0;
    background: var(--main-light);
    border: 1px solid var(--zfc-game-border);
    box-shadow: 0 6px 14px var(--main-shadow);
    padding: clamp(20px, 3vw, 28px);
    margin-bottom: 24px;
}

.zfc-profile-overview .zfc-profile-section {
    margin-bottom: 24px;
}

.zfc-profile-page .zfc-section-title {
    font-size: 1.45rem;
    color: var(--main-bg);
    margin: 0 0 16px;
    padding: 0 0 10px;
    border: 0;
    border-bottom: 1px solid var(--zfc-game-border);
    font-family: var(--font-family-accent);
    font-weight: var(--font-weight-bold);
    display: flex;
    align-items: center;
    gap: 8px;
}

.zfc-profile-bio {
    font-size: 0.98rem;
    line-height: 1.85;
    color: var(--text-primary);
    overflow-wrap: anywhere;
}

.zfc-profile-bio p:last-child {
    margin-bottom: 0;
}

.zfc-profile-bio img {
    max-width: 100%;
    height: auto;
}

.zfc-section-intro {
    margin: -6px 0 16px;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
}

/* -------------------------------------------------------------------------
   Social links
   ------------------------------------------------------------------------- */
.zfc-social-links {
    display: grid;
    gap: 10px;
}

.zfc-profile-page .zfc-social-link {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 12px;
    padding: 12px;
    background: var(--zfc-c-paper);
    border: 1px solid var(--zfc-game-border);
    color: var(--text-primary);
    text-decoration: none;
    transition: background-color var(--transition-speed) var(--transition-easing),
        border-color var(--transition-speed) var(--transition-easing);
}

.zfc-profile-page a.zfc-social-link:hover {
    background: var(--zfc-c-paper-well);
    border-color: var(--main-gold);
    text-decoration: none;
}

.zfc-social-icon {
    display: grid;
    place-items: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    background: var(--main-light);
    border: 1px solid var(--zfc-game-border);
    color: var(--text-link);
    font-size: 1.05rem;
    font-weight: var(--font-weight-bold);
    font-family: var(--font-family-accent);
}

.zfc-social-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.zfc-social-detail {
    flex: 1;
    min-width: 0;
}

.zfc-social-detail strong {
    display: block;
    font-size: 0.9rem;
}

.zfc-social-value {
    display: block;
    margin-top: 2px;
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.zfc-social-arrow {
    color: var(--text-link);
    font-size: 1.15rem;
}

.zfc-profile-page .zfc-social-text {
    background: var(--main-light);
    border-style: dashed;
}

.zfc-social-text .zfc-social-value {
    font-family: ui-monospace, monospace;
}

/* -------------------------------------------------------------------------
   Extreme Fan feature panel – dark band like the hero
   ------------------------------------------------------------------------- */
.zfc-extreme-section,
.zfc-claim-section {
    background: var(--main-bg);
    border-color: var(--main-gold);
    color: var(--text-light);
}

.zfc-extreme-section .zfc-section-title,
.zfc-claim-section .zfc-section-title {
    color: var(--main-gold);
    border-bottom-color: var(--main-gold);
}

.zfc-extreme-content {
    color: var(--text-light);
    line-height: var(--line-height-loose);
}

.zfc-extreme-content p {
    margin: 0 0 var(--space-md) 0;
}

.zfc-extreme-content p:last-child {
    margin-bottom: 0;
}

.zfc-extreme-content img {
    max-width: 100%;
    height: auto;
    margin: var(--space-md) 0;
    border: 2px solid var(--main-gold);
}

.zfc-extreme-content a {
    color: var(--main-accent);
}

.zfc-extreme-content a:hover {
    color: var(--main-gold);
}

.zfc-extreme-content ul,
.zfc-extreme-content ol {
    margin: var(--space-md) 0;
    padding-left: var(--space-lg);
}

.zfc-extreme-content li {
    margin-bottom: var(--space-xs);
}

/* -------------------------------------------------------------------------
   Claim section (ghost profiles) – benefits grid inside the dark panel
   ------------------------------------------------------------------------- */
.zfc-claim-intro {
    color: color-mix(in srgb, var(--text-light) 82%, transparent);
    margin: 0;
    line-height: 1.7;
}

.zfc-claim-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.zfc-claim-benefit {
    text-align: center;
    padding: 16px;
    background: color-mix(in srgb, var(--text-light) 8%, transparent);
    border: 1px solid color-mix(in srgb, var(--main-gold) 45%, transparent);
}

.zfc-claim-benefit-icon {
    font-size: 26px;
    margin-bottom: 10px;
}

.zfc-claim-benefit h3 {
    margin: 0 0 8px;
    font-size: 1rem;
    color: var(--main-accent);
    font-family: var(--font-family-accent);
}

.zfc-claim-benefit p {
    margin: 0;
    color: color-mix(in srgb, var(--text-light) 78%, transparent);
    font-size: 0.9rem;
    line-height: 1.55;
}

.zfc-claim-cta {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid color-mix(in srgb, var(--main-gold) 45%, transparent);
}

.zfc-profile-page .claim-profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--main-gold);
    color: var(--main-bg);
    border: 0;
    padding: 14px 36px;
    font-size: 1rem;
    font-weight: var(--font-weight-extra-bold);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    font-family: var(--font-family-primary);
    transition: background-color var(--transition-speed) var(--transition-easing);
}

.zfc-profile-page .claim-profile-btn:hover {
    background: var(--main-accent);
    color: var(--main-bg);
}

.claim-profile-btn img {
    width: 20px;
    height: 20px;
}

/* -------------------------------------------------------------------------
   Claim modal
   ------------------------------------------------------------------------- */
.zfc-claim-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    overflow: auto;
    font-family: var(--font-family-primary);
    color: var(--text-primary);
}

.zfc-claim-modal-panel {
    position: relative;
    max-width: 500px;
    margin: 50px auto;
    background: var(--main-light);
    border: 2px solid var(--main-gold);
    overflow: hidden;
}

.zfc-claim-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: var(--main-accent);
    z-index: 2;
}

.zfc-claim-modal-close:hover {
    color: var(--text-light);
}

.zfc-claim-modal-header {
    background: var(--main-bg);
    color: var(--text-light);
    padding: 22px 25px;
    text-align: center;
}

.zfc-claim-modal-header h2 {
    margin: 0;
    color: var(--main-gold);
    font-family: var(--font-family-accent);
    font-size: 1.5rem;
}

.zfc-claim-modal-body {
    padding: 26px;
}

.zfc-claim-modal-body .zfc-email-hint {
    background: var(--zfc-c-paper-well);
    border: 1px solid var(--zfc-game-border);
    padding: 14px;
    text-align: center;
}

.zfc-claim-modal-body label {
    display: block;
    margin-bottom: 5px;
    font-weight: var(--font-weight-bold);
}

.zfc-claim-modal-body .zfc-field {
    margin-bottom: 18px;
}

.zfc-claim-modal-body input[type="url"],
.zfc-claim-modal-body textarea {
    width: 100%;
    padding: 12px;
    background: var(--zfc-c-paper);
    border: 1px solid var(--zfc-game-border);
    color: var(--text-primary);
    font-family: var(--font-family-primary);
}

.zfc-claim-modal-body input[type="url"]:focus,
.zfc-claim-modal-body textarea:focus {
    outline: 2px solid var(--main-accent);
    outline-offset: 1px;
}

.zfc-claim-modal-body small {
    color: var(--text-muted);
}

.zfc-claim-modal-body .zfc-claim-submit {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    font-weight: var(--font-weight-extra-bold);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: var(--main-bg);
    color: var(--text-light);
    border: 2px solid var(--main-gold);
    cursor: pointer;
    font-family: var(--font-family-primary);
}

.zfc-claim-modal-body .zfc-claim-submit:hover {
    background: var(--main-green);
    color: var(--main-accent);
}

.zfc-claim-success {
    text-align: center;
    padding: 20px;
}

.zfc-claim-success .zfc-claim-check {
    display: inline-grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
    border: 2px solid var(--main-gold);
    background: var(--zfc-c-accent-tint);
    color: var(--main-gold);
    font-size: 30px;
    font-weight: var(--font-weight-extra-bold);
}

.zfc-claim-error {
    background: color-mix(in srgb, var(--zfc-c-danger) 12%, var(--main-light));
    border: 1px solid var(--zfc-c-danger);
    padding: 14px;
    color: var(--zfc-c-danger);
    margin-top: 15px;
}

/* -------------------------------------------------------------------------
   Gallery
   ------------------------------------------------------------------------- */
.zfc-profile-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--space-md);
}

.zfc-profile-page .zfc-gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    border: 1px solid var(--zfc-game-border);
    display: block;
    transition: border-color var(--transition-speed) var(--transition-easing),
        transform var(--transition-speed) var(--transition-easing),
        box-shadow var(--transition-speed) var(--transition-easing);
}

.zfc-profile-page .zfc-gallery-item:hover {
    border-color: var(--main-gold);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px var(--main-shadow);
}

.zfc-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.zfc-gallery-item:hover img {
    transform: scale(1.05);
}

.zfc-gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, color-mix(in srgb, var(--main-bg) 95%, black));
    padding: 30px 10px 10px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.zfc-gallery-item:hover .zfc-gallery-overlay,
.zfc-gallery-item:focus-visible .zfc-gallery-overlay {
    transform: translateY(0);
}

.zfc-image-title {
    color: var(--main-gold);
    font-weight: var(--font-weight-bold);
    font-size: 0.85em;
    display: block;
    margin-bottom: 2px;
}

.zfc-image-caption {
    color: var(--main-accent);
    font-size: 0.75em;
    display: block;
}

/* -------------------------------------------------------------------------
   Content tabs + grid
   ------------------------------------------------------------------------- */
.zfc-content-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.zfc-profile-page .zfc-tab-btn {
    padding: 10px 16px;
    border: 1px solid var(--zfc-game-border);
    background: var(--zfc-c-paper);
    cursor: pointer;
    font-family: var(--font-family-primary);
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--text-primary);
    font-weight: var(--font-weight-medium);
    transition: background-color var(--transition-speed) var(--transition-easing),
        border-color var(--transition-speed) var(--transition-easing);
}

.zfc-profile-page .zfc-tab-btn:hover {
    background: var(--zfc-c-paper-well);
    border-color: var(--main-gold);
}

.zfc-profile-page .zfc-tab-btn.active,
.zfc-profile-page .zfc-tab-btn[aria-pressed="true"] {
    background: var(--main-bg);
    border-color: var(--main-gold);
    color: var(--text-light);
}

.zfc-content-grid {
    min-width: 0;
    scroll-margin-top: calc(var(--menu-height, 145px) + 20px);
}

.zfc-pagination-summary {
    grid-column: 1 / -1;
    margin: 24px 0 12px;
    color: var(--text-muted);
    text-align: center;
    font-size: 0.85rem;
}

.zfc-content-pagination {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.zfc-content-pagination .zfc-page-btn {
    min-width: 40px;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid var(--zfc-game-border);
    background: var(--zfc-c-paper);
    color: var(--text-primary);
    font: inherit;
    font-size: 0.85rem;
    line-height: 1.4;
    cursor: pointer;
}

.zfc-content-pagination .zfc-page-btn:hover:not(:disabled),
.zfc-content-pagination .zfc-page-btn[aria-current="page"] {
    background: var(--main-bg);
    border-color: var(--main-gold);
    color: var(--text-light);
}

.zfc-content-pagination .zfc-page-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.zfc-page-gap {
    color: var(--text-muted);
    padding: 0 2px;
}

.zfc-content-grid .content-items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.zfc-content-grid .content-item {
    min-width: 0;
    padding: 16px;
    background: var(--zfc-c-paper);
    border: 1px solid var(--zfc-game-border);
    transition: background-color var(--transition-speed) var(--transition-easing),
        border-color var(--transition-speed) var(--transition-easing);
}

.zfc-content-grid .content-item.has-thumbnail {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.zfc-content-grid .content-thumbnail {
    flex-shrink: 0;
    width: 88px;
    height: 88px;
    overflow: hidden;
    border: 1px solid var(--zfc-game-border);
}

.zfc-content-grid .content-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zfc-content-grid .content-info {
    flex: 1;
    min-width: 0;
}

.zfc-content-grid .content-item:hover {
    border-color: var(--main-gold);
    background: var(--main-light);
}

.zfc-content-grid .content-item h4 {
    margin: 0 0 8px;
    font-size: 1.03rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.zfc-content-grid .content-item h4 a {
    color: var(--main-bg);
    text-decoration: none;
    font-weight: var(--font-weight-bold);
}

.zfc-content-grid .content-item h4 a:hover {
    color: var(--text-link);
    text-decoration: underline;
}

.zfc-content-grid .content-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0 0 8px;
}

.zfc-content-grid .content-type {
    background: var(--zfc-c-accent-tint);
    color: var(--text-link);
    padding: 3px 8px;
    font-weight: var(--font-weight-medium);
}

.zfc-content-grid .content-excerpt {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.zfc-loading,
.zfc-no-content {
    text-align: center;
    padding: 32px 20px;
    background: var(--zfc-c-paper);
    border: 1px solid var(--zfc-game-border);
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* -------------------------------------------------------------------------
   Comments
   ------------------------------------------------------------------------- */
.zfc-comments-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.zfc-comment-item,
.zfc-comments-list .comment {
    padding: var(--space-md);
    background: var(--zfc-c-paper);
    border: 1px solid var(--zfc-game-border);
}

.zfc-comment-content {
    color: var(--text-primary);
    font-size: 0.95em;
    line-height: var(--line-height-normal);
    margin-bottom: var(--space-sm);
}

.zfc-comment-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
    font-size: 0.85em;
    color: var(--text-muted);
}

.zfc-comment-context a {
    color: var(--main-bg);
    font-weight: var(--font-weight-bold);
    text-decoration: none;
}

.zfc-comment-context a:hover {
    color: var(--main-gold);
}

.zfc-comment-date {
    font-size: 0.9em;
}

/* comment_form() output inside a profile section */
.zfc-profile-section .comment-form label {
    display: block;
    margin-bottom: 4px;
    font-weight: var(--font-weight-bold);
}

.zfc-profile-section .comment-form textarea,
.zfc-profile-section .comment-form input[type="text"],
.zfc-profile-section .comment-form input[type="email"],
.zfc-profile-section .comment-form input[type="url"] {
    width: 100%;
    padding: 10px 12px;
    background: var(--zfc-c-paper);
    border: 1px solid var(--zfc-game-border);
    color: var(--text-primary);
    font-family: var(--font-family-primary);
}

.zfc-profile-section .comment-form :is(textarea, input):focus {
    outline: 2px solid var(--main-accent);
    outline-offset: 1px;
}

.zfc-profile-section .comment-form .submit {
    padding: 12px 28px;
    background: var(--main-bg);
    color: var(--text-light);
    border: 2px solid var(--main-gold);
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-bold);
    cursor: pointer;
}

.zfc-profile-section .comment-form .submit:hover {
    background: var(--main-green);
    color: var(--main-accent);
}

/* -------------------------------------------------------------------------
   Footer back link
   ------------------------------------------------------------------------- */
.zfc-profile-footer {
    text-align: center;
    padding: var(--space-lg) 0;
}

.zfc-profile-page .zfc-back-link {
    display: inline-block;
    padding: var(--space-sm) var(--space-lg);
    background: var(--main-light);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: var(--font-weight-bold);
    border: 1px solid var(--zfc-game-border);
    transition: border-color var(--transition-speed) var(--transition-easing),
        background-color var(--transition-speed) var(--transition-easing);
}

.zfc-profile-page .zfc-back-link:hover {
    background: var(--zfc-c-paper-well);
    border-color: var(--main-gold);
    text-decoration: none;
    color: var(--text-primary);
}

/* -------------------------------------------------------------------------
   Responsive + accessibility
   ------------------------------------------------------------------------- */
.zfc-profile-page a:focus-visible,
.zfc-profile-page button:focus-visible {
    outline: 3px solid var(--main-accent);
    outline-offset: 2px;
}

@media (max-width: 900px) {
    .zfc-content-grid .content-items {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 600px) {
    .zfc-profile-page {
        padding: 12px;
    }

    .zfc-profile-hero {
        padding: 24px;
    }

    .zfc-profile-hero .zfc-hero-overlay {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .zfc-profile-avatar img,
    .zfc-profile-avatar .zfc-avatar-fallback {
        width: 88px;
        height: 88px;
        font-size: 2rem;
    }

    .zfc-hero-actions {
        margin-left: 0;
        justify-content: flex-start;
    }

    .zfc-profile-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .zfc-content-grid .content-thumbnail {
        width: 64px;
        height: 64px;
    }

    .zfc-profile-page .zfc-tab-btn {
        padding: 10px 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .zfc-profile-page *,
    .zfc-profile-page *::before,
    .zfc-profile-page *::after {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important;
    }
}
