/**
 * components/warranty/warranty.css — استایل‌های لوکس صفحه قوانین و شرایط گارانتی
 */

.warranty-page-section {
  padding: 40px 0 80px;
  background-color: #f8fafc;
  color: #1e293b;
  font-family: inherit;
}

/* Hero Card */
.warranty-hero-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 50px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  background-color: #0b1329;
  min-height: 380px;
  display: flex;
  align-items: center;
}

.warranty-hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.warranty-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: scale(1.05);
}

.warranty-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(11, 19, 41, 0.95) 0%, rgba(27, 38, 59, 0.7) 100%);
}

.warranty-hero-content {
  position: relative;
  z-index: 2;
  padding: 60px;
  max-width: 750px;
}

.warranty-badge-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(211, 157, 78, 0.15);
  color: #d39d4e;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(211, 157, 78, 0.3);
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
}

.warranty-hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.3;
}

.warranty-hero-desc {
  font-size: 1.15rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
}

/* Warranty Grid */
.warranty-grid-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 60px;
}

.warranty-info-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  border: 1px solid #e2e8f0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.warranty-info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.card-header-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(211, 157, 78, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #d39d4e;
  margin-bottom: 24px;
}

.warranty-info-card.lens-card .card-header-icon {
  background: rgba(43, 108, 176, 0.1);
  color: #2b6cb0;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.card-meta {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 20px;
  font-weight: 500;
}

.card-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: #475569;
  margin-bottom: 24px;
}

/* Rule Boxes */
.rule-box {
  padding: 20px;
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.rule-box.warning-box {
  background: #fffbeb;
  border-right: 4px solid #d97706;
  color: #78350f;
}

.rule-box.info-box {
  background: #ebf8ff;
  border-right: 4px solid #2b6cb0;
  color: #2b6cb0;
}

.rule-title {
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Card Lists */
.card-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.card-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: #334155;
  margin-bottom: 12px;
  font-weight: 500;
}

.card-list li i {
  color: #10b981;
}

/* Timeline Section */
.warranty-timeline-section {
  background: #ffffff;
  border-radius: 24px;
  padding: 50px 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  border: 1px solid #e2e8f0;
  margin-bottom: 60px;
}

.section-title-center {
  font-size: 1.8rem;
  font-weight: 800;
  color: #0f172a;
  text-align: center;
  margin-bottom: 40px;
}

.warranty-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  position: relative;
}

.warranty-timeline::before {
  content: '';
  position: absolute;
  top: 30px;
  right: 50px;
  left: 50px;
  height: 2px;
  background: #e2e8f0;
  z-index: 1;
}

.timeline-step {
  text-align: center;
  position: relative;
  z-index: 2;
}

.step-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #d39d4e;
  color: #d39d4e;
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 10px rgba(211, 157, 78, 0.15);
  transition: background 0.3s ease, color 0.3s ease;
}

.timeline-step:hover .step-number {
  background: #d39d4e;
  color: #ffffff;
}

.step-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #64748b;
  padding: 0 10px;
}

/* FAQ Section */
.warranty-faq-section {
  max-width: 900px;
  margin: 0 auto;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.faq-item {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item.active {
  border-color: #d39d4e;
  box-shadow: 0 10px 25px rgba(211, 157, 78, 0.08);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 22px 28px;
  text-align: right;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  outline: none;
}

.faq-question i {
  font-size: 0.95rem;
  color: #94a3b8;
  transition: transform 0.3s ease, color 0.3s ease;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
  color: #d39d4e;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
  padding: 0 28px;
}

.faq-item.active .faq-answer {
  max-height: 1000px; /* تخمین حداکثر ارتفاع */
  padding-bottom: 22px;
  transition: max-height 0.3s cubic-bezier(1, 0, 1, 0), padding 0.3s ease;
}

.faq-answer p {
  font-size: 0.98rem;
  line-height: 1.8;
  color: #475569;
  margin: 0;
  border-top: 1px solid #f1f5f9;
  padding-top: 18px;
}

/* Responsive */
@media (max-width: 992px) {
  .warranty-grid-info {
    grid-template-columns: 1fr;
  }
  .warranty-timeline {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .warranty-timeline::before {
    display: none;
  }
  .step-number {
    margin-bottom: 12px;
  }
}

@media (max-width: 768px) {
  .warranty-hero-content {
    padding: 30px;
  }
  .warranty-hero-title {
    font-size: 1.8rem;
  }
  .warranty-hero-desc {
    font-size: 1rem;
  }
  .warranty-info-card {
    padding: 25px;
  }
}
