/* ============================================
   TRAFIK REHBERI - Vibrant Premium Design
   Matching detail page styling with gradient hero
   ============================================ */

/* Vibrant Gradient Hero - Matching detail pages with darker gradient for readability */
.trafik-rehberi-hero {
  position: relative;
  background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 30%, #7c3aed 60%, #9333ea 100%) !important;
  border-radius: var(--radius-xl, 20px);
  padding: 25px 1.5rem;
  margin-bottom: 0.875rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg, 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Override any section-soft-blue background */
.trafik-rehberi-hero.section-soft-blue {
  background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 30%, #7c3aed 60%, #9333ea 100%) !important;
}

.trafik-rehberi-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.1;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

.trafik-rehberi-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
}

.trafik-rehberi-hero-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
  .trafik-rehberi-hero-title {
    font-size: 2.25rem;
  }
}

.trafik-rehberi-hero-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.98);
  line-height: 1.6;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
  font-weight: 500;
}

@media (min-width: 768px) {
  .trafik-rehberi-hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: 2rem;
  }
}

/* CTA buttons - premium feel with vibrant styling */
.trafik-rehberi-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.trafik-rehberi-hero-cta .btn {
  padding: 12px 24px;
  border-radius: var(--radius-md, 12px);
  font-weight: 600;
  transition: all var(--transition-normal, 200ms ease);
  box-shadow: var(--shadow-md, 0 4px 6px -1px rgba(0, 0, 0, 0.1));
}

.trafik-rehberi-hero-cta .btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg, 0 10px 15px -3px rgba(0, 0, 0, 0.1));
}

.trafik-rehberi-hero-cta .btn-primary {
  background: linear-gradient(135deg, var(--primary, #2563eb), var(--secondary, #4f46e5));
  border: none;
  color: white;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.trafik-rehberi-hero-cta .btn-outline-primary {
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: var(--primary, #2563eb);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.trafik-rehberi-hero-cta .btn-outline-primary:hover {
  background: white;
  border-color: white;
  color: var(--primary-dark, #1e40af);
}

/* Cards: premium depth, vibrant hover matching detail pages */
.trafik-rehberi-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 1.5rem;
  background: var(--bg-white, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: var(--radius-xl, 20px);
  box-shadow: var(--shadow-md, 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06));
  transition: all var(--transition-normal, 200ms ease);
  text-decoration: none;
  color: inherit;
  height: 100%;
  min-height: 200px;
}

.trafik-rehberi-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl, 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04));
  border-color: var(--primary-light, #3b82f6);
  color: inherit;
}

/* Icon wrappers - vibrant colors matching detail pages */
.trafik-rehberi-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md, 12px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  transition: transform var(--transition-normal, 200ms ease);
}

.trafik-rehberi-card:hover .trafik-rehberi-card-icon {
  transform: scale(1.1);
}

.trafik-rehberi-icon-blue {
  background: #dbeafe;
  color: var(--primary-color);
}

.trafik-rehberi-icon-green {
  background: #dcfce7;
  color: #059669;
}

.trafik-rehberi-icon-amber {
  background: #fef3c7;
  color: #d97706;
}

.trafik-rehberi-icon-red {
  background: #fee2e2;
  color: #dc2626;
}

.trafik-rehberi-icon-purple {
  background: #ede9fe;
  color: #7c3aed;
}

.trafik-rehberi-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.trafik-rehberi-card-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: auto;
  flex-grow: 1;
}

.trafik-rehberi-card-arrow {
  display: inline-flex;
  align-items: center;
  color: var(--primary-color);
  font-size: 0.875rem;
  margin-top: 0.75rem;
  transition: transform 0.2s ease;
}

.trafik-rehberi-card:hover .trafik-rehberi-card-arrow {
  transform: translateX(4px);
}

/* SEO content block - premium card style matching detail pages */
.trafik-rehberi-seo {
  padding: 1.5rem 1.5rem;
  border-radius: var(--radius-xl, 20px);
  border: 1px solid var(--border-color, #e2e8f0);
  background: var(--bg-white, #ffffff) !important;
  box-shadow: var(--shadow-md, 0 4px 6px -1px rgba(0, 0, 0, 0.1));
  text-align: center;
}

/* Override section-light background to ensure white background */
.trafik-rehberi-seo.section-light {
  background: var(--bg-white, #ffffff) !important;
}

.trafik-rehberi-seo-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary, #0f172a) !important;
  margin-bottom: 0.75rem;
  text-align: center;
}

.trafik-rehberi-seo-text {
  font-size: 0.9375rem;
  color: var(--text-secondary, #475569) !important;
  line-height: 1.6;
  margin: 0 auto 1rem auto;
  text-align: center;
  max-width: 800px;
}

/* Ensure all text in SEO section is dark and readable */
.trafik-rehberi-seo * {
  color: inherit;
}

.trafik-rehberi-seo p,
.trafik-rehberi-seo h2,
.trafik-rehberi-seo h3 {
  color: var(--text-primary, #0f172a) !important;
}

/* Sub-page buttons - matching detail page styling */
.trafik-rehberi-seo .btn,
.trafik-rehberi-content .btn {
  padding: 12px 24px;
  border-radius: var(--radius-md, 12px);
  font-weight: 600;
  transition: all var(--transition-normal, 200ms ease);
  display: inline-block;
  margin: 0 auto;
}

.trafik-rehberi-seo .btn {
  display: block;
  margin: 0 auto;
  width: fit-content;
}

.trafik-rehberi-seo .btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm, 0 1px 2px 0 rgba(0, 0, 0, 0.05));
}

.trafik-rehberi-seo .btn-outline-secondary {
  border: 1.5px solid var(--border-color, #e2e8f0);
  color: var(--text-primary, #0f172a);
}

.trafik-rehberi-seo .btn-outline-secondary:hover {
  border-color: var(--primary, #2563eb);
  background: var(--primary-lightest, #dbeafe);
  color: var(--primary, #2563eb);
}

/* Trust badge row - ensure dark readable text */
.trust-badge-item {
  color: var(--text-secondary, #475569) !important;
}

.trust-badge-item i {
  color: var(--success-color, #22c55e) !important;
}

/* Ensure Trafik Rehberi pages have same background as main page */
.traffic-wallpaper.page-trafik-rehberi {
  background-color: #f8fafc !important;
  background-image: linear-gradient(175deg, #fafbff 0%, #f5f8fc 35%, #f1f5f9 70%, #f8fafc 100%) !important;
}

/* Match section backgrounds to main page */
.traffic-wallpaper.page-trafik-rehberi .section-white {
  background: #ffffff !important;
}

.traffic-wallpaper.page-trafik-rehberi .section-light {
  background-color: #f8fafc !important;
  background-image: none !important;
}

.traffic-wallpaper.page-trafik-rehberi .section-standard {
  background-color: transparent !important;
}

/* Ensure content sections match main page background */
.traffic-wallpaper.page-trafik-rehberi .trafik-rehberi-cards {
  background-color: transparent !important;
}

/* Compact spacing for index pages - matching detail pages */
.section-standard {
  padding-top: 2px !important;
}

.section-white.section-standard {
  padding-top: 2px !important;
}
