/**
 * Header Component Styles
 * Minimal, text-only, low visual weight
 * Single-slot action surface
 */

/* ========================================
   Base Header Container
   ======================================== */

#site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 100;
    pointer-events: none; /* Allow clicks through empty space */
}

#site-header.header--empty {
    display: none;
}

/* ========================================
   Header Action Link
   ======================================== */

.header-action {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    color: #86868b;
    text-decoration: none;
    opacity: var(--header-opacity, 0.65);
    transition: opacity 0.2s ease, color 0.2s ease;
    pointer-events: auto; /* Re-enable clicks on link */
}

.header-action:hover {
    opacity: 1;
    color: #1d1d1f;
    text-decoration: underline;
}

/* ========================================
   Share Surface (Minimal)
   ======================================== */

.share-surface {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
    padding: 1rem;
    background: rgb(253, 251, 247);
    border: 1px solid #e5e5e7;
    border-radius: 8px;
    max-width: 320px;
    pointer-events: auto;
}

.share-text {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    color: #1d1d1f;
    line-height: 1.5;
    margin: 0;
    text-align: right;
}

.share-button,
.share-dismiss {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.share-button {
    background: #1d1d1f;
    color: rgb(253, 251, 247);
}

.share-button:hover {
    background: #000;
}

.share-button:active {
    transform: scale(0.98);
}

.share-dismiss {
    background: transparent;
    color: #86868b;
    padding: 0.25rem 0.5rem;
}

.share-dismiss:hover {
    color: #1d1d1f;
    text-decoration: underline;
}

/* ========================================
   Mobile Adjustments
   ======================================== */

@media (max-width: 768px) {
    #site-header {
        padding: 0.75rem 1rem;
    }

    .header-action {
        font-size: 0.8125rem;
    }

    .share-surface {
        max-width: 280px;
        padding: 0.875rem;
    }

    .share-text {
        font-size: 0.8125rem;
    }
}

/* ========================================
   Reduced Motion Support
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    .header-action,
    .share-button,
    .share-dismiss {
        transition: none;
    }
}
