/* ============================================
   رز دولوپ - استایل اختصاصی صفحه نمونه‌کارها
   ============================================ */

/* ===========================================
   1. PAGE HERO
   =========================================== */
.page-hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 40px;
  position: relative;
}

.hero-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.3;
  pointer-events: none;
}

.hero-glow-blue {
  background: rgba(37, 99, 235, 0.4);
  top: -150px;
  right: -100px;
}

.hero-glow-purple {
  background: rgba(139, 92, 246, 0.3);
  bottom: -100px;
  left: -100px;
}

.page-hero-content {
  max-width: 700px;
  margin-inline: auto;
}

.page-hero-title {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 1rem;
  margin-top: 1rem;
}

.page-hero-subtitle {
  font-size: var(--font-size-md);
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 2rem;
}

/* ===========================================
   2. FILTER SECTION
   =========================================== */
.filter-section {
  padding-bottom: 2rem;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.filter-btn {
  padding: 0.6rem 1.25rem;
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.filter-btn:hover {
  color: var(--text-primary);
  border-color: var(--text-primary);
}

.filter-btn.active {
  color: #fff;
  background: var(--gradient-blue);
  border-color: var(--color-blue);
  box-shadow: var(--shadow-blue);
}

/* ===========================================
   3. PORTFOLIO GRID
   =========================================== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.portfolio-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: all 0.4s ease;
}

.portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-color-light);
}

.portfolio-card.hidden {
  display: none;
}

.portfolio-image {
  position: relative;
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.portfolio-placeholder {
  opacity: 0.8;
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-link {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 2;
}

.portfolio-card:hover .portfolio-link {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-link:hover {
  background: rgba(255, 255, 255, 0.2);
}

.portfolio-info {
  padding: 1.25rem;
}

.portfolio-title {
  font-size: var(--font-size-md);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0.75rem 0 0.5rem;
}

.portfolio-desc {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* ===========================================
   4. GUIDE SECTION
   =========================================== */
.guide-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.guide-step {
  flex: 1;
  min-width: 220px;
  max-width: 280px;
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

.guide-step-number {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  background: var(--gradient-blue);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-lg);
  font-weight: 800;
  color: #fff;
}

.guide-step-number-success {
  background: var(--gradient-green);
}

.guide-step-title {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.guide-step-text {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* فلش‌های بین مراحل - مثل digital-menu.php */
.guide-arrow {
  display: flex;
  align-items: center;
  padding-top: 3rem;
}

/* ===========================================
   5. SELECTION BAR
   =========================================== */
.selection-bar {
  position: fixed;
  bottom: 0;
  right: 0;
  left: 0;
  background: rgba(22, 22, 31, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-color);
  padding: 1rem 0;
  z-index: 950;
  transform: translateY(100%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.selection-bar.visible {
  transform: translateY(0);
  opacity: 1;
}

.selection-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.selection-bar-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.selection-count-badge {
  width: 36px;
  height: 36px;
  background: var(--gradient-cta);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-base);
  font-weight: 800;
  color: #000;
}

.selection-bar-text {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--text-primary);
}

.selection-bar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.clear-selection-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* دکمه انتخاب - وقتی انتخاب شده */
.select-style-btn.selected {
  background: var(--color-green) !important;
  color: #fff !important;
}

.select-style-btn.selected::before {
  content: '✓ ';
}

/* ===========================================
   6. CTA SECTION
   =========================================== */
.cta-section {
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-primary) 100%);
}

.cta-box {
  padding: 4rem;
  text-align: center;
  border: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--gradient-border);
}

.cta-title {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.cta-text {
  font-size: var(--font-size-md);
  color: var(--text-secondary);
  max-width: 550px;
  margin-inline: auto;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.cta-buttons {
  flex-wrap: wrap;
}

/* ===========================================
   7. RESPONSIVE - TABLET
   =========================================== */
@media (max-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .guide-arrow {
    display: none;
  }
  
  .guide-steps {
    flex-direction: column;
    align-items: center;
  }
  
  .guide-step {
    max-width: 100%;
    width: 100%;
  }
}

/* ===========================================
   8. RESPONSIVE - MOBILE
   =========================================== */
@media (max-width: 768px) {
  .page-hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 20px);
  }
  
  .page-hero-title {
    font-size: var(--font-size-2xl);
  }
  
  .cta-box {
    padding: 2.5rem 1.5rem;
  }
  
  .cta-title {
    font-size: var(--font-size-xl);
  }
  
  .selection-bar-inner {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  
  .selection-bar-actions {
    width: 100%;
    justify-content: center;
  }
}

/* ===========================================
   9. RESPONSIVE - SMALL MOBILE
   =========================================== */
@media (max-width: 640px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  
  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: var(--font-size-xs);
  }
}