/*
Theme Name: Skirsnemunės mokykla
Theme URI: https://skirsnemune.com
Author: Skirsnemunės Jurgio Baltrušaičio pagrindinė mokykla
Description: Žaisminga blokinė (Gutenberg) tema Skirsnemunės Jurgio Baltrušaičio pagrindinei mokyklai. Spalvos pagal mokyklos logotipą, šriftai įdiegti temoje (Baloo 2, Nunito, Caveat – SIL OFL).
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: skirsnemune
*/

/* ---------- Bendra ---------- */
a { text-decoration-color: var(--wp--preset--color--yellow); text-decoration-thickness: 3px; text-underline-offset: 4px; }
a:hover { text-decoration-color: currentColor; }
:where(.wp-site-blocks) :focus-visible { outline: 3px solid var(--wp--preset--color--yellow); outline-offset: 3px; border-radius: 6px; }
.wp-element-button, .wp-block-button__link { transition: transform .15s ease, background-color .15s ease; }
.wp-element-button:hover, .wp-block-button__link:hover { transform: scale(1.04); }
img { height: auto; }

/* Žymeklio pabraukimas: pažymėkite žodį antraštėje ir pasirinkite „Paryškinti“ (Highlight) */
:where(h1, h2, h3) mark, .skn-marker mark {
	background: linear-gradient(transparent 58%, var(--wp--preset--color--yellow) 58%, var(--wp--preset--color--yellow) 92%, transparent 92%) !important;
	color: inherit !important;
	padding: 0 .12em;
}

/* ---------- Viršutinė juosta ir antraštė ---------- */
.skn-topbar { font-size: .875rem; font-weight: 600; }
.skn-topbar a { color: inherit; text-decoration: none; }
.skn-topbar a:hover { text-decoration: underline; }
.skn-brand { text-decoration: none; }
.skn-brand a { text-decoration: none; }
.skn-logo img { width: 92px; height: auto; display: block; }
.skn-brand-name { font-family: var(--wp--preset--font-family--heading); font-size: 1.4rem; font-weight: 700; line-height: 1.1; margin: 0; }
.skn-brand-sub { font-family: var(--wp--preset--font-family--heading); font-size: 1.05rem; font-weight: 500; line-height: 1.1; margin: 0; color: var(--wp--preset--color--red); }
.skn-brand-name a, .skn-brand-sub a { color: inherit; text-decoration: none; }
.skn-nav .wp-block-navigation-item__content { padding: .5rem .85rem; border-radius: 999px; text-decoration: none; }
.skn-nav .wp-block-navigation-item__content:hover,
.skn-nav .current-menu-item > .wp-block-navigation-item__content { background: var(--wp--preset--color--pastel-yellow); }
.skn-nav .wp-block-navigation__submenu-container { border-radius: 20px; border: 0 !important; box-shadow: 0 16px 40px rgba(27,43,75,.15); padding: .5rem; }

/* ---------- Saulės spinduliai (grupei ar stulpeliui) ---------- */
.is-style-skn-sun:not(.wp-block-button) { position: relative; isolation: isolate; }
.is-style-skn-sun:not(.wp-block-button)::before {
	content: ""; position: absolute; z-index: -1; left: -6%; right: -6%; top: -1.5rem; aspect-ratio: 400 / 210;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 210'%3E%3Cpath d='M289 194L397 175 M281 171L380 122 M267 150L349 76 M248 134L306 40 M225 123L255 18 M200 120L200 10 M175 123L145 18 M152 134L94 40 M133 150L51 76 M119 171L20 122 M111 194L3 175' stroke='%23F5C400' stroke-width='16' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") no-repeat center top / 100% auto;
	pointer-events: none;
}

/* ---------- Bangos ---------- */
.is-style-skn-wave, .is-style-skn-wave-both { position: relative; }
.is-style-skn-wave::after, .is-style-skn-wave-both::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 50px; pointer-events: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 30 C 240 70 480 0 720 28 C 960 56 1200 4 1440 30 L1440 60 L0 60 Z' fill='%23FFFFFF'/%3E%3C/svg%3E") no-repeat bottom / 100% 100%;
}
.is-style-skn-wave-both::before {
	content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 50px; pointer-events: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 0 L1440 0 L1440 24 C 1200 60 960 6 720 30 C 480 54 240 2 0 28 Z' fill='%23FFFFFF'/%3E%3C/svg%3E") no-repeat top / 100% 100%;
}

/* ---------- Plytelės ir kortelės ---------- */
.is-style-skn-tile { position: relative; border-radius: 28px; padding: 1.4rem !important; min-height: 120px; transition: transform .15s ease; }
.is-style-skn-tile:hover { transform: translateY(-4px) rotate(-1.5deg); }
.is-style-skn-tile :where(h2, h3, h4) { font-size: 1.2rem; font-weight: 600; margin: 0; }
.is-style-skn-tile a { color: inherit; text-decoration: none; }
.is-style-skn-tile a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.skn-icon img, .is-style-skn-tile .wp-block-image img { width: 52px !important; height: 52px !important; padding: 13px; box-sizing: border-box; background: #fff; border-radius: 18px !important; }
.is-style-skn-tile .wp-block-image { margin: 0; }

.is-style-skn-card { border: 2px solid #E9ECF3; border-radius: 32px; padding: .75rem !important; background: #fff; height: 100%; box-sizing: border-box; transition: transform .15s ease, border-color .15s ease; }
.is-style-skn-card:hover { transform: translateY(-4px); border-color: var(--wp--preset--color--navy); }
.is-style-skn-card > :not(.wp-block-post-featured-image):not(.wp-block-image) { margin-left: .75rem; margin-right: .75rem; }
.is-style-skn-card .wp-block-post-title a { text-decoration: none; }
.is-style-skn-card .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; }
.is-style-skn-card { position: relative; }

/* Kategorijos „lipdukas“ */
.skn-pill a, .wp-block-post-terms.skn-pill a {
	display: inline-block; background: var(--wp--preset--color--yellow); color: var(--wp--preset--color--navy);
	padding: .2rem .8rem; border-radius: 999px; font-weight: 800; font-size: .875rem; text-decoration: none; position: relative; z-index: 1;
}
.skn-pill .wp-block-post-terms__separator { display: none; }

/* ---------- Pastraipų stiliai ---------- */
.is-style-skn-hand { font-family: var(--wp--preset--font-family--hand) !important; font-size: 2.1rem !important; font-weight: 700; line-height: 1.1; color: var(--wp--preset--color--red); transform: rotate(-3deg); transform-origin: left center; }
.is-style-skn-sticker { display: inline-block; background: var(--wp--preset--color--red); color: #fff !important; font-family: var(--wp--preset--font-family--heading); font-weight: 600; font-size: 1.35rem; padding: .35rem 1.2rem !important; border-radius: 16px; transform: rotate(-6deg); box-shadow: 0 6px 16px rgba(179,18,27,.3); width: fit-content; }
.is-style-skn-pill { display: inline-block; width: fit-content; background: var(--wp--preset--color--yellow); color: var(--wp--preset--color--navy); padding: .2rem .9rem !important; border-radius: 999px; font-weight: 800; font-size: .875rem !important; }

/* ---------- Mygtukų stiliai ---------- */
.wp-block-button.is-style-skn-sun .wp-block-button__link { box-shadow: 0 6px 0 var(--wp--preset--color--yellow); }
.wp-block-button.is-style-skn-yellow .wp-block-button__link { background: var(--wp--preset--color--yellow); color: var(--wp--preset--color--navy); }
.wp-block-button.is-style-skn-soft .wp-block-button__link { background: var(--wp--preset--color--pastel-yellow); color: var(--wp--preset--color--navy); padding: .6rem 1.1rem; }
.wp-block-button.is-style-outline .wp-block-button__link { border: 2px solid currentColor; background: transparent; color: var(--wp--preset--color--navy); padding: calc(.9rem - 2px) calc(1.6rem - 2px); }

/* ---------- Nuotraukų stiliai ---------- */
.wp-block-image.is-style-skn-blob img { border-radius: 48px 160px 48px 48px !important; border: 6px solid #fff; box-shadow: 0 16px 40px rgba(27,43,75,.15); box-sizing: border-box; }
.wp-block-image.is-style-skn-tilt-left { transform: rotate(-3deg); }
.wp-block-image.is-style-skn-tilt-right { transform: rotate(2.5deg) translateY(1.25rem); }
.wp-block-image.is-style-skn-blob img, .wp-block-image.is-style-skn-tilt-left img, .wp-block-image.is-style-skn-tilt-right img { width: 100%; object-fit: cover; }

/* ---------- Dokumentų sąrašas ir failų blokai ---------- */
.is-style-skn-docs { list-style: none; padding: 0 !important; margin-left: 0; border: 2px solid #E9ECF3; border-radius: 28px; overflow: hidden; }
.is-style-skn-docs li { position: relative; display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem 1rem 4.25rem; border-top: 2px solid #EEF1F6; font-weight: 600; min-height: 44px; }
.is-style-skn-docs li:first-child { border-top: 0; }
.is-style-skn-docs li::before { content: ""; position: absolute; left: 1.25rem; width: 40px; height: 40px; border-radius: 14px; background: var(--wp--preset--color--pastel-yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231B2B4B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H6v18h12V7z M14 3v4h4'/%3E%3C/svg%3E") no-repeat center; }
.is-style-skn-docs li:hover { background: var(--wp--preset--color--cream); }
.is-style-skn-docs a { text-decoration: none; color: inherit; }
.is-style-skn-docs a::after { content: ""; position: absolute; inset: 0; }
.wp-block-file { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; padding: 1rem 1.25rem; border: 2px solid #E9ECF3; border-radius: 22px; background: #fff; }
.wp-block-file:not(.wp-element-button) { font-size: 1rem; }
.wp-block-file > a:first-child { font-weight: 700; text-decoration: none; color: var(--wp--preset--color--navy); }
.wp-block-file .wp-block-file__button { background: var(--wp--preset--color--pastel-yellow); color: var(--wp--preset--color--navy); font-weight: 800; border-radius: 999px; padding: .5rem 1rem; font-size: .9rem; }
.wp-block-file + .wp-block-file { margin-top: .5rem; }

/* ---------- Puslapio antraštės juosta ---------- */
.skn-page-head .wp-block-post-title { margin: 0; }

/* ---------- Poraštė ---------- */
.skn-footer a { color: inherit; text-decoration: none; }
.skn-footer a:hover { text-decoration: underline; text-decoration-color: var(--wp--preset--color--yellow); }
.skn-footer .skn-footer-title { color: var(--wp--preset--color--yellow); font-weight: 800; margin-bottom: .25rem; }

/* ---------- Puslapiavimas ---------- */
.wp-block-query-pagination a, .wp-block-query-pagination .page-numbers { display: inline-block; min-width: 44px; padding: .5rem .75rem; text-align: center; border-radius: 999px; text-decoration: none; font-weight: 800; }
.wp-block-query-pagination .page-numbers.current { background: var(--wp--preset--color--navy); color: #fff; }

/* ---------- Mažesni ekranai ---------- */
@media (max-width: 781px) {
	.skn-logo img { width: 64px; }
	.skn-brand-name { font-size: 1.1rem; }
	.skn-brand-sub { font-size: .9rem; }
	.is-style-skn-tile:hover { transform: none; }
	.wp-block-image.is-style-skn-tilt-right { transform: rotate(2deg); }
}
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; }
	.is-style-skn-tile:hover, .is-style-skn-card:hover, .wp-element-button:hover { transform: none !important; }
}

/* ---------- Išdėstymo pataisos ---------- */
.wp-site-blocks > * + * { margin-block-start: 0; }
.wp-block-column.is-style-skn-sun { padding-top: 2.5rem; }
.is-style-skn-sun .is-style-skn-sticker { position: relative; margin-top: -2.75rem !important; margin-left: -.5rem; }
.skn-section-head { gap: .75rem 1.5rem; }
.skn-section-head :where(h2) { margin: 0; }
.skn-values-text { font-family: var(--wp--preset--font-family--heading); font-size: 1.375rem; font-weight: 500; line-height: 1.4; }
