/*
Theme Name: داستان‌های پله (Pelle Storybooks)
Theme URI: https://amirhosseinfallah.ir/
Author: Amirhossein Fallah-امیرحسین فلاح
Author URI: https://amirhosseinfallah.ir
Description: پوسته اختصاصی کتاب داستان‌های شخصی‌سازی‌شده کودکان پله با طراحی ایرانی، فونت اختصاصی iransansdn، مجهز به فرم ۱۶ سوالی به صورت پاپ‌آپ و صفحه مجزا، و پنل مدیریت سفارشات در پیشخوان وردپرس
Version: V2.3
Text Domain: pelle-story
*/

@font-face {
  font-family: 'iransansdn';
  src: url('https://pellestory.ir/wp-content/uploads/2026/08/iransansdn.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: 'iransansdn', 'Vazirmatn', Tahoma, sans-serif;
  direction: rtl;
  text-align: right;
  background-color: #faf8f5;
  color: #2c302e;
  margin: 0;
  padding: 0;
  line-height: 1.7;
}

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

/* اجبار تمامی دکمه‌ها و فیلدها به استفاده از فونت استاندارد iransansdn */
button, input, select, textarea, .pelle-btn, .pelle-input, .pelle-step-tab {
  font-family: 'iransansdn', 'Vazirmatn', Tahoma, sans-serif !important;
}

.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Modal Popup Styling */
.pelle-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(18, 22, 19, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.pelle-modal-backdrop.active {
  display: flex !important;
}

.pelle-modal-box {
  background: #ffffff;
  width: 100%;
  max-width: 780px;
  max-height: 92vh;
  border-radius: 24px;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
  display: flex;
  flex-direction: column;
}

.pelle-modal-header {
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 25px;
  border-bottom: 1px solid #f0ebe1;
}

.pelle-modal-close {
  background: #f4f0e6;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4a5444;
  transition: all 0.2s;
}

.pelle-modal-close:hover {
  background: #e5decb;
  color: #222;
}

.pelle-modal-body {
  padding: 25px;
}

.pelle-input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid #d5cebf;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s;
  background: #fff;
}

.pelle-input:focus {
  outline: none;
  border-color: #788e5d;
  box-shadow: 0 0 0 3px rgba(120, 142, 93, 0.15);
}

.pelle-step-tab {
  flex: 1;
  text-align: center;
  padding: 10px 8px;
  font-size: 0.85rem;
  font-weight: bold;
  border-bottom: 3px solid #eee;
  color: #888;
  cursor: pointer;
}

.pelle-step-tab.active {
  border-color: #788e5d;
  color: #3b4d28;
}

.pelle-btn {
  background: #788e5d;
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 30px;
  font-size: 1.05rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'iransansdn', 'Vazirmatn', Tahoma, sans-serif !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pelle-btn:hover {
  background: #687d4f;
  transform: translateY(-1px);
}

/* استایل‌های واکنش‌گرا و گالری عکس فرم */
.pelle-photo-thumb {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #788e5d;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.pelle-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pelle-photo-del {
  position: absolute;
  top: 3px;
  right: 3px;
  background: #d32f2f;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* هدر و ناوبری */
.pelle-header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pelle-desktop-nav {
  display: flex;
  gap: 25px;
  font-weight: 500;
  font-size: 0.95rem;
}

.pelle-desktop-nav a {
  color: #444;
  text-decoration: none;
  transition: color 0.2s;
}

.pelle-desktop-nav a:hover {
  color: #788e5d;
}

.pelle-btn-header {
  background: #788e5d;
  color: #fff;
  padding: 10px 22px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: bold;
  display: inline-block;
  transition: all 0.2s;
}

.pelle-btn-header:hover {
  background: #687d4f;
  transform: translateY(-1px);
}

/* نوار دسترسی سریع پایین صفحه مخصوص موبایل (App-style Bottom Nav) */
.pelle-mobile-bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  body {
    padding-bottom: 75px !important;
  }

  .pelle-header-container {
    justify-content: center !important;
  }

  .pelle-header-brand {
    margin: 0 auto;
  }

  .pelle-desktop-nav,
  .pelle-header-cta {
    display: none !important;
  }

  .pelle-mobile-bottom-nav {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid #e8e2d4;
    padding: 6px 12px;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
    justify-content: space-around;
    align-items: center;
  }

  .pelle-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #65735e;
    font-size: 11px;
    font-weight: bold;
    flex: 1;
    text-align: center;
    transition: all 0.2s;
  }

  .pelle-bottom-nav-item span {
    margin-top: 3px;
  }

  .pelle-bottom-nav-item:active {
    transform: scale(0.95);
    color: #3b4d28;
  }

  .pelle-bottom-nav-cta {
    margin-top: -20px;
  }

  .pelle-bottom-cta-circle {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #687d4f, #788e5d);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(120, 142, 93, 0.4);
    border: 2px solid #faf8f5;
  }

  .pelle-modal-box {
    margin: 10px;
    max-height: 96vh;
    border-radius: 18px;
  }
  .pelle-modal-header {
    padding: 14px 16px;
  }
  .pelle-modal-body {
    padding: 16px;
  }
  .pelle-btn {
    padding: 12px 20px;
    font-size: 0.95rem;
  }
  .pelle-step-tab {
    font-size: 0.75rem;
    padding: 8px 4px;
  }
}

