/*
Theme Name: Zina Ways Fast SEO
Theme URI: https://zinaways.com/
Author: Ahmed Monir
Author URI: https://zinaways.com/
Description: قالب ووردبريس خفيف وفائق السرعة مخصص لموقع زينة واي (Zina Ways)، مصمم وفق أحدث معايير SEO، مع دعم كامل للغة العربية (RTL)، وبيانات منظمة Schema، وهوية بصرية أنثوية راقية.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zinaways
Domain Path: /languages
Tags: blog, beauty, fashion, rtl-language-support, custom-logo, custom-menu, featured-images, speed-optimized, seo-friendly
*/

:root {
  --zw-primary: #b85d6f;       /* وردي مخملي دافئ */
  --zw-primary-dark: #944454;  /* وردي داكن للتفاعل */
  --zw-secondary: #d4a373;     /* ذهبي رملي ناعم */
  --zw-bg-body: #fffcfb;       /* خلفية عاجية دافئة مريحة للعين */
  --zw-bg-soft: #fdf2f4;       /* خلفية وردية فاتحة للأقسام */
  --zw-surface: #ffffff;       /* خلفية البطاقات */
  --zw-text-main: #2b2426;     /* لون النصوص الأساسي (فحمي دافئ) */
  --zw-text-muted: #6e6063;    /* لون النصوص الفرعية */
  --zw-border: #f0e1e4;        /* لون الحدود الناعمة */
  --zw-radius: 16px;
  --zw-radius-sm: 10px;
  --zw-shadow: 0 10px 30px rgba(184, 93, 111, 0.06);
  --zw-font-main: 'Cairo', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --zw-container: 1200px;
}

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

html {
  direction: rtl;
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--zw-font-main);
  background-color: var(--zw-bg-body);
  color: var(--zw-text-main);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.zw-container {
  width: 100%;
  max-width: var(--zw-container);
  margin: 0 auto;
  padding: 0 20px;
}

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  right: 20px;
  background: var(--zw-primary);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  z-index: 9999;
}
.skip-link:focus {
  top: 20px;
}

/* Header & Navigation */
.zw-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--zw-border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.zw-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 20px;
}

.zw-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--zw-primary);
}

.zw-brand img {
  max-height: 48px;
  width: auto;
}

.zw-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 24px;
}

.zw-nav a {
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--zw-text-main);
  padding: 6px 2px;
  position: relative;
}

.zw-nav a:hover,
.zw-nav .current-menu-item > a {
  color: var(--zw-primary);
}

.zw-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--zw-primary);
  transition: width 0.25s ease;
}

.zw-nav a:hover::after,
.zw-nav .current-menu-item > a::after {
  width: 100%;
}

.zw-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.zw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 50px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
}

.zw-btn-primary {
  background: var(--zw-primary);
  color: #fff;
  box-shadow: 0 6px 18px rgba(184, 93, 111, 0.25);
}

.zw-btn-primary:hover {
  background: var(--zw-primary-dark);
  transform: translateY(-2px);
}

.zw-btn-outline {
  background: transparent;
  color: var(--zw-primary);
  border: 1.5px solid var(--zw-primary);
}

.zw-btn-outline:hover {
  background: var(--zw-bg-soft);
}

.zw-mobile-toggle {
  display: none;
  background: var(--zw-bg-soft);
  border: 1px solid var(--zw-border);
  color: var(--zw-primary);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 1.4rem;
  cursor: pointer;
}

/* Hero Section */
.zw-hero {
  background: linear-gradient(135deg, #fdf2f4 0%, #fff8f5 100%);
  padding: 64px 0;
  border-bottom: 1px solid var(--zw-border);
}

.zw-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;
}

.zw-badge {
  display: inline-block;
  background: #fff;
  color: var(--zw-primary);
  border: 1px solid var(--zw-border);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.zw-hero h1 {
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 800;
  line-height: 1.3;
  color: var(--zw-text-main);
  margin-bottom: 18px;
}

.zw-hero h1 span {
  color: var(--zw-primary);
}

.zw-hero p {
  font-size: 1.1rem;
  color: var(--zw-text-muted);
  margin-bottom: 28px;
  max-width: 600px;
}

.zw-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.zw-hero-card {
  background: var(--zw-surface);
  padding: 28px;
  border-radius: var(--zw-radius);
  border: 1px solid var(--zw-border);
  box-shadow: var(--zw-shadow);
}

.zw-pillar-list {
  display: grid;
  gap: 16px;
}

.zw-pillar-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px;
  background: var(--zw-bg-body);
  border-radius: var(--zw-radius-sm);
  border: 1px solid var(--zw-border);
}

.zw-pillar-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--zw-bg-soft);
  color: var(--zw-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
}

.zw-pillar-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.zw-pillar-item p {
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
}

/* Sections */
.zw-section {
  padding: 60px 0;
}

.zw-section-alt {
  background-color: var(--zw-bg-soft);
  border-top: 1px solid var(--zw-border);
  border-bottom: 1px solid var(--zw-border);
}

.zw-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
}

.zw-section-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--zw-text-main);
  position: relative;
  padding-bottom: 8px;
}

.zw-section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 56px;
  height: 3.5px;
  background: var(--zw-primary);
  border-radius: 4px;
}

.zw-view-all {
  font-weight: 700;
  color: var(--zw-primary);
  font-size: 0.95rem;
}

.zw-view-all:hover {
  text-decoration: underline;
}

/* Category Pills Grid */
.zw-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}

.zw-cat-card {
  background: var(--zw-surface);
  border: 1px solid var(--zw-border);
  border-radius: var(--zw-radius);
  padding: 22px 20px;
  text-align: center;
  box-shadow: var(--zw-shadow);
}

.zw-cat-card:hover {
  border-color: var(--zw-primary);
  transform: translateY(-4px);
}

.zw-cat-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--zw-text-main);
  margin-bottom: 6px;
}

.zw-cat-card span {
  font-size: 0.88rem;
  color: var(--zw-text-muted);
}

/* Posts Grid */
.zw-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.zw-post-card {
  background: var(--zw-surface);
  border: 1px solid var(--zw-border);
  border-radius: var(--zw-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--zw-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.zw-post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(184, 93, 111, 0.11);
}

.zw-post-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--zw-bg-soft);
  overflow: hidden;
}

.zw-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.zw-post-card:hover .zw-post-thumb img {
  transform: scale(1.04);
}

.zw-post-cat {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--zw-primary);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
}

.zw-post-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.zw-post-meta {
  font-size: 0.83rem;
  color: var(--zw-text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.zw-post-title {
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 10px;
  color: var(--zw-text-main);
}

.zw-post-title a:hover {
  color: var(--zw-primary);
}

.zw-post-excerpt {
  font-size: 0.93rem;
  color: var(--zw-text-muted);
  margin-bottom: 18px;
  flex: 1;
}

.zw-read-more {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--zw-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Newsletter Box */
.zw-newsletter {
  background: linear-gradient(135deg, var(--zw-primary) 0%, #8c3d4d 100%);
  color: #fff;
  border-radius: 24px;
  padding: 48px 36px;
  text-align: center;
  margin: 40px 0;
}

.zw-newsletter h2 {
  font-size: 1.9rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.zw-newsletter p {
  max-width: 580px;
  margin: 0 auto 24px;
  opacity: 0.92;
}

.zw-newsletter-form {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  gap: 10px;
}

.zw-newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border-radius: 50px;
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
}

.zw-newsletter-form button {
  background: var(--zw-text-main);
  color: #fff;
  padding: 14px 28px;
  border-radius: 50px;
  border: none;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
}

/* Single Post & Page */
.zw-article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  padding: 44px 0 70px;
}

.zw-article-main {
  background: var(--zw-surface);
  border: 1px solid var(--zw-border);
  border-radius: var(--zw-radius);
  padding: 36px;
  box-shadow: var(--zw-shadow);
}

.zw-breadcrumbs {
  font-size: 0.88rem;
  color: var(--zw-text-muted);
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.zw-article-header h1 {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 16px;
}

.zw-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--zw-text-muted);
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--zw-border);
}

.zw-featured-image {
  margin-bottom: 28px;
  border-radius: var(--zw-radius-sm);
  overflow: hidden;
}

.zw-entry-content {
  font-size: 1.08rem;
  line-height: 1.9;
  color: var(--zw-text-main);
}

.zw-entry-content h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--zw-primary-dark);
  margin: 32px 0 14px;
}

.zw-entry-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 24px 0 12px;
}

.zw-entry-content p {
  margin-bottom: 18px;
}

.zw-entry-content ul,
.zw-entry-content ol {
  margin: 0 24px 20px 0;
}

.zw-entry-content li {
  margin-bottom: 8px;
}

.zw-entry-content blockquote {
  background: var(--zw-bg-soft);
  border-right: 4px solid var(--zw-primary);
  padding: 18px 22px;
  border-radius: 10px;
  margin: 24px 0;
  font-weight: 600;
}

/* Sidebar */
.zw-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.zw-widget {
  background: var(--zw-surface);
  border: 1px solid var(--zw-border);
  border-radius: var(--zw-radius);
  padding: 24px;
  box-shadow: var(--zw-shadow);
}

.zw-widget-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--zw-border);
  color: var(--zw-primary);
}

/* Footer */
.zw-footer {
  background: #231c1e;
  color: #f3e9eb;
  padding: 60px 0 28px;
}

.zw-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.zw-footer-brand {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
  display: inline-block;
}

.zw-footer p {
  color: #cbbbc0;
  font-size: 0.95rem;
  max-width: 380px;
}

.zw-footer h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.zw-footer ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.zw-footer a {
  color: #cbbbc0;
  font-size: 0.94rem;
}

.zw-footer a:hover {
  color: #fff;
}

.zw-footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.88rem;
  color: #a8969b;
}

/* Pagination */
.zw-pagination {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.zw-pagination .page-numbers {
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--zw-surface);
  border: 1px solid var(--zw-border);
  font-weight: 700;
}

.zw-pagination .page-numbers.current,
.zw-pagination .page-numbers:hover {
  background: var(--zw-primary);
  color: #fff;
  border-color: var(--zw-primary);
}

/* Responsive */
@media (max-width: 992px) {
  .zw-hero-grid,
  .zw-article-layout,
  .zw-footer-grid {
    grid-template-columns: 1fr;
  }
  .zw-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .zw-mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .zw-nav {
    display: none;
    position: absolute;
    top: 76px;
    right: 0;
    left: 0;
    background: #fff;
    border-bottom: 1px solid var(--zw-border);
    padding: 20px;
    box-shadow: var(--zw-shadow);
  }
  .zw-nav.is-open {
    display: block;
  }
  .zw-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .zw-posts-grid {
    grid-template-columns: 1fr;
  }
  .zw-newsletter-form {
    flex-direction: column;
  }
  .zw-article-main {
    padding: 22px;
  }
}
