/* ============================================
   PAGE META BYLINE
   A quiet single-row cluster of the page's contextual metadata: category,
   author, and the created / updated dates. Mirrors the page-tags chip cluster
   (page-tags.css) so the byline and the tags read as one family — a tonal
   Mineral White surface, a hairline border, and an interaction that deepens
   the border instead of lifting the element (No-Lift-Reflex).
   ============================================ */

.page-meta-section {
    position: relative;
    padding: 1rem 0;
    z-index: 10;
}

.page-meta-wrapper {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 0.75rem 1.25rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Interaction deepens the border and adds a soft shadow instead of lifting
   (No-Lift-Reflex), matching the page-tags cluster behaviour. */
.page-meta-wrapper:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow);
}

.page-meta-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem 1.25rem;
    align-items: center;
}

.page-meta-list > li {
    display: inline-flex;
    align-items: center;
}

.page-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: var(--fs-label);
    line-height: 1.4;
    color: var(--text-muted);
}

/* The inline label ("Yazar:", "Oluşturulma:") stays readable but recedes so the
   value reads first. */
.page-meta-item-label {
    opacity: 0.85;
}

.page-meta-item-icon {
    font-size: 0.95em;
    opacity: 0.7;
}

/* Category chip — a clickable pill when a listing page exists, mirroring the
   page-tags chip affordance (tonal fill, hover lifts to the primary accent). */
.page-meta-category-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.75rem;
    font-size: var(--fs-label);
    font-weight: 500;
    line-height: 1.4;
    color: var(--text-muted);
    background-color: var(--surface-sunken);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    text-decoration: none;
    transition: color 0.3s ease, background-color 0.3s ease,
                border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-meta-category-link:hover {
    color: var(--primary-color);
    background-color: var(--card-bg);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.page-meta-category-link:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Dark Mode — light/dark separation is handled entirely by the token cascade.
   --card-bg, --border-color, --text-muted, --primary-color, --surface-sunken
   all re-point under [data-bs-theme="dark"], so the byline recolors
   automatically. */
html[data-bs-theme="dark"] .page-meta-wrapper:hover {
    box-shadow: var(--shadow);
}

/* Responsive */
@media (max-width: 768px) {
    .page-meta-section {
        padding: 0.75rem 0;
    }

    .page-meta-wrapper {
        padding: 0.625rem 1rem;
        border-radius: var(--radius-lg);
    }

    .page-meta-list {
        gap: 0.625rem 1rem;
    }
}

/* Motion sensitivity — preserve the state change (color/background shift) while
   removing the transitions that disturb vestibular-sensitive users. The hover
   affordance stays legible through color alone. */
@media (prefers-reduced-motion: reduce) {
    .page-meta-wrapper,
    .page-meta-category-link {
        transition: none;
    }
}
