/*
Theme Name: AnatoliaCore Blog
Theme URI: https://blog.anatoliacore.com
Author: AnatoliaCore
Author URI: https://anatoliacore.com
Description: Minimal corporate block theme for AnatoliaCore technology publishing.
Requires at least: 6.6
Requires PHP: 7.4
Version: 1.0.2
Tested up to: 6.9.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: anatoliacore-blog
Tags: blog, news, full-site-editing, block-patterns, custom-colors, custom-logo, threaded-comments, translation-ready
*/

:root {
  --ac-radius-sm: 8px;
  --ac-radius-md: 14px;
  --ac-radius-lg: 22px;
  --ac-shadow-soft: 0 10px 35px rgba(10, 25, 47, 0.08);
  --ac-shadow-card: 0 6px 22px rgba(15, 39, 71, 0.09);
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
}

.site,
.wp-site-blocks {
  min-height: 100vh;
}

.wp-site-blocks {
  background:
    radial-gradient(circle at 95% -5%, rgba(29, 159, 179, 0.08), transparent 44%),
    radial-gradient(circle at 2% 12%, rgba(15, 39, 71, 0.09), transparent 34%),
    var(--wp--preset--color--base);
}

.wp-block-group.ac-header-wrap {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--muted) 65%, transparent);
}

body.admin-bar .wp-block-group.ac-header-wrap {
  top: 32px;
}

.ac-header-wrap.has-white-background-color {
  background: rgba(255, 255, 255, 0.96) !important;
}

.ac-site-brand {
  gap: 0.65rem;
}

.ac-site-brand .wp-block-site-logo img {
  border-radius: 12px;
  box-shadow: var(--ac-shadow-soft);
}

.ac-site-brand .wp-block-site-title {
  letter-spacing: 0.01em;
}

.ac-header-wrap .wp-block-site-title a {
  color: var(--wp--preset--color--primary) !important;
  font-weight: 700;
}

.ac-header-wrap .wp-block-site-tagline {
  color: var(--wp--preset--color--subtle) !important;
}

.ac-top-actions {
  gap: 0.75rem;
}

.ac-main-nav .wp-block-navigation-item__content {
  padding: 0.45rem 0.4rem;
  border-radius: var(--ac-radius-sm);
  color: var(--wp--preset--color--contrast);
}

.ac-main-nav .wp-block-navigation-item__content:hover {
  color: var(--wp--preset--color--secondary);
}

.ac-theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--wp--preset--color--muted);
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  font: inherit;
  line-height: 1;
  background: var(--wp--preset--color--white);
  color: var(--wp--preset--color--contrast);
  cursor: pointer;
  transition: all 180ms ease;
}

.ac-theme-toggle:hover {
  border-color: var(--wp--preset--color--secondary);
  box-shadow: var(--ac-shadow-soft);
}

.ac-theme-toggle:focus-visible {
  outline: 2px solid var(--wp--preset--color--secondary);
  outline-offset: 2px;
}

.ac-theme-toggle__dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: linear-gradient(145deg, #1d9fb3, #0f2747);
}

.ac-theme-toggle__text {
  font-size: 0.79rem;
  font-weight: 600;
}

.ac-hero {
  border: 1px solid color-mix(in srgb, var(--wp--preset--color--muted) 72%, transparent);
  border-radius: var(--ac-radius-lg);
  overflow: hidden;
  box-shadow: var(--ac-shadow-soft);
}

.ac-hero .ac-kicker {
  display: inline-flex;
  padding: 0.3rem 0.62rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--wp--preset--color--secondary) 30%, transparent);
  background: color-mix(in srgb, var(--wp--preset--color--secondary) 12%, transparent);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
  color: color-mix(in srgb, var(--wp--preset--color--primary) 85%, #000);
}

.ac-hero p {
  color: var(--wp--preset--color--text);
}

.ac-surface {
  border: 1px solid color-mix(in srgb, var(--wp--preset--color--muted) 72%, transparent);
  border-radius: var(--ac-radius-md);
  box-shadow: var(--ac-shadow-card);
  background: var(--wp--preset--color--white);
}

.ac-surface .wp-block-heading,
.ac-section-title {
  color: var(--wp--preset--color--contrast);
}

.ac-section-title {
  position: relative;
  display: inline-block;
}

.ac-section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.38rem;
  width: 2.4rem;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--wp--preset--color--secondary), transparent);
}

.ac-card-list .wp-block-post {
  border: 1px solid color-mix(in srgb, var(--wp--preset--color--muted) 70%, transparent);
  border-radius: var(--ac-radius-md);
  background: var(--wp--preset--color--white);
  box-shadow: var(--ac-shadow-card);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.ac-card-list .wp-block-post:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(15, 39, 71, 0.14);
}

.ac-card-list .wp-block-post-featured-image img {
  border-radius: var(--ac-radius-md) var(--ac-radius-md) 0 0;
}

.ac-sidebar-wrap .wp-block-group,
.ac-sidebar-wrap .wp-block-search,
.ac-sidebar-wrap .wp-block-latest-posts,
.ac-sidebar-wrap .wp-block-categories,
.ac-sidebar-wrap .wp-block-tag-cloud {
  border: 1px solid color-mix(in srgb, var(--wp--preset--color--muted) 70%, transparent);
  border-radius: var(--ac-radius-md);
  background: var(--wp--preset--color--white);
  box-shadow: var(--ac-shadow-card);
}

.ac-empty-state-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.ac-empty-state-card {
  border-radius: var(--ac-radius-md);
  border: 1px dashed color-mix(in srgb, var(--wp--preset--color--secondary) 35%, transparent);
  padding: 1rem;
  background: color-mix(in srgb, var(--wp--preset--color--secondary) 8%, transparent);
}

.ac-newsletter-placeholder {
  border: 1px dashed color-mix(in srgb, var(--wp--preset--color--secondary) 45%, transparent);
  border-radius: var(--ac-radius-md);
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--wp--preset--color--secondary) 14%, transparent),
    color-mix(in srgb, var(--wp--preset--color--primary) 9%, transparent)
  );
}

.ac-footer {
  border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--muted) 70%, transparent);
}

.ac-reveal {
  animation: acRevealUp 420ms ease both;
}

@keyframes acRevealUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

html.ac-dark .wp-site-blocks {
  background:
    radial-gradient(circle at 95% -5%, rgba(42, 180, 198, 0.14), transparent 40%),
    radial-gradient(circle at 2% 8%, rgba(26, 47, 78, 0.28), transparent 34%),
    #0c1423;
}

html.ac-dark body,
html.ac-dark .wp-site-blocks {
  color: #d2dae6;
}

html.ac-dark .wp-block-group.ac-header-wrap {
  border-bottom-color: rgba(109, 124, 152, 0.3);
  background: #101b2f !important;
}

html.ac-dark .ac-section-title {
  color: #f1f6ff;
}

html.ac-dark .ac-surface,
html.ac-dark .ac-sidebar-wrap .wp-block-group,
html.ac-dark .ac-sidebar-wrap .wp-block-search,
html.ac-dark .ac-sidebar-wrap .wp-block-latest-posts,
html.ac-dark .ac-sidebar-wrap .wp-block-categories,
html.ac-dark .ac-sidebar-wrap .wp-block-tag-cloud,
html.ac-dark .ac-card-list .wp-block-post,
html.ac-dark .ac-theme-toggle,
html.ac-dark .ac-newsletter-placeholder {
  background: #121d31;
  border-color: rgba(109, 124, 152, 0.34);
  color: #d2dae6;
}

html.ac-dark .ac-theme-toggle__dot {
  background: linear-gradient(145deg, #62d3e3, #2f5f94);
}

html.ac-dark a,
html.ac-dark .wp-block-site-title a,
html.ac-dark .wp-block-navigation-item__content {
  color: #e6edf8;
}

html.ac-dark .ac-header-wrap .wp-block-site-title a {
  color: #e6edf8 !important;
}

html.ac-dark .ac-header-wrap .has-contrast-color,
html.ac-dark .ac-header-wrap .has-contrast-color a,
html.ac-dark .ac-header-wrap .wp-block-navigation-item__content {
  color: #dbe7fb !important;
}

html.ac-dark .wp-block-site-tagline {
  color: #b7c3d9 !important;
}

html.ac-dark .ac-hero .wp-block-heading,
html.ac-dark .ac-hero h1,
html.ac-dark .ac-hero h2,
html.ac-dark .ac-hero h3,
html.ac-dark .ac-hero h4,
html.ac-dark .ac-hero h5,
html.ac-dark .ac-hero h6 {
  color: #0f2747 !important;
}

html.ac-dark .ac-surface .wp-block-heading,
html.ac-dark .ac-surface h1,
html.ac-dark .ac-surface h2,
html.ac-dark .ac-surface h3,
html.ac-dark .ac-surface h4,
html.ac-dark .ac-surface h5,
html.ac-dark .ac-surface h6,
html.ac-dark .ac-newsletter-placeholder .wp-block-heading {
  color: #f1f6ff !important;
}

html.ac-dark .ac-surface p,
html.ac-dark .ac-surface li,
html.ac-dark .ac-newsletter-placeholder p {
  color: #d2dae6;
}

html.ac-dark .wp-element-button,
html.ac-dark .wp-block-button__link {
  border-color: rgba(109, 124, 152, 0.34);
}

@media (max-width: 980px) {
  .ac-main-nav {
    width: 100%;
  }

  .ac-empty-state-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .ac-empty-state-grid {
    grid-template-columns: 1fr;
  }

  .ac-theme-toggle {
    padding: 0.32rem 0.54rem;
  }

  .ac-theme-toggle__text {
    font-size: 0.74rem;
  }
}

@media (max-width: 782px) {
  body.admin-bar .wp-block-group.ac-header-wrap {
    top: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ac-reveal {
    animation: none;
  }
}
