/* Tidara theme — base, header, footer, blog. Widget styles are in widgets.css. */

:root {
  --accent: #1f7aff;
  --accent-2: #2ec0f0;
  --mint: #2bc99a;
  --amber: #f5a524;
  --rose: #f4708c;
  --violet: #8b7cf6;
  --sky: #2ec0f0;
  --bg: #f5f6f8;
  --card: #ffffff;
  --fg: #0d0f14;
  --muted: #6e7380;
  --faint: #a1a6b2;
  --line: rgba(13, 15, 20, 0.08);
  --dark: #0a0b0f;
  --dark-card: #15171d;
  --dark-fg: #f2f3f6;
  --dark-muted: #6f7482;
  --shadow: 0 30px 60px -30px rgba(13, 15, 20, 0.35);
  --bg-soft: #eef3fb;
  --accent-deep: #0b5be0;
  --band: #0e1220;
  --band-fg: #e8ecf5;
  --band-card: #171c2e;
  --tw-display: "Inter Tight", "SF Pro Display", system-ui, sans-serif;
  --tw-body: "Inter", system-ui, -apple-system, sans-serif;
  --tw-container: 1200px;
  --tw-radius: 28px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --header-h: 56px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #0b0c10; --card: #16181e; --fg: #f2f3f6; --muted: #9aa0ad; --faint: #6c7280; --line: rgba(255,255,255,.08); --shadow: 0 30px 60px -30px rgba(0,0,0,.8); --bg-soft: #111526; --band: #070a12; --band-card: #131829; color-scheme: dark; }
}
:root[data-theme="dark"] { --bg: #0b0c10; --card: #16181e; --fg: #f2f3f6; --muted: #9aa0ad; --faint: #6c7280; --line: rgba(255,255,255,.08); --shadow: 0 30px 60px -30px rgba(0,0,0,.8); --bg-soft: #111526; --band: #070a12; --band-card: #131829; color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--tw-body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; }
h1, h2, h3, h4, h5, h6 { font-family: var(--tw-display); letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 .5em; text-wrap: balance; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img, video, svg { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 3px; border-radius: 6px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { clip: auto; width: auto; height: auto; left: 12px; top: 12px; z-index: 1000; background: var(--card); color: var(--fg); padding: 10px 16px; border-radius: 10px; box-shadow: var(--shadow); }

.wrap { width: 100%; max-width: var(--tw-container); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 820px; }
.kicker { font-size: 14px; font-weight: 600; color: var(--accent); margin-bottom: 10px; }
.grad { background: linear-gradient(95deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* Gradient words paint only inside their box; the extra bottom padding keeps descenders (g, y, p) whole in tight headings. Inline padding doesn't move the text. */
.grad { padding-bottom: .14em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.card { background: var(--card); border-radius: var(--tw-radius); box-shadow: 0 0 0 1px var(--line); }

/* Buttons */
.btn, .wp-block-button__link, input[type="submit"], button[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; border: 0;
  font: 600 15.5px/1.2 var(--tw-body); cursor: pointer; text-decoration: none !important; transition: transform .2s cubic-bezier(.16,1,.3,1), background .3s, box-shadow .3s, color .3s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.98); }
.btn-solid, .wp-block-button__link, input[type="submit"], button[type="submit"] { background: var(--accent); color: #fff; }
.btn-solid:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.btn-line { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent); background: transparent; }
.btn-line:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.btn-ghost { color: var(--accent); background: transparent; padding-inline: 4px; }
.btn-sm { padding: 7px 16px; font-size: 13.5px; }
.btn .tidara-icon { width: 18px; height: 18px; }

/* Forms */
input[type="text"], input[type="email"], input[type="url"], input[type="search"], input[type="password"], input[type="number"], textarea, select {
  width: 100%; font: inherit; color: var(--fg); background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus, select:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.search-form { display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: 999px; padding: 6px 6px 6px 18px; box-shadow: 0 0 0 1px var(--line); max-width: 520px; }
.search-form .tidara-icon { color: var(--muted); flex: none; }
.search-form .search-field { border: 0; background: transparent; padding: 8px 0; box-shadow: none; }

/* Header */
.site-header { position: relative; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.has-sticky-header .site-header { position: sticky; top: 0; }
.admin-bar.has-sticky-header .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar.has-sticky-header .site-header { top: 0; } }
.site-header.is-glass { background: color-mix(in srgb, var(--bg) 78%, transparent); -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%); }
.site-header__inner { display: flex; align-items: center; gap: 26px; height: var(--header-h); }
.site-header.is-scrolled { box-shadow: 0 10px 30px -24px rgba(0,0,0,.4); }
.site-logo, .custom-logo-link { display: inline-flex; align-items: center; gap: 9px; color: var(--fg); font-family: var(--tw-display); font-weight: 800; font-size: 18px; text-decoration: none !important; }
.custom-logo { max-height: 34px; width: auto; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.site-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; }
.site-nav .menu a { color: var(--muted); font-size: 13.5px; text-decoration: none; transition: color .2s; }
.site-nav .menu a:hover, .site-nav .current-menu-item > a { color: var(--fg); }
.site-nav .menu li { position: relative; }
.site-nav .sub-menu { position: absolute; top: calc(100% + 12px); left: -14px; min-width: 200px; list-style: none; margin: 0; padding: 8px; background: var(--card); border-radius: 16px; box-shadow: var(--shadow), 0 0 0 1px var(--line); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .25s cubic-bezier(.16,1,.3,1); }
.site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.site-nav .sub-menu a { display: block; padding: 8px 12px; border-radius: 10px; }
.site-nav .sub-menu a:hover { background: var(--bg); }
.menu-toggle { display: none; margin-left: auto; background: none; border: 0; color: var(--fg); padding: 8px; cursor: pointer; }
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; margin: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 10px var(--gutter) 22px; background: var(--bg); border-bottom: 1px solid var(--line); clip-path: inset(0 0 100% 0); transition: clip-path .45s cubic-bezier(.16,1,.3,1); }
  .site-nav.is-open { clip-path: inset(0 0 0 0); }
  .site-nav .menu { flex-direction: column; gap: 0; }
  .site-nav .menu a { display: block; padding: 13px 0; font-size: 20px; font-family: var(--tw-display); font-weight: 600; color: var(--fg); border-bottom: 1px solid var(--line); }
  .site-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: none; padding: 0 0 0 14px; }
  .header-cta { margin-top: 16px; }
}

/* Main */
.site-main { padding-block: 70px 100px; }
.site-main.is-builder { padding: 0; }
.page-head { margin-bottom: 44px; }
.page-title { font-size: clamp(38px, 6vw, 68px); font-weight: 800; letter-spacing: -0.04em; }
.page-desc { color: var(--muted); font-size: 18px; max-width: 60ch; }

/* Blog list */
.post-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.is-blog-list .post-list { grid-template-columns: 1fr; max-width: 820px; }
.post-card { overflow: hidden; display: flex; flex-direction: column; transition: transform .45s cubic-bezier(.16,1,.3,1), box-shadow .45s; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.post-card__media img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .8s cubic-bezier(.16,1,.3,1); }
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card__media { overflow: hidden; display: block; }
.post-card__body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card__title { font-size: 22px; margin: 0; }
.post-card__title a { color: var(--fg); }
.post-card__excerpt { color: var(--muted); font-size: 15.5px; }
.post-card__excerpt p { margin: 0; }
.read-more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; }
.read-more .tidara-icon { transition: transform .3s; }
.read-more:hover .tidara-icon { transform: translateX(4px); }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--faint); font-size: 13.5px; margin: 0; }
.post-meta span::before { content: "·"; margin-right: 14px; }
@media (max-width: 1000px) { .post-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .post-list { grid-template-columns: 1fr; } }

.pagination { margin-top: 50px; }
.nav-links { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.page-numbers { min-width: 42px; height: 42px; display: inline-grid; place-items: center; padding: 0 12px; border-radius: 999px; background: var(--card); color: var(--fg); box-shadow: 0 0 0 1px var(--line); text-decoration: none !important; }
.page-numbers.current { background: var(--accent); color: #fff; box-shadow: none; }

/* Single */
.has-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 60px; }
@media (max-width: 1000px) { .has-sidebar { grid-template-columns: 1fr; } }
.entry-hero { margin: 0 0 44px; }
.entry-hero img { display: block; width: 100%; border-radius: var(--tw-radius); }
.entry-content { font-size: 18px; line-height: 1.7; }
.entry-content > * { margin-block: 0 1.2em; }
.entry-content h2 { font-size: 32px; margin-top: 1.6em; }
.entry-content h3 { font-size: 24px; margin-top: 1.4em; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content img { border-radius: 18px; }
.entry-content blockquote { margin-inline: 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--accent); font-size: 20px; font-family: var(--tw-display); }
.entry-content pre, .entry-content code { background: var(--card); border-radius: 10px; font-size: 15px; }
.entry-content pre { padding: 18px 20px; overflow: auto; box-shadow: 0 0 0 1px var(--line); }
.entry-content code { padding: 2px 6px; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; }
.alignwide { max-width: 1100px; margin-inline: auto; }
.alignfull { width: 100vw; max-width: 100vw; margin-inline: calc(50% - 50vw); }
.wp-caption-text, figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; }
.entry-footer { margin-top: 50px; padding-top: 30px; border-top: 1px solid var(--line); }
.tags a { display: inline-block; margin: 0 6px 6px 0; padding: 5px 12px; border-radius: 99px; background: var(--card); box-shadow: 0 0 0 1px var(--line); font-size: 13.5px; color: var(--muted); }
.post-navigation .nav-links { justify-content: space-between; }
.post-navigation a { display: grid; gap: 2px; color: var(--fg); font-weight: 600; max-width: 46%; }
.post-navigation a span { color: var(--faint); font-size: 13px; font-weight: 500; }
.sidebar .widget { margin-bottom: 30px; }
.widget-title { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); font-family: var(--tw-body); }
.widget ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.widget a { color: var(--fg); }

/* Comments */
.comments { margin-top: 60px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 30px; }
.comment-body { background: var(--card); border-radius: 18px; padding: 20px 22px; box-shadow: 0 0 0 1px var(--line); margin-bottom: 14px; }
.comment-meta { display: flex; gap: 10px; align-items: center; font-size: 14px; margin-bottom: 8px; }
.comment-meta img { border-radius: 50%; }
.comment-form { display: grid; gap: 14px; }

/* 404 */
.error-404 { text-align: center; padding-block: 120px; }
.error-404 .search-form { margin: 26px auto; }
.big-404 { font-family: var(--tw-display); font-weight: 800; font-size: clamp(110px, 22vw, 260px); line-height: .9; letter-spacing: -0.06em; margin: 0; background: linear-gradient(180deg, var(--fg), color-mix(in srgb, var(--fg) 20%, transparent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.no-results { padding: 40px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 40px; color: var(--faint); font-size: 13.5px; }
.footer-widgets { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 30px; padding-bottom: 34px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.footer-brand p { margin-top: 12px; color: var(--muted); max-width: 30ch; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.footer-text { margin: 0; }
.footer-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 18px; }
.footer-menu a { color: var(--faint); }
.footer-menu a:hover { color: var(--fg); }
@media (max-width: 860px) { .footer-widgets { grid-template-columns: 1fr 1fr; } }

/* Elementor: let full-width sections breathe and keep our fonts */
.elementor-page .site-main.is-builder { overflow: visible; }
.elementor-widget-heading .elementor-heading-title { font-family: var(--tw-display); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* Cookie notice */
.tw-cookie { position: fixed; z-index: 90; left: 50%; bottom: max(16px, env(safe-area-inset-bottom, 0px)); width: min(680px, calc(100% - 32px)); display: flex; align-items: center; gap: 16px; padding: 14px 14px 14px 20px; border-radius: 18px; background: color-mix(in srgb, var(--card) 88%, transparent); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px); box-shadow: 0 0 0 1px var(--line), 0 24px 50px -24px rgba(13,15,20,.45); color: var(--fg); font-size: 14.5px; line-height: 1.45; transform: translate(-50%, 140%); opacity: 0; transition: transform .55s cubic-bezier(.16,1,.3,1), opacity .4s; }
.tw-cookie.is-in { transform: translate(-50%, 0); opacity: 1; }
.tw-cookie[hidden] { display: none; }
.tw-cookie p { margin: 0; flex: 1; color: var(--muted); }
.tw-cookie a { color: var(--accent); font-weight: 600; white-space: nowrap; }
.tw-cookie__btns { display: flex; gap: 8px; flex: none; }
.tw-cookie .btn { flex: none; }
@media (max-width: 560px) { .tw-cookie { flex-direction: column; align-items: stretch; text-align: center; gap: 12px; padding: 16px; } .tw-cookie__btns { width: 100%; } .tw-cookie .btn { flex: 1; } }
@media (prefers-reduced-motion: reduce) { .tw-cookie { transition: none; } }
