/*
Theme Name: HAUER Solutions
Theme URI: https://www.brunes.sk
Author: HAUER Solutions
Author URI: https://www.brunes.sk
Description: WordPress theme wrapper for the HAUER Solutions frontend.
Version: 1.0.15
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 8.0
Text Domain: hauer-solutions
*/

html {
  background: #0a0a0f;
}

body.hauer-solutions-theme {
  margin: 0;
  background: #0a0a0f;
  color: #e2e8f0;
  font-family: "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.hauer-solutions-theme button,
body.hauer-solutions-theme input,
body.hauer-solutions-theme select,
body.hauer-solutions-theme textarea {
  font: inherit;
}

.hauer-theme-build-message {
  box-sizing: border-box;
  max-width: 720px;
  margin: 8rem auto;
  padding: 2rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

body.hauer-solutions-theme a {
  color: inherit;
}

.hauer-native-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(10, 10, 15, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body.admin-bar .hauer-native-header {
  top: 32px;
}

.hauer-native-header__inner,
.hauer-native-footer__inner,
.hauer-native-hero__inner,
.hauer-post-grid-section,
.hauer-single-post__inner {
  box-sizing: border-box;
  width: min(100%, 1200px);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.hauer-native-header__inner {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.hauer-native-brand img {
  display: block;
  height: 44px;
  width: auto;
}

.hauer-native-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hauer-native-nav__link,
.hauer-native-cta,
.hauer-pagination .page-numbers {
  text-decoration: none;
  transition: 0.2s ease;
}

.hauer-native-nav__link {
  padding: 10px 14px;
  border-radius: 12px;
  color: #cbd5e1;
}

.hauer-native-nav__link:hover,
.hauer-native-nav__link.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.hauer-native-cta {
  padding: 12px 18px;
  border-radius: 16px;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, #6366f1, #8b5cf6, #06b6d4);
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.22);
}

.hauer-native-main {
  padding-bottom: 64px;
}

.hauer-native-hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 48px;
}

.hauer-native-hero::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 50%;
  transform: translateX(-50%);
  width: min(780px, 90vw);
  height: 320px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.2), rgba(10, 10, 15, 0));
  filter: blur(30px);
}

.hauer-native-hero__inner {
  position: relative;
  max-width: 860px;
  text-align: center;
}

.hauer-native-eyebrow {
  margin: 0 0 18px;
  color: #818cf8;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 13px;
  font-weight: 700;
}

.hauer-native-hero h1,
.hauer-single-post h1 {
  margin: 0 0 20px;
  color: #fff;
  line-height: 1.08;
  font-size: clamp(2.3rem, 5vw, 4.4rem);
}

.hauer-native-hero p,
.hauer-archive-description,
.hauer-single-post__meta,
.hauer-post-card__meta,
.hauer-post-card__excerpt,
.hauer-single-post__content {
  color: #94a3b8;
}

.hauer-post-grid-section {
  padding-top: 24px;
}

.hauer-page-main {
  padding-top: 48px;
}

.hauer-page-shell {
  box-sizing: border-box;
  width: min(100%, 1200px);
  margin: 0 auto;
  padding: 0 24px 32px;
}

.hauer-page-content {
  min-height: 40vh;
}

.hauer-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.hauer-post-card,
.hauer-single-post__inner {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  border-radius: 28px;
  overflow: hidden;
}

.hauer-post-card__image,
.hauer-post-card__image img {
  display: block;
  width: 100%;
}

.hauer-post-card__image img,
.hauer-post-card__image-placeholder {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background:
    radial-gradient(circle at top left, rgba(99, 102, 241, 0.28), transparent 45%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.95));
}

.hauer-post-card__body {
  padding: 24px;
}

.hauer-post-card__meta,
.hauer-single-post__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 14px;
  margin-bottom: 16px;
}

.hauer-post-card h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
  line-height: 1.3;
  color: #fff;
}

.hauer-post-card h2 a,
.hauer-single-post__content a,
.hauer-native-eyebrow a {
  text-decoration: none;
}

.hauer-post-card__excerpt {
  line-height: 1.7;
  margin-bottom: 18px;
}

.hauer-post-card__link,
.hauer-single-post__content a {
  color: #818cf8;
}

.hauer-single-post {
  padding-top: 48px;
}

.hauer-single-post__inner {
  max-width: 860px;
  padding-top: 48px;
  padding-bottom: 48px;
}

.hauer-single-post__thumbnail {
  margin: 28px 0 32px;
  border-radius: 24px;
  overflow: hidden;
}

.hauer-single-post__thumbnail img {
  display: block;
  width: 100%;
  height: auto;
}

.hauer-single-post__content {
  font-size: 1.05rem;
  line-height: 1.85;
}

.hauer-single-post__content > *:first-child {
  margin-top: 0;
}

.hauer-single-post__content h2,
.hauer-single-post__content h3,
.hauer-single-post__content h4 {
  color: #fff;
  line-height: 1.25;
  margin-top: 2.1em;
}

.hauer-single-post__content img {
  max-width: 100%;
  height: auto;
  border-radius: 18px;
}

.hauer-single-post__content ul,
.hauer-single-post__content ol {
  padding-left: 24px;
}

.hauer-pagination {
  margin-top: 40px;
}

.hauer-pagination .nav-links {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.hauer-pagination .page-numbers {
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.hauer-pagination .page-numbers.current,
.hauer-pagination .page-numbers:hover {
  background: rgba(99, 102, 241, 0.22);
  color: #fff;
}

.hauer-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  color: #94a3b8;
  padding: 48px 0;
}

.hauer-native-footer {
  margin-top: 64px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #06060a;
}

.hauer-native-footer__inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #64748b;
  font-size: 14px;
}

.hauer-native-footer__links {
  display: flex;
  gap: 18px;
}

@media (max-width: 960px) {
  .hauer-post-grid {
    grid-template-columns: 1fr;
  }

  .hauer-native-header__inner,
  .hauer-native-footer__inner {
    flex-direction: column;
    justify-content: center;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .hauer-native-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 782px) {
  body.admin-bar .hauer-native-header {
    top: 46px;
  }
}
