/*
Theme Name: ASMARENA
Theme URI: https://asmarena.pl/
Description: Motyw blokowy dla ASMARENA – arena ASG, Paintball, NERF i Gel Blaster. Czarno-czerwono-biało-zielony, edytowalny w Edytorze witryny.
Author: ASMARENA
Version: 1.0.0
Requires at least: 6.6
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: asmarena
*/

/* ---------- Ogólne ---------- */
html { scroll-behavior: smooth; }
img { height: auto; }

.asm-eyebrow.asm-eyebrow {
	color: var(--wp--preset--color--green);
	font-weight: 700;
	font-size: 0.85rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	margin-bottom: 0.5rem !important;
}
.asm-muted { color: var(--wp--preset--color--muted); }
.asm-section { padding-top: var(--wp--preset--spacing--60); padding-bottom: var(--wp--preset--spacing--60); }
.asm-section--alt { background: var(--wp--preset--color--surface); }
.asm-section-head { max-width: 720px; margin-bottom: 2.5rem !important; }
.asm-section-head p { color: var(--wp--preset--color--muted); }
.asm-center { text-align: center; }
.asm-center .wp-block-buttons { justify-content: center; }

/* Przyciski */
.wp-block-button .wp-block-button__link { transition: background-color .2s, color .2s, transform .2s; }
.wp-block-button .wp-block-button__link:hover { transform: translateY(-2px); }
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--white);
	border: 2px solid var(--wp--preset--color--white);
	padding: calc(0.85rem - 2px) calc(1.6rem - 2px);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--black);
}

/* ---------- Pasek górny ---------- */
.asm-topbar {
	background: #000;
	border-bottom: 1px solid var(--wp--preset--color--line);
	font-size: 0.85rem;
	padding-top: 0.45rem;
	padding-bottom: 0.45rem;
}
.asm-topbar p { margin: 0; color: var(--wp--preset--color--muted); }
.asm-topbar a { color: var(--wp--preset--color--muted); text-decoration: none; margin-right: 1.4rem; }
.asm-topbar a:hover { color: var(--wp--preset--color--red); }

.wp-block-social-links.asm-social { gap: 0.8rem; }
.wp-block-social-links.asm-social .wp-social-link { color: var(--wp--preset--color--white); }
.wp-block-social-links.asm-social .wp-social-link:hover { color: var(--wp--preset--color--red); }
.wp-block-social-links.asm-social .wp-social-link svg { width: 18px; height: 18px; }

/* ---------- Nagłówek ---------- */
.asm-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(11, 11, 11, 0.94);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--wp--preset--color--line);
	padding-top: 0.8rem;
	padding-bottom: 0.8rem;
}
body.admin-bar .asm-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .asm-header { top: 0; } }

.asm-header .wp-block-site-logo img { max-height: 46px; width: auto; }
.asm-site-title { font-family: var(--wp--preset--font-family--heading); font-size: 1.9rem; text-transform: uppercase; letter-spacing: 0.03em; margin: 0; line-height: 1; }
.asm-site-title a { color: var(--wp--preset--color--white); text-decoration: none; }
/* Gdy wgrasz logo, tekstowy tytuł znika automatycznie */
.wp-block-site-logo + .asm-site-title { display: none; }

.asm-nav { font-weight: 500; font-size: 0.95rem; }
.asm-nav .wp-block-navigation-item__content { color: var(--wp--preset--color--white); text-decoration: none; }
.asm-nav .wp-block-navigation-item__content:hover,
.asm-nav .current-menu-item > .wp-block-navigation-item__content { color: var(--wp--preset--color--red); }
.asm-nav .asm-nav-cta > .wp-block-navigation-item__content {
	background: var(--wp--preset--color--red);
	color: #fff;
	padding: 0.55rem 1.2rem;
	border-radius: 999px;
	font-weight: 600;
}
.asm-nav .asm-nav-cta > .wp-block-navigation-item__content:hover { background: var(--wp--preset--color--red-dark); color: #fff; }
.asm-nav .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--surface) !important;
	color: var(--wp--preset--color--white) !important;
	padding: 2rem 1.5rem;
}
.asm-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { font-size: 1.3rem; gap: 1.2rem; }

/* ---------- Hero ---------- */
.asm-hero.wp-block-cover { padding-top: 5rem; padding-bottom: 5rem; }
.asm-hero .wp-block-cover__background {
	background: linear-gradient(100deg, rgba(0,0,0,.95) 0%, rgba(0,0,0,.78) 45%, rgba(0,0,0,.35) 100%) !important;
	opacity: 1 !important;
}
.asm-hero .wp-block-cover__inner-container { width: 100%; }
.asm-hero-content > * { max-width: 680px; }
.asm-hero h1 { margin-bottom: 0.3em; }
.asm-hero .asm-lead { font-size: 1.2rem; font-weight: 700; }
.asm-hero p { color: #d6d6d6; }
.asm-hero .wp-block-buttons { margin-top: 2rem; }
.asm-hero .asm-reviews { font-size: 0.9rem; color: var(--wp--preset--color--muted); margin-top: 2rem; }
.asm-hero .asm-reviews strong { color: #fff; }
.asm-hero mark, .asm-red { color: var(--wp--preset--color--red); background: none; }

/* ---------- Liczby ---------- */
.asm-stats { background: var(--wp--preset--color--red); padding-top: 2.5rem; padding-bottom: 2.5rem; text-align: center; }
.asm-stats .wp-block-columns { margin: 0; }
.asm-stats h3 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin: 0; color: #fff; }
.asm-stats p { margin: 0.25rem 0 0; font-weight: 700; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.1em; }

/* ---------- Imprezy ---------- */
.asm-events .wp-block-columns { gap: 3.5rem; align-items: center; }
.asm-events .wp-block-image img { border-radius: 14px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.asm-events p { color: var(--wp--preset--color--muted); }

.asm-checklist { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: 0.7rem; }
.asm-checklist li { display: flex; gap: 0.75rem; align-items: flex-start; color: #fff; }
.asm-checklist li::before {
	content: "";
	flex: 0 0 22px;
	height: 22px;
	margin-top: 0.15rem;
	border-radius: 50%;
	background: var(--wp--preset--color--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ---------- Karty scenariuszy ---------- */
.asm-cards { gap: 1.5rem; }
.asm-card {
	background: var(--wp--preset--color--card);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 14px;
	overflow: hidden;
	height: 100%;
	display: flex;
	flex-direction: column;
	transition: transform .25s, border-color .25s;
}
.asm-card:hover { transform: translateY(-4px); border-color: var(--wp--preset--color--red); }
.asm-card > * { margin-left: 1.5rem !important; margin-right: 1.5rem !important; }
.asm-card > .wp-block-image { margin: 0 0 0.5rem !important; }
.asm-card > .wp-block-image img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; display: block; }
.asm-card h3 { font-size: 1.6rem; margin-bottom: 0; }
.asm-card .wp-block-buttons { margin-top: auto !important; padding-bottom: 1.5rem; padding-top: 0.5rem; }
.asm-rating { color: var(--wp--preset--color--red); letter-spacing: 0.1em; margin-top: 0.3rem !important; }
.asm-meta { list-style: none; padding: 0; font-size: 0.92rem; color: var(--wp--preset--color--muted); display: grid; gap: 0.35rem; }
.asm-meta strong { color: #fff; }

/* ---------- Rodzaje gier ---------- */
.asm-game {
	background: var(--wp--preset--color--card);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 14px;
	overflow: hidden;
	margin-bottom: 1.5rem !important;
}
.asm-game.wp-block-columns { gap: 0; }
.asm-game > .wp-block-column:first-child { flex-basis: 340px !important; flex-grow: 0 !important; }
.asm-game .wp-block-image { margin: 0; height: 100%; }
.asm-game .wp-block-image img { width: 100%; height: 100%; min-height: 240px; object-fit: cover; display: block; }
.asm-game > .wp-block-column:last-child { padding: 2rem; }
.asm-game h3 { margin-top: 0; }
.asm-game p { color: var(--wp--preset--color--muted); }
.asm-tags { color: var(--wp--preset--color--red) !important; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.asm-game .asm-links a { font-weight: 600; text-decoration: none; margin-right: 1.25rem; }
.asm-game .asm-links a:hover { text-decoration: underline; }
@media (max-width: 781px) {
	.asm-game > .wp-block-column:first-child { flex-basis: 100% !important; }
	.asm-game .wp-block-image img { aspect-ratio: 16 / 9; min-height: 0; }
}
.asm-tagline { font-family: var(--wp--preset--font-family--heading); text-transform: uppercase; font-size: clamp(1.5rem, 3vw, 2.2rem); color: var(--wp--preset--color--red); text-align: center; margin-top: 3rem !important; }

/* ---------- CTA ---------- */
.asm-cta.wp-block-cover { padding-top: var(--wp--preset--spacing--60); padding-bottom: var(--wp--preset--spacing--60); text-align: center; }
.asm-cta .wp-block-cover__background { background-color: #000 !important; opacity: .85 !important; }
.asm-cta p { color: #d6d6d6; max-width: 560px; margin-left: auto !important; margin-right: auto !important; }
.asm-cta .wp-block-buttons { justify-content: center; }

/* ---------- Stopka ---------- */
.asm-footer { background: #000; border-top: 1px solid var(--wp--preset--color--line); padding-top: 4rem; font-size: 0.95rem; }
.asm-footer h4 { font-family: var(--wp--preset--font-family--heading); color: var(--wp--preset--color--green); font-size: 1.1rem; letter-spacing: 0.06em; margin-bottom: 1rem; }
.asm-footer p, .asm-footer li { color: var(--wp--preset--color--muted); }
.asm-footer ul.wp-block-list { list-style: none; padding: 0; display: grid; gap: 0.5rem; }
.asm-footer a { color: var(--wp--preset--color--muted); text-decoration: none; }
.asm-footer a:hover { color: var(--wp--preset--color--red); }
.asm-footer .asm-site-title { margin-bottom: 1rem; }
.asm-footer .wp-block-site-logo img { max-height: 52px; width: auto; }
.asm-copyright { border-top: 1px solid var(--wp--preset--color--line); margin-top: 3rem !important; padding: 1.5rem 0; text-align: center; font-size: 0.85rem; }
.asm-copyright p { margin: 0; }

/* ---------- Podstrony ---------- */
.asm-page-title { padding-top: 4rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--wp--preset--color--line); background: var(--wp--preset--color--surface); }
.asm-page-title h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 0; }
.asm-page-content { padding-top: 3rem; padding-bottom: 5rem; }
.asm-page-content .wp-block-post-content > * { max-width: 820px; }
.asm-page-content .wp-block-post-content > .alignwide,
.asm-page-content .wp-block-post-content > .alignfull { max-width: none; }
.asm-footer .asm-site-title a { color: var(--wp--preset--color--white); }
