/* components/eyewear-care-guide/eyewear-care-guide.css
 * استایل لوکس و مدرن صفحه راهنمای نگهداری و تنظیم عینک صداف
 */

.care-guide-section {
  padding: 40px 0 70px;
  background-color: #f8fafc;
  color: #1e293b;
  font-family: inherit;
}

.care-hero-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f766e 100%);
  border-radius: 24px;
  padding: 48px 40px;
  color: #ffffff;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
  margin-bottom: 35px;
  position: relative;
  overflow: hidden;
}

.care-hero-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 450px;
  max-width: 100%;
  height: 450px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.25) 0%, rgba(250, 204, 21, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.care-badge-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(250, 204, 21, 0.15);
  border: 1px solid rgba(250, 204, 21, 0.4);
  color: #fde047;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.care-hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
  color: #ffffff;
}

.care-hero-desc {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #cbd5e1;
  max-width: 850px;
  margin-bottom: 32px;
}

.care-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 25px;
}

.stat-item {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.12);
}

.stat-num {
  font-size: 2rem;
  font-weight: 900;
  color: #38bdf8;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.85rem;
  color: #e2e8f0;
}

/* Tabs Styling */
.care-tabs-wrapper {
  margin-bottom: 30px;
  position: sticky;
  top: 15px;
  z-index: 90;
}

.care-tabs {
  display: flex;
  gap: 12px;
  background: #ffffff;
  padding: 8px;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  overflow-x: auto;
  scrollbar-width: none;
}

.care-tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  flex: 1;
  min-width: 200px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border: none;
  background: transparent;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.tab-btn i {
  font-size: 1.1rem;
}

.tab-btn:hover {
  color: #0f766e;
  background: #f1f5f9;
}

.tab-btn.active {
  background: #0f766e;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(15, 118, 110, 0.3);
}

/* Tab Contents */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 36px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  border: 1px solid #e2e8f0;
}

.card-title-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 30px;
}

.header-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.green-icon { background: #dcfce7; color: #15803d; }
.amber-icon { background: #fef3c7; color: #b45309; }
.blue-icon  { background: #e0f2fe; color: #0369a1; }
.red-icon   { background: #ffe4e6; color: #be123c; }
.purple-icon{ background: #f3e8ff; color: #7e22ce; }
.gold-icon  { background: #fef9c3; color: #a16207; }
.teal-icon  { background: #ccfbf1; color: #0f766e; }

.card-title-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px 0;
}

.card-title-header .subtitle {
  font-size: 0.95rem;
  color: #64748b;
  margin: 0;
}

/* Steps Grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
  margin-bottom: 35px;
}

.step-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  position: relative;
  transition: all 0.3s ease;
}

.step-card:hover {
  transform: translateY(-5px);
  border-color: #0f766e;
  box-shadow: 0 10px 25px rgba(15, 118, 110, 0.08);
}

.step-badge {
  display: inline-block;
  background: #0f766e;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.step-icon {
  font-size: 2rem;
  color: #0d9488;
  margin-bottom: 12px;
}

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

.step-card p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #475569;
  margin: 0;
}

/* Do's and Don'ts */
.subsection-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dodont-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 768px) {
  .dodont-grid {
    grid-template-columns: 1fr;
  }
}

.dodont-box {
  border-radius: 16px;
  padding: 24px;
}

.dodont-box.dos {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.dodont-box.donts {
  background: #fff1f2;
  border: 1px solid #fecdd3;
}

.box-header {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dos .box-header { color: #166534; }
.donts .box-header { color: #9f1239; }

.dodont-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dodont-box li {
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.dos li { color: #14532d; }
.donts li { color: #881337; }

/* Adjustments Grid */
.adjust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 25px;
}

.adjust-card {
  background: #fffbebf5;
  border: 1px solid #fef3c7;
  border-radius: 16px;
  padding: 24px;
}

.adjust-icon {
  font-size: 1.8rem;
  color: #d97706;
  margin-bottom: 12px;
}

.adjust-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #78350f;
  margin-bottom: 10px;
}

.adjust-card p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #92400e;
  margin-bottom: 8px;
}

.rule-box {
  background: #f8fafc;
  border-right: 5px solid #0f766e;
  border-radius: 12px;
  padding: 20px 24px;
  color: #334155;

}

.rule-title {
  font-size: 1rem;
  font-weight: 800;
  color: #0f766e;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Info Blocks */
.info-blocks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.info-block {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 16px;
  padding: 24px;
}

.info-block h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0369a1;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-block p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #0c4a6e;
  margin: 0;
}

/* Warning Alert Box */
.warning-alert-box {
  background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
  border: 1px solid #fecdd3;
  border-right: 6px solid #e11d48;
  border-radius: 16px;
  padding: 28px;
  display: flex;
  gap: 20px;
}

.alert-icon {
  font-size: 2.5rem;
  color: #e11d48;
}

.alert-body h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #9f1239;
  margin-bottom: 10px;
}

.alert-body p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #881337;
  margin-bottom: 12px;
}

.alert-body ul {
  padding-right: 20px;
  margin: 0;
}

.alert-body li {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #881337;
  margin-bottom: 6px;
}

/* Interactive Checklist */
.checklist-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  align-items: center;
}

@media (max-width: 850px) {
  .checklist-grid {
    grid-template-columns: 1fr;
  }
}

.checklist-items {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 14px 20px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.check-item:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.check-item input[type="checkbox"] {
  display: none;
}

.custom-box {
  width: 24px;
  height: 24px;
  border: 2px solid #94a3b8;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.check-item input[type="checkbox"]:checked + .custom-box {
  background: #0f766e;
  border-color: #0f766e;
}

.check-item input[type="checkbox"]:checked + .custom-box::after {
  content: '✓';
  color: #ffffff;
  font-weight: bold;
  font-size: 14px;
}

.item-text {
  font-size: 0.95rem;
  color: #334155;
  font-weight: 500;
}

.score-display-box {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 20px;
  padding: 30px 20px;
  text-align: center;
  color: #ffffff;
}

.score-circle {
  font-size: 3rem;
  font-weight: 900;
  color: #38bdf8;
  line-height: 1;
  margin-bottom: 8px;
}

.score-status {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fde047;
  margin-bottom: 8px;
}

.score-desc {
  font-size: 0.85rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.5;
}

/* Accessories */
.accessories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.acc-item {
  background: #fefce8;
  border: 1px solid #fef08a;
  border-radius: 16px;
  padding: 22px;
  text-align: center;
  transition: transform 0.3s ease;
}

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

.acc-icon {
  font-size: 2.2rem;
  color: #ca8a04;
  margin-bottom: 12px;
}

.acc-item h3 {
  font-size: 1rem;
  font-weight: 800;
  color: #854d0e;
  margin-bottom: 8px;
}

.acc-item p {
  font-size: 0.85rem;
  color: #a16207;
  margin: 0;
  line-height: 1.6;
}

/* FAQ Accordion */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
}

.faq-toggle {
  width: 100%;
  padding: 18px 24px;
  background: #f8fafc;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  cursor: pointer;
  text-align: right;
  transition: background 0.2s ease;
}

.faq-toggle:hover {
  background: #f1f5f9;
}

.faq-toggle i {
  transition: transform 0.3s ease;
  color: #0f766e;
}

.faq-item.active .faq-toggle i {
  transform: rotate(180deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 24px;
  background: #ffffff;
}

.faq-item.active .faq-content {
  max-height: 200px;
  padding: 16px 24px 20px;
  border-top: 1px solid #f1f5f9;
}

.faq-content p {
  font-size: 0.92rem;
  line-height: 1.8;
  color: #475569;
  margin: 0;
}

/* CTA Banner */
.care-cta-banner {
  background: linear-gradient(135deg, #0f766e 0%, #115e59 100%);
  border-radius: 20px;
  padding: 40px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  box-shadow: 0 15px 35px rgba(15, 118, 110, 0.2);
}

@media (max-width: 800px) {
  .care-cta-banner {
    flex-direction: column;
    text-align: center;
  }
}

.cta-content h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.cta-content p {
  font-size: 1rem;
  color: #ccfbf1;
  margin: 0;
}

.cta-actions {
  display: flex;
  gap: 14px;
  flex-shrink: 0;
}

.btn-cta-gold {
  background: #facc15;
  color: #713f12;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn-cta-gold:hover {
  background: #eab308;
  transform: translateY(-2px);
  color: #713f12;
}

.btn-cta-outline {
  border: 2px solid #ffffff;
  color: #ffffff;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s ease;
}

.btn-cta-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}
