/* ==========================================================================
   components/photochromic-lenses/photochromic-lenses.css
   ========================================================================== */

:root {
  --ph-primary: #4B5563;
  --ph-primary-dark: #1F2937;
  --ph-accent: #F59E0B;
  --ph-dark: #0F172A;
  --ph-light: #F3F4F6;
  --ph-gray-light: #F8FAFC;
  --ph-gray-border: #E2E8F0;
  --ph-glow: rgba(75, 85, 99, 0.15);
}

.ph-lenses-page {
  background-color: var(--bg-body);
  color: var(--text-main);
  font-family: 'Vazirmatn', sans-serif;
  line-height: 1.8;
  padding-bottom: 60px;
  overflow-x: hidden;
}

/* 1. Hero Banner */
.ph-hero-banner {
  position: relative;
  background-color: var(--ph-dark);
  background-image: radial-gradient(circle at 10% 20%, rgb(15, 23, 42) 0%, rgb(2, 6, 23) 90%);
  color: var(--text-white);
  padding: 80px 0 95px;
  border-bottom: 5px solid var(--ph-primary);
  overflow: hidden;
  margin-bottom: 40px;
}

.ph-hero-glow-1 {
  position: absolute;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(75, 85, 99, 0.18) 0%, transparent 70%);
  top: -150px;
  right: -50px;
  filter: blur(50px);
  z-index: 1;
  pointer-events: none;
}

.ph-hero-glow-2 {
  position: absolute;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.1) 0%, transparent 70%);
  bottom: -150px;
  left: -50px;
  filter: blur(50px);
  z-index: 1;
  pointer-events: none;
}

.ph-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.ph-hero-content {
  text-align: right;
}

.ph-hero-badge-top {
  display: inline-block;
  margin-bottom: 20px;
}

.ph-hero-badge-top .ph-tagline {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  color: #cbd5e1;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
}

.ph-hero-title {
  font-size: 2.2rem;
  font-weight: 850;
  line-height: 1.4;
  margin-bottom: 20px;
  color: #ffffff;
}

.ph-text-highlight {
  color: var(--ph-primary);
  background: linear-gradient(120deg, #9CA3AF 0%, #F59E0B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ph-hero-desc {
  font-size: 1.05rem;
  color: #94a3b8;
  margin-bottom: 35px;
  max-width: 800px;
}

.ph-hero-cta-group {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.btn-hero-primary {
  background: linear-gradient(135deg, var(--ph-primary) 0%, var(--ph-primary-dark) 100%);
  color: #ffffff !important;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(75, 85, 99, 0.3);
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(75, 85, 99, 0.4);
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff !important;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.ph-hero-badges-wrapper {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.hero-badge-pill {
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 12px;
  border-radius: 8px;
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ph-hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.ph-brand-display-card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 30px;
  width: 100%;
  max-width: 380px;
  text-align: center;
  z-index: 2;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.ph-brand-logo-large img {
  max-width: 200px;
  height: auto;
  border-radius: 15px;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.9);
  padding: 10px;
}

.ph-brand-title-box {
  margin-bottom: 20px;
}

.brand-text-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  display: block;
}

.brand-subtext {
  font-size: 0.8rem;
  color: var(--ph-primary);
  font-weight: 700;
  margin-top: 5px;
}

.brand-card-specs {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.spec-label {
  color: #94a3b8;
}

.spec-val {
  color: #ffffff;
  font-weight: 600;
}

/* 2. Highlights */
.ph-intro-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: -40px;
  position: relative;
  z-index: 10;
  margin-bottom: 60px;
}

.highlight-card {
  background: #ffffff;
  border: 1px solid var(--ph-gray-border);
  border-radius: 15px;
  padding: 30px 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  text-align: right;
  transition: all 0.3s ease;
}

.highlight-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(75, 85, 99, 0.08);
  border-color: var(--ph-primary);
}

.highlight-icon {
  width: 50px;
  height: 50px;
  background-color: var(--ph-light);
  color: var(--ph-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.highlight-card h3 {
  font-size: 1.15rem;
  font-weight: 750;
  margin-bottom: 12px;
  color: var(--ph-dark);
}

.highlight-card p {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0;
}

.highlight-card.text-highlight {
  background: linear-gradient(135deg, #4B5563 0%, #1F2937 100%);
  border: none;
}

.highlight-card.text-highlight .highlight-icon {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.highlight-card.text-highlight h3,
.highlight-card.text-highlight p {
  color: #ffffff;
}

/* 3. Detailed SEO Text Content */
.ph-detailed-content {
  background-color: #ffffff;
  border: 1px solid var(--ph-gray-border);
  border-radius: 20px;
  padding: 45px;
  margin-bottom: 60px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.02);
}

.ph-detailed-content h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--ph-dark);
  margin-top: 35px;
  margin-bottom: 20px;
  border-right: 4px solid var(--ph-primary);
  padding-right: 12px;
}

.ph-detailed-content h2:first-of-type {
  margin-top: 0;
}

.ph-detailed-content h3 {
  font-size: 1.3rem;
  font-weight: 750;
  color: var(--ph-dark);
  margin-top: 25px;
  margin-bottom: 15px;
}

.ph-detailed-content p {
  font-size: 1rem;
  color: #475569;
  margin-bottom: 20px;
  text-align: justify;
}

.ph-detailed-content ul, 
.ph-detailed-content ol {
  margin-bottom: 25px;
  padding-right: 25px;
}

.ph-detailed-content li {
  font-size: 0.95rem;
  color: #475569;
  margin-bottom: 10px;
}

.info-tip-box {
  background-color: var(--ph-light);
  border-right: 4px solid var(--ph-primary);
  border-radius: 8px;
  padding: 20px;
  margin: 25px 0;
}

.info-tip-box h4 {
  font-weight: 700;
  color: var(--ph-primary-dark);
  margin-top: 0;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-tip-box p {
  margin: 0;
  font-size: 0.95rem;
  color: #374151;
}

/* 4. Brand Comparison Table */
.comparison-table-wrapper {
  overflow-x: auto;
  margin: 30px 0;
  border: 1px solid var(--ph-gray-border);
  border-radius: 12px;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 0.9rem;
  min-width: 600px;
}

.comparison-table th {
  background-color: var(--ph-dark);
  color: #ffffff;
  padding: 15px;
  font-weight: 700;
}

.comparison-table td {
  padding: 15px;
  border-bottom: 1px solid var(--ph-gray-border);
  color: #475569;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tr:nth-child(even) {
  background-color: #f8fafc;
}

/* 5. Products Section */
.ph-products-section {
  margin-bottom: 60px;
}

.section-header-center {
  text-align: center;
  margin-bottom: 40px;
}

.section-header-center h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--ph-dark);
  margin-bottom: 10px;
}

.section-header-center p {
  font-size: 1rem;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
}

.ph-products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}

@media (max-width: 1100px) {
  .ph-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }
}

@media (max-width: 700px) {
  .ph-products-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* 6. FAQ Section */
.ph-faq-section {
  background-color: #ffffff;
  border: 1px solid var(--ph-gray-border);
  border-radius: 20px;
  padding: 45px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.02);
}

.faq-accordion-wrapper {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 30px;
}

.faq-item {
  border: 1px solid var(--ph-gray-border);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-question-btn {
  width: 100%;
  background: #ffffff;
  border: none;
  padding: 18px 25px;
  text-align: right;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ph-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.faq-question-btn:hover {
  background-color: var(--ph-gray-light);
  color: var(--ph-primary-dark);
}

.faq-icon {
  font-size: 0.9rem;
  color: #94a3b8;
  transition: transform 0.3s ease;
}

.faq-answer-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background-color: var(--ph-gray-light);
  border-top: 1px solid transparent;
}

.faq-answer-panel p {
  padding: 20px 25px;
  margin: 0;
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.8;
  text-align: justify;
}

.faq-item.open {
  border-color: var(--ph-primary);
}

.faq-item.open .faq-question-btn {
  color: var(--ph-primary-dark);
  background-color: var(--ph-light);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  color: var(--ph-primary);
}

.faq-item.open .faq-answer-panel {
  border-top-color: var(--ph-gray-border);
}

/* 7. Responsiveness */
@media (max-width: 991px) {
  .ph-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .ph-hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .ph-hero-badge-top .ph-tagline {
    margin: 0 auto 20px;
  }
  
  .ph-hero-cta-group {
    justify-content: center;
  }
  
  .ph-hero-badges-wrapper {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .ph-hero-title {
    font-size: 1.7rem;
  }
  
  .ph-detailed-content,
  .ph-faq-section {
    padding: 25px;
  }
}
