/*
Theme Name: Tonal
Theme URI: https://test.imobilezone.com
Author: JetHost
Description: Блок тема в стил Material Design 3 — тонални цветове, Roboto, заоблени повърхности, елевация, чипове и плаващ бутон.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: tonal
*/

body { -webkit-font-smoothing: antialiased; }

/* Material Symbols */
.ms { font-family: 'Material Symbols Rounded'; font-weight: normal; font-style: normal; font-size: 24px; line-height: 1; display: inline-block; letter-spacing: normal; text-transform: none; white-space: nowrap; direction: ltr; font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24; -webkit-font-smoothing: antialiased; }

/* Top app bar */
.m3-appbar { position: sticky; top: 0; z-index: 50; transition: box-shadow .2s, background .2s; }
.admin-bar .m3-appbar { top: 32px; }
.m3-appbar.is-scrolled { background: var(--wp--preset--color--surface-container) !important; box-shadow: 0 1px 2px rgba(0,0,0,.3), 0 1px 3px 1px rgba(0,0,0,.15); }

/* Elevation */
.m3-elev-1 { box-shadow: 0 1px 2px rgba(0,0,0,.3), 0 1px 3px 1px rgba(0,0,0,.15); }
.m3-card { transition: box-shadow .25s cubic-bezier(.2,0,0,1), transform .25s cubic-bezier(.2,0,0,1); position: relative; overflow: hidden; }
.m3-card:hover { box-shadow: 0 2px 6px 2px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.3); }
.m3-card::after { content: ""; position: absolute; inset: 0; background: var(--wp--preset--color--on-surface); opacity: 0; transition: opacity .2s; pointer-events: none; }
.m3-card:hover::after { opacity: .04; }

.m3-icon { width: 48px; height: 48px; border-radius: 16px; display: grid !important; place-items: center; margin-bottom: 1rem !important; }

/* Buttons: state layers */
.wp-block-button__link { position: relative; overflow: hidden; transition: box-shadow .2s cubic-bezier(.2,0,0,1); }
.wp-block-button__link::before { content: ""; position: absolute; inset: 0; background: currentColor; opacity: 0; transition: opacity .2s; }
.wp-block-button__link:hover::before { opacity: .08; }
.wp-block-button__link:active::before { opacity: .12; }
.wp-block-button__link:hover { box-shadow: 0 1px 2px rgba(0,0,0,.3), 0 1px 3px 1px rgba(0,0,0,.15); }
.is-style-outline .wp-block-button__link:hover, .is-style-tonal .wp-block-button__link:hover { box-shadow: none; }

/* Chips */
.m3-chips { gap: 8px !important; }
.m3-chips p { margin: 0; padding: 6px 16px; border-radius: 8px; border: 1px solid var(--wp--preset--color--outline-variant); font-size: .875rem; font-weight: 500; color: var(--wp--preset--color--on-surface-variant); }

/* Ripple */
.m3-ripple { position: absolute; border-radius: 50%; transform: scale(0); background: currentColor; opacity: .2; animation: m3r .5s cubic-bezier(.2,0,0,1); pointer-events: none; }
@keyframes m3r { to { transform: scale(4); opacity: 0; } }

/* FAB */
.m3-fab { position: fixed; right: 24px; bottom: 24px; z-index: 60; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--wp--preset--color--primary-container); color: var(--wp--preset--color--on-primary-container); box-shadow: 0 1px 3px rgba(0,0,0,.3), 0 4px 8px 3px rgba(0,0,0,.15); text-decoration: none !important; transition: box-shadow .2s, transform .2s; }
.m3-fab:hover { box-shadow: 0 2px 3px rgba(0,0,0,.3), 0 6px 10px 4px rgba(0,0,0,.15); transform: translateY(-1px); }

/* Post cards */
.wp-block-post-template .wp-block-post { background: var(--wp--preset--color--surface-container-low); border-radius: 12px; overflow: hidden; padding-bottom: 16px; transition: box-shadow .25s; }
.wp-block-post-template .wp-block-post:hover { box-shadow: 0 1px 2px rgba(0,0,0,.3), 0 2px 6px 2px rgba(0,0,0,.15); }
.wp-block-post-template .wp-block-post > *:not(.wp-block-post-featured-image) { padding-left: 16px; padding-right: 16px; }
.wp-block-post-featured-image { margin-bottom: 8px !important; }
.wp-block-post-featured-image:empty, .wp-block-post-featured-image:not(:has(img)) { display: none; }

/* Inputs */
input[type=text], input[type=email], input[type=search], input[type=url], textarea { border: 1px solid var(--wp--preset--color--outline); border-radius: 4px; padding: 14px 16px; background: transparent; font: inherit; color: inherit; }
input:focus, textarea:focus { outline: 2px solid var(--wp--preset--color--primary); outline-offset: -1px; border-color: transparent; }
:where(a, button):focus-visible { outline: 3px solid var(--wp--preset--color--primary); outline-offset: 2px; border-radius: 8px; }
