/*
Theme Name: Gamesport – Herní magazín
Description: Výrazná redakční šablona pro Gamesport.cz s volitelnými reklamními pozicemi.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Author: Gamesport.cz
Text Domain: gamesport
*/

:root {
	--ink: #111a29;
	--ink-soft: #202b3c;
	--paper: #f4efe5;
	--paper-bright: #fffdf8;
	--paper-deep: #e8dfd0;
	--text: #17202c;
	--muted: #66707b;
	--orange: #f05b2d;
	--orange-dark: #d74820;
	--teal: #32c5c5;
	--line: rgba(17, 26, 41, .15);
	--shell: 1320px;
	--radius: 12px;
	--shadow: 0 14px 35px rgba(9, 16, 27, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	color: var(--text);
	background: var(--ink);
	font-family: Inter, "Segoe UI", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.65;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link { position: fixed; z-index: 1000; top: 8px; left: 8px; padding: 10px 14px; color: #fff; background: var(--orange); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.site-shell { width: min(var(--shell), calc(100% - 48px)); margin-inline: auto; }

.site-header { position: relative; z-index: 20; color: #fff; background: var(--ink); border-bottom: 1px solid rgba(255,255,255,.12); }
.site-header__inner { min-height: 84px; display: flex; align-items: center; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; color: #fff; text-decoration: none; }
.brand__mark { width: 43px; height: 43px; color: var(--orange); }
.brand__word { font-size: 25px; line-height: 1; font-weight: 950; letter-spacing: -.075em; font-style: italic; }
.brand__word span { color: var(--orange); }
.brand__tagline { display: block; margin-top: 5px; color: #c2c9d1; font-size: 9px; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }
.brand-custom img { max-width: 230px; max-height: 58px; width: auto; }
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; align-items: center; gap: clamp(12px, 2vw, 30px); padding: 0; margin: 0; list-style: none; }
.primary-nav a { position: relative; display: inline-block; padding: 30px 0 27px; color: #f5f3ef; text-decoration: none; font-size: 13px; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; }
.primary-nav a::after { position: absolute; right: 0; bottom: 18px; left: 0; height: 3px; background: var(--orange); content: ""; transform: scaleX(0); transform-origin: left; transition: transform .18s ease; }
.primary-nav a:hover::after, .primary-nav .current-menu-item a::after { transform: scaleX(1); }
.primary-nav li:last-child a { padding: 10px 13px; color: var(--ink); background: var(--teal); border-radius: 5px; transform: rotate(-1deg); }
.primary-nav li:last-child a::after { display: none; }
.header-tools { display: flex; align-items: center; gap: 10px; }
.header-search { display: flex; align-items: center; gap: 6px; }
.header-search input[type="search"] { width: 145px; padding: 8px 10px; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); border-radius: 6px; outline: none; font-size: 12px; }
.header-search input[type="search"]:focus { border-color: var(--teal); }
.header-search button { padding: 7px 10px; color: var(--ink); background: var(--teal); border: 0; border-radius: 5px; cursor: pointer; font-size: 12px; font-weight: 800; }
.menu-toggle { display: none; color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.35); border-radius: 6px; padding: 8px 10px; cursor: pointer; }

.site-main { min-height: 68vh; padding-top: 28px; padding-bottom: 70px; color: var(--text); background-color: var(--paper); background-image: radial-gradient(rgba(34, 28, 18, .035) .7px, transparent .7px); background-size: 7px 7px; }
.site-main--full { width: 100%; max-width: none; padding-inline: max(24px, calc((100% - var(--shell))/2)); }
.ad-slot { position: relative; margin: 0 0 30px; padding: 26px 18px 18px; text-align: center; background: rgba(255,253,248,.75); border: 1px solid var(--paper-deep); border-radius: 8px; }
.ad-slot__label { position: absolute; top: 7px; left: 10px; padding: 2px 7px; color: #fff; background: var(--orange); border-radius: 3px; font-size: 9px; line-height: 1.4; font-weight: 900; letter-spacing: .1em; }
.ad-slot__content { display: flex; justify-content: center; align-items: center; min-width: 0; }
.ad-slot__content > * { max-width: 100%; }
.ad-slot--top { min-height: 0; }
.ad-slot--sidebar { margin-bottom: 22px; padding-top: 28px; }
.ad-slot--article { margin: 28px 0; padding: 30px 18px 22px; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--orange-dark); font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { width: 17px; height: 3px; background: currentColor; content: ""; }
.home-intro { display: flex; align-items: end; justify-content: space-between; gap: 32px; padding: 18px 2px 28px; }
.home-intro h1 { max-width: 760px; margin: 9px 0 0; color: var(--ink); font-size: clamp(38px, 5vw, 66px); line-height: .98; letter-spacing: -.055em; }
.home-intro h1 em { color: var(--orange); font-style: normal; }
.home-intro p { max-width: 320px; margin: 0 0 4px; color: #59616c; font-size: 15px; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(270px, .9fr); gap: 24px; align-items: stretch; }
.featured-story { position: relative; min-height: 440px; overflow: hidden; color: #fff; background: var(--ink-soft); border-radius: var(--radius); box-shadow: var(--shadow); isolation: isolate; }
.featured-story__image, .featured-story__placeholder { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.featured-story__placeholder { background: radial-gradient(ellipse at 70% 35%, rgba(50,197,197,.55), transparent 22%), radial-gradient(ellipse at 75% 45%, rgba(240,91,45,.65), transparent 35%), linear-gradient(125deg, #111a29 12%, #394a5d 54%, #d36447 100%); }
.featured-story__placeholder::after { position: absolute; inset: 0; background: repeating-linear-gradient(135deg, transparent 0 29px, rgba(255,255,255,.06) 30px 31px); content: ""; }
.featured-story::after { position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(8,14,23,.94) 0%, rgba(8,14,23,.74) 43%, rgba(8,14,23,.05) 100%), linear-gradient(0deg, rgba(8,14,23,.35), transparent 45%); content: ""; }
.featured-story__content { display: flex; min-height: 440px; max-width: 690px; flex-direction: column; justify-content: end; align-items: flex-start; padding: clamp(24px, 4vw, 48px); }
.category-ribbon { display: inline-block; margin-bottom: 14px; padding: 4px 10px; color: #111a29; background: var(--orange); border-radius: 3px; font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; transform: rotate(-1.5deg); }
.category-ribbon--teal { background: var(--teal); }
.featured-story h2 { max-width: 650px; margin: 0 0 12px; font-size: clamp(34px, 4.2vw, 58px); line-height: .99; letter-spacing: -.045em; }
.featured-story h2 a { text-decoration: none; }
.featured-story__excerpt { max-width: 520px; margin: 0 0 18px; color: rgba(255,255,255,.88); font-size: 16px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: var(--muted); font-size: 12px; font-weight: 650; }
.featured-story .post-meta { color: rgba(255,255,255,.83); }
.post-meta a { text-decoration: none; }
.post-meta a:hover { color: var(--orange); }
.read-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 21px; padding: 10px 16px; color: #fff; background: var(--orange); border-radius: 5px; text-decoration: none; font-size: 13px; font-weight: 900; letter-spacing: .035em; text-transform: uppercase; transition: background .18s ease, transform .18s ease; }
.read-link:hover { color: #fff; background: var(--orange-dark); transform: translateY(-2px); }
.home-aside { display: flex; flex-direction: column; gap: 18px; }
.panel { padding: 20px; background: var(--paper-bright); border: 1px solid var(--paper-deep); border-radius: var(--radius); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 13px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.panel-heading h2 { margin: 0; color: var(--ink); font-size: 17px; line-height: 1.2; font-weight: 900; }
.panel-heading a { color: var(--orange-dark); font-size: 11px; font-weight: 850; text-decoration: none; text-transform: uppercase; }
.community-panel { position: relative; flex: 1; overflow: hidden; color: #fff; background: var(--ink); border: 0; }
.community-panel::after { position: absolute; right: -28px; bottom: -42px; width: 155px; height: 155px; border: 18px solid rgba(50,197,197,.17); border-radius: 50%; content: ""; }
.community-panel .panel-heading { border-color: rgba(255,255,255,.18); }
.community-panel .panel-heading h2 { color: #fff; }
.community-panel p { position: relative; z-index: 1; color: #d8dce1; font-size: 13px; }
.community-panel__icon { color: var(--teal); font-size: 25px; }
.community-link { position: relative; z-index: 1; display: inline-flex; margin-top: 8px; padding: 8px 12px; color: var(--ink); background: var(--teal); border-radius: 4px; text-decoration: none; font-size: 12px; font-weight: 900; }
.activity-list, .latest-list { padding: 0; margin: 0; list-style: none; }
.activity-list li { padding: 10px 0; border-top: 1px solid rgba(255,255,255,.15); font-size: 12px; }
.activity-list a { color: #fff; text-decoration: none; font-weight: 750; }
.activity-list small { display: block; margin-top: 3px; color: #aeb7c2; }
.latest-panel { background: var(--paper-bright); }
.latest-list li { padding: 10px 0; border-top: 1px solid var(--line); }
.latest-list li:first-child { border-top: 0; }
.latest-list a { color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 850; line-height: 1.35; }
.latest-list a:hover { color: var(--orange-dark); }
.latest-list small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 46px 0 18px; padding-bottom: 11px; border-bottom: 2px solid var(--ink); }
.section-title h2 { margin: 0; color: var(--ink); font-size: 27px; line-height: 1; letter-spacing: -.035em; }
.section-title a { color: var(--orange-dark); font-size: 12px; font-weight: 850; text-decoration: none; text-transform: uppercase; }
.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.story-card { overflow: hidden; background: var(--paper-bright); border: 1px solid var(--paper-deep); border-radius: 9px; transition: transform .2s ease, box-shadow .2s ease; }
.story-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.story-card__image, .story-card__placeholder { width: 100%; aspect-ratio: 1.62; object-fit: cover; background: linear-gradient(130deg, #24364a, #56717f 48%, #e26d4b); }
.story-card__body { padding: 16px 17px 19px; }
.story-card h3 { margin: 7px 0 9px; color: var(--ink); font-size: 20px; line-height: 1.12; letter-spacing: -.025em; }
.story-card h3 a { text-decoration: none; }
.story-card__excerpt { margin: 0 0 14px; color: #59616c; font-size: 13px; line-height: 1.5; }
.story-card .category-ribbon { margin: 0; padding: 3px 7px; font-size: 9px; }
.empty-state { display: grid; min-height: 340px; place-content: center; padding: 36px; text-align: center; background: var(--paper-bright); border: 1px dashed #c9bda9; border-radius: var(--radius); }
.empty-state__symbol { margin: 0 auto 10px; color: var(--orange); font-size: 38px; }
.empty-state h1, .empty-state h2 { margin: 0 0 8px; color: var(--ink); font-size: 28px; }
.empty-state p { max-width: 480px; margin: 0 auto 18px; color: var(--muted); }

.page-heading { padding: 18px 0 26px; }
.page-heading h1 { margin: 7px 0 8px; color: var(--ink); font-size: clamp(36px, 5vw, 54px); line-height: 1; letter-spacing: -.045em; }
.page-heading p { max-width: 700px; margin: 0; color: var(--muted); }
.archive-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pagination { display: flex; justify-content: center; gap: 7px; margin-top: 34px; }
.pagination .page-numbers { display: inline-grid; min-width: 38px; min-height: 38px; place-items: center; padding: 0 9px; color: var(--ink); background: var(--paper-bright); border: 1px solid var(--paper-deep); border-radius: 5px; text-decoration: none; font-weight: 800; }
.pagination .current, .pagination a:hover { color: #fff; background: var(--ink); }

.article-layout { display: grid; grid-template-columns: minmax(0, 790px) minmax(260px, 320px); gap: clamp(24px, 4vw, 54px); align-items: start; justify-content: center; }
.article-header { padding: 4px 0 20px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; color: var(--muted); font-size: 12px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--orange-dark); }
.article-header h1 { max-width: 800px; margin: 10px 0 12px; color: var(--ink); font-size: clamp(38px, 5vw, 62px); line-height: .98; letter-spacing: -.052em; }
.article-deck { max-width: 760px; margin: 0 0 17px; color: #535e69; font-size: clamp(17px, 2vw, 21px); line-height: 1.42; }
.article-header .post-meta { margin-top: 17px; }
.article-hero { margin: 0 0 27px; }
.article-hero img { width: 100%; max-height: 520px; object-fit: cover; border-radius: 9px; box-shadow: 0 7px 18px rgba(17,26,41,.12); }
.article-hero figcaption { padding: 7px 2px; color: var(--muted); font-size: 11px; }
.article-body { color: #29313b; font-size: 17px; line-height: 1.78; }
.article-body > * { max-width: 100%; }
.article-body p { margin: 0 0 1.35em; }
.article-body h2, .article-body h3 { margin: 1.65em 0 .55em; color: var(--ink); line-height: 1.1; letter-spacing: -.035em; }
.article-body h2 { font-size: clamp(26px, 3vw, 36px); }
.article-body h2::before { display: inline-block; width: 5px; height: .82em; margin-right: 10px; background: var(--teal); border-radius: 4px; content: ""; vertical-align: -.03em; }
.article-body h3 { font-size: 24px; }
.article-body a { color: #c74621; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-body blockquote { margin: 1.7em 0; padding: 16px 22px; color: var(--ink); background: #e8e1d6; border-left: 5px solid var(--orange); font-size: 20px; font-weight: 750; }
.article-body ul, .article-body ol { padding-left: 1.4em; }
.article-body figure { margin: 1.5em 0; }
.article-body figure img { border-radius: 8px; }
.article-body .alignwide { width: min(100% + 80px, 900px); max-width: none; margin-left: -40px; }
.article-sidebar { position: sticky; top: 18px; }
.sidebar-widget { margin-bottom: 22px; padding: 18px; background: var(--paper-bright); border: 1px solid var(--paper-deep); border-radius: 9px; }
.sidebar-widget h2 { margin: 0 0 13px; padding-bottom: 10px; color: var(--ink); border-bottom: 1px solid var(--line); font-size: 17px; }
.sidebar-widget .latest-list li { padding: 11px 0; }
.article-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 27px 0; }
.article-tags a { padding: 5px 9px; color: #384350; background: #e9e1d5; border-radius: 4px; text-decoration: none; font-size: 11px; }
.related-stories { margin-top: 44px; }
.related-stories h2 { margin: 0 0 16px; color: var(--ink); font-size: 22px; }
.related-stories__grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.related-stories .story-card__body { padding: 12px; }
.related-stories .story-card h3 { font-size: 15px; }
.comments-area { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); }
.comments-area h2 { color: var(--ink); }
.comment-list { padding-left: 20px; }
.comment-body { padding: 14px; margin: 12px 0; background: var(--paper-bright); border-radius: 8px; }
.comment-form input, .comment-form textarea { width: 100%; padding: 10px; border: 1px solid #c9c2b7; border-radius: 5px; }
.comment-form .submit { width: auto; padding: 10px 16px; color: #fff; background: var(--orange); border: 0; border-radius: 5px; font-weight: 850; cursor: pointer; }

.site-footer { color: #dce1e5; background: #0c131e; border-top: 4px solid var(--orange); }
.site-footer__inner { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 35px; padding-top: 42px; padding-bottom: 36px; }
.site-footer .brand { margin-bottom: 13px; }
.site-footer p { max-width: 430px; color: #aeb8c2; font-size: 13px; }
.site-footer h2 { margin: 4px 0 14px; color: #fff; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.footer-links { display: grid; gap: 7px; padding: 0; margin: 0; list-style: none; }
.footer-links a { color: #c2cbd4; text-decoration: none; font-size: 13px; }
.footer-links a:hover { color: var(--teal); }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 15px; padding-block: 14px; color: #8d98a4; border-top: 1px solid rgba(255,255,255,.12); font-size: 11px; }
.site-footer__bottom a { color: #c5ccd4; text-decoration: none; }

@media (max-width: 1080px) {
	.site-header__inner { gap: 18px; }
	.header-search input[type="search"] { width: 112px; }
	.primary-nav ul { gap: 14px; }
	.primary-nav a { font-size: 11px; }
	.article-layout { grid-template-columns: minmax(0, 1fr) 270px; gap: 26px; }
}
@media (max-width: 820px) {
	.site-shell { width: min(100% - 28px, var(--shell)); }
	.site-header__inner { min-height: 72px; }
	.menu-toggle { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }
	.primary-nav { position: absolute; top: 100%; right: 0; left: 0; display: none; padding: 8px 20px 18px; background: var(--ink); border-top: 1px solid rgba(255,255,255,.12); box-shadow: 0 10px 18px rgba(0,0,0,.2); }
	.primary-nav.is-open { display: block; }
	.primary-nav ul { align-items: stretch; flex-direction: column; gap: 0; }
	.primary-nav a, .primary-nav li:last-child a { display: block; padding: 11px 6px; background: transparent; color: #fff; transform: none; }
	.primary-nav a::after { bottom: 5px; right: auto; width: 40px; }
	.header-tools { display: none; }
	.home-intro { align-items: flex-start; flex-direction: column; gap: 13px; }
	.home-intro p { max-width: 560px; }
	.home-grid { grid-template-columns: 1fr; }
	.home-aside { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); align-items: stretch; }
	.story-grid, .archive-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
	.article-layout { grid-template-columns: minmax(0,1fr); }
	.article-sidebar { position: static; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
	.article-sidebar .ad-slot, .article-sidebar .sidebar-widget { margin: 0; }
	.site-footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
	.site-main { padding-top: 17px; padding-bottom: 45px; }
	.brand__mark { width: 36px; height: 36px; }
	.brand__word { font-size: 22px; }
	.brand__tagline { font-size: 8px; }
	.featured-story, .featured-story__content { min-height: 410px; }
	.featured-story__content { padding: 22px; }
	.featured-story h2 { font-size: 38px; }
	.home-aside, .story-grid, .archive-grid, .related-stories__grid { grid-template-columns: 1fr; }
	.article-header h1 { font-size: 39px; }
	.article-body { font-size: 16px; }
	.article-body .alignwide { width: 100%; margin-left: 0; }
	.article-sidebar { grid-template-columns: 1fr; }
	.site-footer__inner { grid-template-columns: 1fr; gap: 20px; padding-top: 30px; }
	.site-footer__bottom { align-items: flex-start; flex-direction: column; }
}
