/*
Theme Name: Saloyar - Salon Management
Theme URI: https://saloyar.com
Author: Saloyar Team
Author URI: https://saloyar.com
Description: A modern RTL WordPress theme for salon management applications with shadcn UI design system and TailwindCSS
Version: 1.3.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: saloyar
Tags: rtl, salon, management, tailwindcss, modern, responsive

This theme is designed for salon management web applications with full RTL support.
*/

/* Peyda font is enqueued via functions.php */

/* CSS Variables - Tailwind indigo primary, fuchsia accent, neutral palette */
:root {
  --background: 0 0% 100%;
  --foreground: 0 0% 9%;
  --card: 0 0% 100%;
  --card-foreground: 0 0% 9%;
  --popover: 0 0% 100%;
  --popover-foreground: 0 0% 9%;
  --primary: 239 84% 67%;
  --primary-foreground: 0 0% 100%;
  --secondary: 0 0% 96.1%;
  --secondary-foreground: 0 0% 9%;
  --muted: 0 0% 96.1%;
  --muted-foreground: 0 0% 45.1%;
  --accent: 292 84% 61%;
  --accent-foreground: 0 0% 100%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 0 0% 98%;
  --border: 0 0% 89.8%;
  --input: 0 0% 89.8%;
  --ring: 239 84% 67%;
  --radius: 0.75rem;
}

.dark {
  --background: 0 0% 3.9%;
  --foreground: 0 0% 98%;
  --card: 0 0% 3.9%;
  --card-foreground: 0 0% 98%;
  --popover: 0 0% 3.9%;
  --popover-foreground: 0 0% 98%;
  --primary: 239 84% 75%;
  --primary-foreground: 0 0% 4%;
  --secondary: 0 0% 14.9%;
  --secondary-foreground: 0 0% 98%;
  --muted: 0 0% 14.9%;
  --muted-foreground: 0 0% 63.9%;
  --accent: 292 84% 70%;
  --accent-foreground: 0 0% 4%;
  --destructive: 0 62.8% 30.6%;
  --destructive-foreground: 0 0% 98%;
  --border: 0 0% 14.9%;
  --input: 0 0% 14.9%;
  --ring: 239 84% 75%;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  direction: rtl;
  scroll-behavior: smooth;
}

body {
  font-family: "PeydaFaNumWeb", sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Tailwind Base Styles */
@tailwind base;
@tailwind components;
@tailwind utilities;

/* Custom Utility Classes */
.text-balance {
  text-wrap: balance;
}

/* Button Styles - shadcn inspired */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  padding: 0.625rem 1.25rem;
  cursor: pointer;
  border: none;
  outline: none;
}

.btn:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

.btn-primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.btn-primary:hover {
  background-color: hsl(239 84% 59%);
}

.btn-secondary {
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

.btn-secondary:hover {
  background-color: hsl(0 0% 90%);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
}

.btn-outline:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.btn-ghost {
  background-color: transparent;
  color: hsl(var(--foreground));
}

.btn-ghost:hover {
  background-color: hsl(var(--accent) / 0.1);
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
}

/* Card Styles */
.card {
  background-color: hsl(var(--card));
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
}

.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
}

/* Badge Styles */
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  transition: colors 0.2s;
}

.badge-primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.badge-secondary {
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

.badge-outline {
  background-color: transparent;
  border: 1px solid hsl(var(--border));
}

/* Input Styles */
.input {
  display: flex;
  height: 2.5rem;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--input));
  background-color: hsl(var(--background));
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.input:focus {
  outline: none;
  border-color: hsl(var(--ring));
}

/* Avatar Styles */
.avatar {
  position: relative;
  display: flex;
  height: 2.5rem;
  width: 2.5rem;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 9999px;
}

.avatar img {
  aspect-ratio: 1;
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.avatar-lg {
  height: 4rem;
  width: 4rem;
}

/* Star Rating */
.star-rating {
  display: flex;
  gap: 0.125rem;
  flex-direction: row-reverse;
}

.star {
  width: 1.25rem;
  height: 1.25rem;
  fill: hsl(var(--accent));
  color: hsl(var(--accent));
}

.star-empty {
  fill: hsl(var(--muted));
  color: hsl(var(--muted));
}

/* Navigation */
.nav-link {
  position: relative;
  padding: 0.5rem 1rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  transition: color 0.2s;
}

.nav-link:hover {
  color: hsl(var(--primary));
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background-color: hsl(var(--primary));
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Section Styles */
.section {
  padding: 5rem 0;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: hsl(var(--foreground));
}

.section-subtitle {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  max-width: 42rem;
}

/* Container */
.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: 1rem;
  padding-left: 1rem;
}

@media (min-width: 640px) {
  .container {
    max-width: 640px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }
}

/* Gradient Backgrounds */
.gradient-primary {
  background: linear-gradient(
    135deg,
    hsl(var(--primary)) 0%,
    hsl(var(--accent)) 100%
  );
}

.gradient-hero {
  background: linear-gradient(
    135deg,
    hsl(239 84% 97%) 0%,
    hsl(292 84% 97%) 100%
  );
}

.gradient-text {
  background: linear-gradient(
    135deg,
    hsl(var(--primary)) 0%,
    hsl(var(--accent)) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glass Effect */
.glass {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes pulse-soft {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-pulse-soft {
  animation: pulse-soft 3s ease-in-out infinite;
}

.delay-100 {
  animation-delay: 100ms;
}

.delay-200 {
  animation-delay: 200ms;
}

.delay-300 {
  animation-delay: 300ms;
}

.delay-400 {
  animation-delay: 400ms;
}

/* Responsive Typography */
@media (max-width: 768px) {
  .section-title {
    font-size: 1.75rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .section {
    padding: 3rem 0;
  }
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background-color: hsl(var(--background));
  border-left: 1px solid hsl(var(--border));
  transition: right 0.3s ease;
  z-index: 1000;
  padding: 2rem;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Pricing Card Styles */
.pricing-card {
  position: relative;
  overflow: hidden;
}

.pricing-card.popular::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    hsl(var(--primary)) 0%,
    hsl(var(--accent)) 100%
  );
}

/* Feature Icon Container */
.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
}

/* Testimonial Card */
.testimonial-card {
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 4rem;
  line-height: 1;
  color: hsl(var(--accent) / 0.15);
  font-family: serif;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-indicator span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid hsl(var(--primary));
  border-radius: 12px;
  position: relative;
}

.scroll-indicator span::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background-color: hsl(var(--primary));
  border-radius: 2px;
  animation: scroll-down 2s infinite;
}

@keyframes scroll-down {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
  }
}

/* Social Icons */
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  transform: translateY(-2px);
}

/* Decorative Elements */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  z-index: -1;
}

.blob-primary {
  background-color: hsl(var(--primary) / 0.3);
}

.blob-secondary {
  background-color: hsl(var(--accent) / 0.3);
}

.blob-accent {
  background-color: hsl(var(--primary) / 0.2);
}

/* =============================================================================
   BLOG STYLES - SEO Optimized
   ============================================================================= */

/* Breadcrumbs Navigation */
.breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
}

.breadcrumbs a {
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumbs a:hover {
  color: hsl(var(--primary));
}

/* Pagination Styles */
.page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.page-numbers li {
  display: inline-flex;
}

.page-numbers a,
.page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
}

.page-numbers a:hover {
  background-color: hsl(var(--secondary));
  border-color: hsl(var(--primary));
}

.page-numbers .current {
  background-color: hsl(var(--primary));
  border-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.page-numbers .dots {
  border: none;
  background: transparent;
}

.page-numbers .prev,
.page-numbers .next {
  background-color: hsl(var(--secondary));
}

.page-numbers .prev:hover,
.page-numbers .next:hover {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

/* Prose / Article Content Styles */
.prose {
  color: hsl(var(--foreground));
  line-height: 1.8;
}

.prose h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: hsl(var(--foreground));
  border-bottom: 2px solid hsl(var(--border));
  padding-bottom: 0.5rem;
}

.prose h3 {
  font-size: 1.375rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: hsl(var(--foreground));
}

.prose h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: hsl(var(--foreground));
}

.prose p {
  margin-bottom: 1.25rem;
}

.prose a {
  color: hsl(var(--primary));
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.prose a:hover {
  color: hsl(239 84% 59%);
}

.prose strong {
  font-weight: 600;
  color: hsl(var(--foreground));
}

.prose ul,
.prose ol {
  margin-bottom: 1.25rem;
  padding-right: 1.5rem;
}

.prose ul {
  list-style-type: disc;
}

.prose ol {
  list-style-type: decimal;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose li::marker {
  color: hsl(var(--primary));
}

.prose blockquote {
  border-right: 4px solid hsl(var(--primary));
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background-color: hsl(var(--secondary));
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: hsl(var(--muted-foreground));
}

.prose code {
  background-color: hsl(var(--secondary));
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-family: "Courier New", monospace;
  direction: ltr;
}

.prose pre {
  background-color: hsl(0 0% 9%);
  color: hsl(0 0% 95%);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 1.5rem 0;
  direction: ltr;
  text-align: left;
}

.prose pre code {
  background-color: transparent;
  padding: 0;
  font-size: 0.875rem;
  color: inherit;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

.prose figure {
  margin: 1.5rem 0;
}

.prose figcaption {
  text-align: center;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.5rem;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.875rem;
}

.prose th,
.prose td {
  border: 1px solid hsl(var(--border));
  padding: 0.75rem 1rem;
  text-align: right;
}

.prose th {
  background-color: hsl(var(--secondary));
  font-weight: 600;
}

.prose tr:nth-child(even) {
  background-color: hsl(var(--secondary) / 0.5);
}

.prose hr {
  border: none;
  border-top: 1px solid hsl(var(--border));
  margin: 2rem 0;
}

/* Line Clamp Utilities */
.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Table of Contents Styles */
#table-of-contents ol,
#sidebar-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

#table-of-contents ol li,
#sidebar-toc-list a {
  padding: 0.375rem 0;
  border-bottom: 1px solid hsl(var(--border) / 0.5);
}

#table-of-contents ol li:last-child,
#sidebar-toc-list a:last-child {
  border-bottom: none;
}

#sidebar-toc-list a {
  display: block;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  transition: color 0.2s ease;
}

#sidebar-toc-list a:hover {
  color: hsl(var(--primary));
}

#sidebar-toc-list a.active {
  color: hsl(var(--primary));
  font-weight: 500;
}

/* Article Content Enhancements */
.article-content h2,
.article-content h3,
.article-content h4 {
  scroll-margin-top: 6rem;
}

/* Docs Sidebar - consistent layout across docs pages */
@media (min-width: 1024px) {
  .docs-sidebar {
    position: sticky;
    top: 6rem;
    align-self: flex-start;
  }
}

/* Blog Card Aspect Ratio */
.aspect-video {
  aspect-ratio: 16 / 9;
}

.aspect-square {
  aspect-ratio: 1 / 1;
}

/* Widget Styles */
.widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget li {
  padding: 0.5rem 0;
  border-bottom: 1px solid hsl(var(--border) / 0.5);
}

.widget li:last-child {
  border-bottom: none;
}

.widget a {
  color: hsl(var(--foreground));
  text-decoration: none;
  transition: color 0.2s ease;
}

.widget a:hover {
  color: hsl(var(--primary));
}

/* Comments Section Styles */
.comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.comment {
  padding: 1.5rem;
  margin-bottom: 1rem;
  background-color: hsl(var(--secondary) / 0.3);
  border-radius: var(--radius);
}

.comment .comment {
  margin-right: 2rem;
  margin-top: 1rem;
}

.comment-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.comment-author img {
  border-radius: 9999px;
}

.comment-author .fn {
  font-weight: 600;
}

.comment-meta {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

.comment-content p {
  margin: 0;
  color: hsl(var(--foreground));
}

.comment-reply-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: hsl(var(--primary));
  text-decoration: none;
}

.comment-reply-link:hover {
  text-decoration: underline;
}

/* Comment Form */
.comment-respond {
  margin-top: 2rem;
}

.comment-respond .comment-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comment-respond label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background-color: hsl(var(--background));
  font-family: inherit;
  font-size: 0.875rem;
  transition: border-color 0.2s ease;
}

.comment-respond input:focus,
.comment-respond textarea:focus {
  outline: none;
  border-color: hsl(var(--primary));
}

.comment-respond textarea {
  min-height: 150px;
  resize: vertical;
}

.comment-respond .submit {
  align-self: flex-start;
}

/* Focus States for Accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid hsl(var(--primary));
  outline-offset: 2px;
}

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  padding: 0.5rem 1rem;
  z-index: 9999;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

/* Header Scroll State */
#main-header {
  background-color: transparent;
}

#main-header.scrolled {
  background-color: hsl(var(--background) / 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid hsl(var(--border));
}

/* Print Styles */
@media print {
  .no-print,
  header,
  footer,
  aside,
  nav,
  .btn {
    display: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
  }

  .prose a {
    text-decoration: none;
    color: inherit;
  }

  .prose a::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }
}
