/*
Theme Name: WIFIMEDIA
Theme URI: https://www.wifi-media.sk
Author: WIFIMEDIA
Description: Téma pre WIFIMEDIA – WiFi siete, komunikačné technológie a elektronika. Svetlý a tmavý režim, 4 farebné schémy (Vzhľad → Prispôsobiť), zaheslovaná stránka s chránenými súbormi na stiahnutie a kontaktný formulár.
Version: 1.0.0
Requires at least: 6.2
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: wifimedia
*/

/* ===== Farebné schémy ===== */
:root,
html.scheme-modra {
	--navy: #0B1F3A; --navy2: #13294B; --navy-line: #1E3A5F;
	--accent: #38BDF8; --accent2: #0EA5E9; --accent-text: #0369A1; --soft: #E0F2FE; --soft-dark: #0C2A44;
}
html.scheme-tyrkysova {
	--navy: #0A2626; --navy2: #12363A; --navy-line: #1D4A4D;
	--accent: #2DD4BF; --accent2: #14B8A6; --accent-text: #0F766E; --soft: #CCFBF1; --soft-dark: #0B3330;
}
html.scheme-oranzova {
	--navy: #1C1917; --navy2: #292524; --navy-line: #44403C;
	--accent: #FB923C; --accent2: #F97316; --accent-text: #C2410C; --soft: #FFEDD5; --soft-dark: #3A2414;
}
html.scheme-fialova {
	--navy: #1E1B4B; --navy2: #2A2662; --navy-line: #3730A3;
	--accent: #A78BFA; --accent2: #8B5CF6; --accent-text: #6D28D9; --soft: #EDE9FE; --soft-dark: #2A2350;
}

html.scheme-zelena {
	--navy: #0B2416; --navy2: #123320; --navy-line: #1E4A2E;
	--accent: #4ADE80; --accent2: #22C55E; --accent-text: #15803D; --soft: #DCFCE7; --soft-dark: #0F3320;
}

/* ===== Svetlý režim (predvolený) ===== */
html {
	--bg: #F5F8FB; --card: #FFFFFF; --text: #0F172A; --text2: #334155; --muted: #475569;
	--border: #E2E8F0; --ph: #E2E8F0; --line: #94A3B8;
	--link: var(--accent-text); --icon-bg: var(--soft); --icon: var(--accent-text);
	color-scheme: light;
}
/* ===== Tmavý režim ===== */
html[data-theme="dark"] {
	--bg: #0B1120; --card: #111A2E; --text: #E2E8F0; --text2: #CBD5E1; --muted: #94A3B8;
	--border: #1F2A44; --ph: #1A2540; --line: #3B4A66;
	--link: var(--accent); --icon-bg: var(--soft-dark); --icon: var(--accent);
	color-scheme: dark;
}

/* ===== Základ ===== */
*, *::before, *::after { box-sizing: border-box; }
body {
	margin: 0; background: var(--bg); color: var(--text);
	font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 17px; line-height: 1.6;
	transition: background-color .2s, color .2s;
}
h1, h2, h3, h4 { font-family: "Space Grotesk", Inter, sans-serif; line-height: 1.15; margin: 0 0 .5em; color: var(--text); }
h1 { font-size: clamp(36px, 5vw, 56px); }
h2 { font-size: clamp(28px, 3.2vw, 40px); }
h3 { font-size: 20px; font-family: Inter, sans-serif; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--link); }
a:hover { color: var(--text); }
img { max-width: 100%; height: auto; }
.wm-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wm-skip { position: absolute; left: -9999px; top: 0; background: var(--accent); color: var(--navy); padding: 12px 16px; z-index: 100; }
.wm-skip:focus { left: 12px; top: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ===== Hlavička ===== */
.wm-header { background: var(--navy); position: relative; z-index: 20; }
.wm-header-inner { min-height: 76px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.wm-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; margin-right: auto; padding: 8px 0; }
.wm-brand:hover { color: #fff; }
.wm-wifi-icon { color: var(--accent); flex: none; }
.wm-logo-img { max-height: 56px; width: auto; display: block; filter: drop-shadow(0 0 6px rgba(74, 222, 128, .25)); }
.wm-brand-name { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 24px; letter-spacing: .5px; color: #fff; }
.wm-brand-name span { color: var(--accent); }
.wm-header-tools { display: flex; align-items: center; gap: 8px; order: 3; }
.wm-nav { order: 2; }
.wm-menu, .wm-nav > div > ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.wm-menu li { position: relative; }
.wm-menu a, .wm-nav > div > ul a { display: flex; align-items: center; gap: 6px; color: #CBD5E1; text-decoration: none; padding: 12px 14px; font-weight: 500; border-bottom: 2px solid transparent; }
.wm-menu a:hover { color: #fff; }
.wm-menu .current-menu-item > a, .wm-menu .current_page_item > a, .wm-nav .current_page_item > a { color: #fff; font-weight: 600; border-bottom-color: var(--accent); }
.wm-menu .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; background: var(--navy2); list-style: none; margin: 0; padding: 8px 0; border-radius: 0 0 8px 8px; }
.wm-menu li:hover > .sub-menu, .wm-menu li:focus-within > .sub-menu { display: block; }
.wm-lock > a::before {
	content: ""; width: 14px; height: 14px; background: currentColor; flex: none;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.wm-mode-toggle, .wm-menu-toggle {
	width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--navy-line); background: transparent; color: #fff;
	display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
}
.wm-mode-toggle:hover, .wm-menu-toggle:hover { border-color: var(--accent); }
.wm-i-sun { display: none; }
html[data-theme="dark"] .wm-i-sun { display: block; }
html[data-theme="dark"] .wm-i-moon { display: none; }
.wm-menu-toggle { display: none; }

@media (max-width: 900px) {
	.wm-menu-toggle { display: inline-flex; }
	.wm-nav { order: 4; flex-basis: 100%; display: none; padding-bottom: 12px; }
	.wm-nav.is-open { display: block; }
	.wm-menu, .wm-nav > div > ul { flex-direction: column; }
	.wm-menu a { border-bottom: 0; border-left: 2px solid transparent; }
	.wm-menu .current-menu-item > a { border-left-color: var(--accent); }
	.wm-menu .sub-menu { display: block; position: static; background: transparent; padding-left: 16px; }
}

/* ===== Hlavička podstránky ===== */
.wm-pagehead { background: var(--navy); color: #fff; padding: 56px 0 72px; }
.wm-pagehead h1 { color: #fff; font-size: clamp(34px, 4.5vw, 48px); margin-bottom: 16px; }
.wm-pagehead p { color: #CBD5E1; font-size: 19px; max-width: 680px; margin: 0; }

/* ===== Obsah ===== */
.wm-content > * { max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
.wm-content > .alignfull { max-width: none; }
.wm-content > .alignwide { max-width: 1400px; }
.wm-content > p, .wm-content > ul, .wm-content > h2 { max-width: 1200px; }
.wm-content > :first-child { margin-top: 0; }
.wm-section { padding-top: 72px; padding-bottom: 72px; }
.wm-section + .wm-section { padding-top: 0; }
.wm-content-locked { padding-top: 72px; padding-bottom: 96px; }
.wm-sub { color: var(--muted); font-size: 18px; max-width: 680px; margin-bottom: 40px; }
.wp-block-columns { gap: 32px; margin-bottom: 0; }

/* Úvodný pás */
.wm-hero { background: var(--navy); color: #fff; padding: 72px 24px 96px !important; margin: 0; }
.wm-hero > * { max-width: 1200px; margin-left: auto !important; margin-right: auto !important; }
.wm-hero .wp-block-columns { align-items: center; gap: 56px; }
.wm-hero h1 { color: #fff; margin-bottom: 24px; }
.wm-hero .wm-ph { background: var(--navy2); border-color: var(--navy-line); color: #94A3B8; min-height: 400px; }
.wm-eyebrow { color: var(--accent); font-weight: 600; letter-spacing: 2px; text-transform: uppercase; font-size: 14px; margin-bottom: 20px; }
.wm-lead { font-size: 19px; color: #CBD5E1; max-width: 560px; margin-bottom: 32px; }

/* Tlačidlá */
.wp-block-button__link, .wm-btn {
	display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: var(--navy) !important;
	font-family: inherit; font-size: 16px; font-weight: 600; text-decoration: none; padding: 15px 28px; border-radius: 8px;
	border: 1px solid transparent; cursor: pointer; line-height: 1.2;
}
.wp-block-button__link:hover, .wm-btn:hover { filter: brightness(1.08); }
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: #fff !important; border: 1px solid #475569; }
.wm-section .wp-block-button.is-style-outline > .wp-block-button__link { color: var(--text) !important; border-color: var(--line); }
.wm-btn-dark { background: var(--navy); color: #fff !important; }
html[data-theme="dark"] .wm-btn-dark { background: var(--accent); color: var(--navy) !important; }
.wm-btn-accent { background: var(--accent); color: var(--navy) !important; }

/* Karty */
.wm-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 32px; height: 100%; }
.wm-card p:last-child { margin-bottom: 0; color: var(--muted); }
.wm-card h3 { margin-top: 14px; }
.wm-cards .wp-block-column { display: flex; }
.wm-cards .wm-card { width: 100%; }
.wm-row { padding: 40px; margin-bottom: 32px; }
.wm-row .wp-block-columns { gap: 40px; }
.wm-row .wp-block-column:first-child { flex: 1 1 0 !important; }
.wm-row .wp-block-column:last-child { flex: 2 1 0 !important; }
.wm-row .wm-ph { min-height: 240px; }
.wm-row ul { color: var(--text2); line-height: 1.9; margin: 0; }
.wm-num { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 28px; color: var(--icon); margin: 0 !important; }

/* Ikony v kartách */
.wm-icon { width: 52px; height: 52px; border-radius: 12px; background: var(--icon-bg); margin: 0; position: relative; }
.wm-icon::after { content: ""; position: absolute; inset: 13px; background: var(--icon); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.wm-icon-wifi { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M2 8.5a15 15 0 0 1 20 0'/%3E%3Cpath d='M5 12a10 10 0 0 1 14 0'/%3E%3Cpath d='M8.5 15.5a5 5 0 0 1 7 0'/%3E%3Ccircle cx='12' cy='19' r='1'/%3E%3C/svg%3E"); }
.wm-icon-antenna { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 20V10'/%3E%3Cpath d='M8 6l4-4 4 4'/%3E%3Cpath d='M5 14l-2 6h18l-2-6'/%3E%3C/svg%3E"); }
.wm-icon-chip { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Crect x='5' y='5' width='14' height='14' rx='2'/%3E%3Cpath d='M9 1v4M15 1v4M9 19v4M15 19v4M1 9h4M1 15h4M19 9h4M19 15h4'/%3E%3C/svg%3E"); }
.wm-icon-tool { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M14.7 6.3a4 4 0 0 0-5.4 5.4L3 18l3 3 6.3-6.3a4 4 0 0 0 5.4-5.4l-2.5 2.5-2.5-2.5z'/%3E%3C/svg%3E"); }

/* Zástupné miesto pre obrázok */
.wm-ph { min-height: 360px; border-radius: 16px; background: var(--ph); border: 1px dashed var(--line); display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; color: var(--muted); font-size: 15px; }
.wm-ph p { margin: 0; }
.wp-block-image img { border-radius: 16px; }

/* Zoznam s bodkami */
.wm-checks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 20px; }
.wm-checks li { position: relative; padding-left: 26px; color: var(--muted); }
.wm-checks li strong { color: var(--text); display: block; font-size: 18px; margin-bottom: 4px; }
.wm-checks li::before { content: ""; position: absolute; left: 0; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent2); }

/* Výzva */
.wm-cta { background: var(--accent2); border-radius: 16px; padding: 48px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.wm-cta h2 { color: var(--navy); font-size: 32px; flex-basis: 100%; margin: 0; }
.wm-cta p { color: var(--navy); font-size: 18px; margin: 0; flex: 1 1 320px; }
.wm-cta .wp-block-buttons { margin: 0; }
.wm-cta .wp-block-button__link { background: var(--navy); color: #fff !important; }

/* ===== Na stiahnutie ===== */
.wm-pass-form { max-width: 460px; margin: 0 auto; background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 40px; display: flex; flex-direction: column; gap: 14px; }
.wm-pass-form h2 { font-size: 26px; margin: 4px 0 0; }
.wm-pass-form p { color: var(--muted); margin: 0; }
.wm-pass-icon { width: 56px; height: 56px; border-radius: 14px; background: var(--icon-bg); position: relative; }
.wm-pass-icon::after { content: ""; position: absolute; inset: 14px; background: var(--icon);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat; }
.wm-pass-form .wm-pass-error { color: #B91C1C; }
html[data-theme="dark"] .wm-pass-form .wm-pass-error { color: #FCA5A5; }
.wm-dl-list { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.wm-dl-item { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 20px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.wm-dl-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--icon-bg); flex: none; position: relative; }
.wm-dl-icon::after { content: ""; position: absolute; inset: 11px; background: var(--icon);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3C/svg%3E") center / contain no-repeat; }
.wm-dl-text { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wm-dl-desc { color: var(--text2); font-size: 15px; }
.wm-dl-meta { color: var(--muted); font-size: 14px; }

/* ===== Formuláre ===== */
.wm-form { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 40px; display: flex; flex-direction: column; gap: 6px; }
.wm-form h2 { font-size: 28px; margin-bottom: 12px; }
.wm-form label, .wm-pass-form label { font-weight: 600; font-size: 15px; margin-top: 8px; }
.wm-form input, .wm-form textarea, .wm-pass-form input {
	font: inherit; font-size: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); width: 100%;
}
.wm-form textarea { resize: vertical; }
.wm-form button, .wm-pass-form button { margin-top: 12px; justify-content: center; }
.wm-hp { position: absolute !important; left: -9999px; height: 1px; overflow: hidden; }
.wm-form-ok { background: #DCFCE7; color: #14532D; padding: 12px 16px; border-radius: 8px; }
.wm-form-err { background: #FEE2E2; color: #7F1D1D; padding: 12px 16px; border-radius: 8px; }

/* Kontaktné údaje */
.wm-contact-list { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 24px; }
.wm-contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.wm-contact-list li > span:last-child { display: flex; flex-direction: column; color: var(--muted); }
.wm-contact-list strong { color: var(--text); }
.wm-ci { width: 48px; height: 48px; border-radius: 12px; background: var(--icon-bg); flex: none; position: relative; }
.wm-ci::after { content: ""; position: absolute; inset: 13px; background: var(--icon); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.wm-ci-pin { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 21s-7-6.2-7-12a7 7 0 0 1 14 0c0 5.8-7 12-7 12z'/%3E%3Ccircle cx='12' cy='9' r='2.5'/%3E%3C/svg%3E"); }
.wm-ci-phone { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E"); }
.wm-ci-mail { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='M22 6l-10 7L2 6'/%3E%3C/svg%3E"); }
.wm-ci-clock { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.wm-content .wm-ph { min-height: 220px; }
.wm-hero .wm-ph, .wm-section > .wp-block-columns .wm-ph { min-height: 360px; }

/* Blog / ostatné */
.wm-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; padding-top: 72px; padding-bottom: 72px; }
.wm-post h2 { font-size: 22px; }
.wm-post h2 a { color: var(--text); text-decoration: none; }
.wm-meta { color: var(--muted); font-size: 14px; }
.wm-entry { padding-bottom: 24px; }

/* ===== Pätička ===== */
.wm-footer { background: var(--navy); color: #CBD5E1; padding: 56px 0 32px; }
.wm-footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; margin-bottom: 40px; }
.wm-footer-col { display: flex; flex-direction: column; gap: 8px; }
.wm-footer-col p { margin: 4px 0 0; }
.wm-footer-col .wm-brand-name { font-size: 22px; }
.wm-footer-brand { display: flex; align-items: center; gap: 10px; }
.wm-footer-brand .wm-logo-img { max-height: 48px; }
.wm-footer-title { color: #fff; font-weight: 600; }
.wm-footer a { color: #CBD5E1; }
.wm-footer a:hover { color: #fff; }
.wm-footer-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.wm-footer-bottom { border-top: 1px solid var(--navy-line); padding-top: 24px; font-size: 14px; color: #94A3B8; }

@media (max-width: 781px) {
	.wm-hero { padding: 48px 20px 64px !important; }
	.wm-row, .wm-cta, .wm-form, .wm-pass-form { padding: 28px; }
	.wm-section { padding-top: 48px; padding-bottom: 48px; }
}
