/*
Theme Name: Avantyar
Theme URI: https://avantyar.com
Author: Avantyar
Author URI: https://avantyar.com
Description: قالب بلاک وردپرس آوانتیار — یار پیشرو شما. طراحی تیره با accent زرد و پالت بنفش، بهینه برای وبلاگ محتوایی فارسی و AI Agent. کاملاً قابل ویرایش از داخل ویرایشگر سایت.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: avantyar
Tags: full-site-editing, block-patterns, rtl-language-support, blog, one-column, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments
*/

/* Block themes rely on theme.json for styles. Global custom tweaks: */

body {
  font-feature-settings: "ss01", "ss02";
  -webkit-font-smoothing: antialiased;
}

/* Category card */
.avantyar-category-card {
  background-color: var(--wp--preset--color--surface-1);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 18px;
  padding: 28px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.avantyar-category-card > * + * {
  margin-top: 12px;
}
.avantyar-category-card:hover {
  transform: translateY(-4px);
  border-color: var(--wp--preset--color--accent) !important;
}

/* Latest posts card */
.avantyar-post-card {
  background-color: var(--wp--preset--color--surface-2);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 16px;
  padding: 20px;
}

/* Archive post card */
.avantyar-archive-card {
  background-color: var(--wp--preset--color--surface-1);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 16px;
  padding: 20px;
}

/* Post content: tidy, justified RTL body text */
.wp-block-post-content {
  text-align: justify;
  text-align-last: right;
}
.wp-block-post-content p {
  text-align: justify;
  text-align-last: right;
  margin-bottom: 1.4em;
}
.wp-block-post-content h2,
.wp-block-post-content h3,
.wp-block-post-content h4 {
  text-align: right;
  margin-top: 1.6em;
  margin-bottom: 0.6em;
}
.wp-block-post-content ul,
.wp-block-post-content ol {
  text-align: right;
  padding-right: 1.4em;
  padding-left: 0;
}

/* Hero logo */
.avantyar-hero-logo img {
  filter: invert(1) brightness(1.15) contrast(1.05);
}

/* Buttons */
.wp-block-button.is-style-avantyar-primary .wp-block-button__link {
  background: var(--wp--preset--color--primary);
  color: #ffffff;
  border-radius: 999px;
  padding: 15px 30px;
  font-weight: 600;
  transition: background 0.25s ease, transform 0.25s ease;
}
.wp-block-button.is-style-avantyar-primary .wp-block-button__link:hover {
  background: var(--wp--preset--color--primary-hover);
  transform: translateY(-2px);
}
.wp-block-button.is-style-avantyar-ghost .wp-block-button__link {
  background: transparent;
  color: var(--wp--preset--color--heading);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 999px;
  padding: 15px 30px;
  font-weight: 600;
}

/* Logo invert for dark bg */
.site-logo img,
.wp-block-site-logo img {
  filter: invert(1) brightness(1.15) contrast(1.05);
}

/* Nav underline accent */
.wp-block-navigation .wp-block-navigation-item__content:hover,
.wp-block-navigation .current-menu-item > .wp-block-navigation-item__content {
  color: var(--wp--preset--color--heading);
}
