/*
Theme Name: Trans Vlasy
Theme URI: https://trans-vlasy.cz/
Author: Trans-vlasy.cz
Description: Lehká moderní šablona vytvořená pro plugin Trans Vlasy Fórum.
Version: 1.1.16
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: trans-vlasy
*/

:root {
    --tvt-ink: #30252a;
    --tvt-muted: #786b6d;
    --tvt-line: #e7dcd3;
    --tvt-soft: #f6efe7;
    --tvt-brand: #9a4f43;
    --tvt-brand-dark: #74372f;
    --tvt-white: #fffdf9;
    --tvt-max: 1200px;
}

html { scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; }
body { background: #fbf7f1; color: var(--tvt-ink); font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; margin: 0; }
body.admin-bar .tvt-header { top: 32px; }
a { color: var(--tvt-brand); }
img { height: auto; max-width: 100%; }
.tvt-wrap { margin: 0 auto; max-width: var(--tvt-max); padding-left: 22px; padding-right: 22px; width: 100%; }
.tvt-header { backdrop-filter: blur(14px); background: rgba(255,253,249,.95); border-bottom: 1px solid var(--tvt-line); position: sticky; top: 0; z-index: 100; }
.tvt-header-inner { align-items: center; display: flex; gap: 18px; max-width: 1040px; min-height: 76px; }
.tvt-brand { align-items: center; color: var(--tvt-ink); display: inline-flex; flex: 0 0 auto; gap: 11px; text-decoration: none; }
.tvt-brand-mark { align-items: center; background: linear-gradient(135deg, var(--tvt-brand-dark), #239094); border-radius: 12px; color: #fff; display: inline-flex; font-size: 15px; font-weight: 850; height: 42px; justify-content: center; letter-spacing: -.04em; width: 42px; }
.tvt-site-icon { border-radius: 14px; box-shadow: 0 5px 14px rgba(71,39,34,.18); display: block; height: 48px; object-fit: cover; width: 48px; }
.tvt-brand-copy { display: flex; flex-direction: column; }
.tvt-brand-name { font-family: "Avenir Next", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif; font-size: 23px; font-weight: 750; letter-spacing: -.035em; line-height: 1.1; margin: 0; }
.tvt-brand-description { color: var(--tvt-muted); font-size: 15px; margin-left: 3px; margin-top: 3px; max-width: 240px; }
.tvt-custom-logo { display: block; max-height: 48px; width: auto; }
.tvt-navigation { margin-left: auto; }
.tvt-menu { align-items: center; display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.tvt-menu a { border-radius: 999px; color: #55474b; display: block; font-size: 14px; font-weight: 700; padding: 9px 13px; text-decoration: none; }
.tvt-navigation .tvt-menu a { padding-left: 10px; padding-right: 10px; white-space: nowrap; }
.tvt-menu a:hover, .tvt-menu .current-menu-item > a { background: #f1e2d8; color: var(--tvt-brand-dark); }
.tvt-account { align-items: center; border-left: 1px solid var(--tvt-line); display: flex; flex: 0 0 auto; gap: 10px; padding-left: 20px; }
.tvt-account-link { align-items: center; background: var(--tvt-brand); border-radius: 999px; color: #fff; display: inline-flex; font-size: 13px; font-weight: 800; min-height: 39px; padding: 0 16px; text-decoration: none; }
.tvt-account-link:hover { background: var(--tvt-brand-dark); color: #fff; }
.tvt-account-icon { display: none; fill: currentColor; }
.tvt-account-user { color: var(--tvt-ink); font-size: 13px; font-weight: 750; text-decoration: none; }
.tvt-account-avatar { align-items: center; border-radius: 50%; display: inline-flex; flex: 0 0 39px; height: 39px; justify-content: center; overflow: hidden; width: 39px; }
.tvt-account-avatar img { border-radius: 50%; display: block; height: 39px !important; object-fit: cover; width: 39px !important; }
.tvt-menu-toggle { background: transparent; border: 1px solid var(--tvt-line); border-radius: 10px; color: var(--tvt-ink); display: none; font: inherit; font-size: 20px; height: 42px; margin-left: auto; width: 44px; }
.tvt-main { min-height: calc(100vh - 290px); }
.tvt-content { margin: 44px auto 72px; max-width: 900px; }
.tvt-card { background: var(--tvt-white); border: 1px solid var(--tvt-line); border-radius: 24px; box-shadow: 0 16px 40px rgba(80,48,39,.07); padding: clamp(24px,5vw,52px); }
.tvt-card h1 { font-family: "Avenir Next", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif; font-size: clamp(30px,5vw,48px); font-weight: 750; letter-spacing: -.04em; line-height: 1.1; margin: 0 0 26px; }
.tvt-entry { color: #364156; font-size: 16px; line-height: 1.75; }
.tvt-entry > :first-child { margin-top: 0; }
.tvt-entry > :last-child { margin-bottom: 0; }
.tvt-post-list { display: grid; gap: 16px; }
.tvt-post-preview { background: #fff; border: 1px solid var(--tvt-line); border-radius: 16px; padding: 22px; }
.tvt-post-preview h2 { margin: 0 0 8px; }
.tvt-post-preview h2 a { color: var(--tvt-ink); text-decoration: none; }
.tvt-meta { color: var(--tvt-muted); font-size: 12px; }
.tvt-empty { text-align: center; }
.tvt-footer { background: #30252a; color: #e5d9d2; margin-top: 70px; }
.tvt-footer .tvt-wrap { max-width: 1040px; }
.tvt-footer-main { align-items: center; display: flex; gap: 32px; justify-content: space-between; min-height: 122px; }
.tvt-footer-brand { color: #fff; font-size: 19px; font-weight: 850; }
.tvt-footer-text { color: #9eabbf; font-size: 12px; margin-top: 6px; }
.tvt-footer .tvt-menu { justify-content: flex-end; }
.tvt-footer .tvt-menu a { color: #c8d1df; font-size: 13px; }
.tvt-footer .tvt-menu a:hover { background: rgba(255,255,255,.08); color: #fff; }
.tvt-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); color: #8290a6; font-size: 11px; padding: 16px 0; }
.tvt-pagination { margin-top: 24px; }
.tvt-pagination .page-numbers { background: #fff; border: 1px solid var(--tvt-line); border-radius: 8px; display: inline-block; margin-right: 4px; padding: 7px 11px; text-decoration: none; }
.tvt-pagination .current { background: var(--tvt-brand); color: #fff; }
.alignwide { margin-left: calc(50% - 50vw + 22px); margin-right: calc(50% - 50vw + 22px); max-width: calc(100vw - 44px); width: auto; }

@media (max-width: 782px) {
    body.admin-bar .tvt-header { top: 46px; }
    .tvt-header-inner { gap: 8px; min-height: 68px; min-width: 0; }
    .tvt-brand { flex: 1 1 auto; min-width: 0; overflow: hidden; }
    .tvt-brand-copy { min-width: 0; overflow: hidden; }
    .tvt-brand-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .tvt-brand-description { display: none; }
    .tvt-menu-toggle { display: block; flex: 0 0 44px; margin-left: 0; }
    .tvt-navigation { background: #fffdf9; border-bottom: 1px solid var(--tvt-line); box-shadow: 0 12px 20px rgba(80,48,39,.08); display: none; left: 0; margin: 0; padding: 12px 20px 18px; position: absolute; right: 0; top: 68px; }
    .tvt-navigation.is-open { display: block; }
    .tvt-navigation .tvt-menu { align-items: stretch; flex-direction: column; }
    .tvt-account { border-left: 0; gap: 6px; min-width: 0; padding-left: 0; }
    .tvt-account-user { display: none; }
    .tvt-footer-main { align-items: center; flex-direction: column; justify-content: center; padding-bottom: 30px; padding-top: 30px; text-align: center; }
    .tvt-footer .tvt-menu { align-items: center; flex-direction: column; }
    .tvt-footer-bottom .tvt-wrap { text-align: center; }
}

@media (max-width: 480px) {
    .tvt-wrap { padding-left: 14px; padding-right: 14px; }
    .tvt-brand-mark { height: 38px; width: 38px; }
    .tvt-site-icon { border-radius: 11px; height: 40px; width: 40px; }
    .tvt-brand-name { font-size: 17px; }
    .tvt-brand-description { display: block; font-size: 12px; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .tvt-account-link { font-size: 0; padding: 0; width: 39px; }
    .tvt-account-link--login .tvt-account-icon,
    .tvt-account-link--logout .tvt-account-icon { display: block; height: 19px; margin: auto; width: 19px; }
}
