/*
Theme Name: Typing Tools Pro
Theme URI: https://example.com/typing-tools-pro
Author: Typing Tools
Author URI: https://example.com
Description: A fast, clean, AdSense-ready WordPress theme for typing speed test and utility tool websites.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hiztesti-pro
Tags: custom-logo, custom-menu, one-column, responsive-layout, accessibility-ready
*/

:root {
  --hpro-bg: #f4f7fb;
  --hpro-surface: #ffffff;
  --hpro-text: #111827;
  --hpro-muted: #536071;
  --hpro-border: #dbe3ea;
  --hpro-teal: #0f766e;
  --hpro-teal-dark: #115e59;
  --hpro-orange: #f97316;
  --hpro-shadow: 0 18px 42px rgba(15, 23, 42, .08);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--hpro-bg);
  color: var(--hpro-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

a {
  color: var(--hpro-teal);
}

a:hover {
  color: var(--hpro-teal-dark);
}

img {
  max-width: 100%;
  height: auto;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--hpro-text);
  color: #ffffff;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(219, 227, 234, .9);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
}

.site-branding {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--hpro-text);
  text-decoration: none;
}

.site-branding:hover {
  color: var(--hpro-text);
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #0f766e, #1d4ed8);
  color: #ffffff;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

.brand-text {
  display: grid;
  min-width: 0;
  text-decoration: none;
}

.custom-logo-link {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.custom-logo-link img {
  width: auto;
  max-height: 46px;
}

.brand-title {
  overflow: hidden;
  color: var(--hpro-text);
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-tagline {
  overflow: hidden;
  color: var(--hpro-muted);
  font-size: .82rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.primary-navigation {
  justify-self: end;
}

.primary-navigation ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-navigation a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 8px 11px;
  border-radius: 8px;
  color: #334155;
  font-size: .93rem;
  font-weight: 800;
  text-decoration: none;
}

.primary-navigation a:hover,
.primary-navigation .current-menu-item > a {
  background: #e7f7f4;
  color: var(--hpro-teal-dark);
}

.site-main {
  min-height: 64vh;
  padding: 34px 0 54px;
}

.content-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.page-shell,
.post-shell {
  padding: 30px;
  border: 1px solid var(--hpro-border);
  border-radius: 8px;
  background: var(--hpro-surface);
  box-shadow: var(--hpro-shadow);
}

.page-header,
.archive-header {
  margin-bottom: 24px;
}

.page-header h1,
.archive-header h1,
.entry-title {
  margin: 0 0 12px;
  color: var(--hpro-text);
  font-size: 2rem;
  line-height: 1.15;
  letter-spacing: 0;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content > *:last-child {
  margin-bottom: 0;
}

.entry-content p,
.entry-content li {
  color: var(--hpro-muted);
}

.entry-content h2,
.entry-content h3 {
  color: var(--hpro-text);
  line-height: 1.25;
}

.post-list {
  display: grid;
  gap: 18px;
}

.post-card {
  padding: 22px;
  border: 1px solid var(--hpro-border);
  border-radius: 8px;
  background: var(--hpro-surface);
}

.post-card h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  line-height: 1.25;
}

.post-card h2 a {
  color: var(--hpro-text);
  text-decoration: none;
}

.post-card h2 a:hover {
  color: var(--hpro-teal);
}

.theme-button,
.theme-button:visited {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--hpro-teal);
  color: #ffffff;
  font-weight: 850;
  text-decoration: none;
}

.theme-button:hover {
  background: var(--hpro-teal-dark);
  color: #ffffff;
}

.site-footer {
  border-top: 1px solid var(--hpro-border);
  background: #111827;
  color: #d1d5db;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0;
}

.footer-brand {
  display: grid;
  gap: 6px;
}

.footer-brand strong {
  color: #ffffff;
}

.footer-brand span {
  color: #9ca3af;
  font-size: .92rem;
}

.footer-navigation ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-navigation a {
  color: #d1d5db;
  font-size: .92rem;
  font-weight: 750;
  text-decoration: none;
}

.footer-navigation a:hover {
  color: #ffffff;
}

.not-found {
  text-align: center;
}

.not-found .page-shell {
  max-width: 760px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .site-header__inner,
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .site-header__inner {
    gap: 12px;
    padding: 12px 0;
  }

  .primary-navigation {
    justify-self: stretch;
    overflow-x: auto;
  }

  .primary-navigation ul {
    flex-wrap: nowrap;
    justify-content: flex-start;
    min-width: max-content;
    padding-bottom: 2px;
  }

  .site-footer__inner {
    align-items: start;
  }

  .footer-navigation ul {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .site-main {
    padding: 22px 0 40px;
  }

  .site-header__inner,
  .content-wrap,
  .site-footer__inner {
    width: min(100% - 24px, 1180px);
  }

  .page-shell,
  .post-shell {
    padding: 20px;
  }

  .page-header h1,
  .archive-header h1,
  .entry-title {
    font-size: 1.65rem;
  }

  .brand-tagline {
    display: none;
  }
}
