/* ==========================================================================
   Experience Page Styles
   Specific styles for the NDE experience detail page
   ========================================================================== */

/* Remove hardcoded gap at top */
#experience-div {
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  max-width: 1600px
}

/* Layout Container */
.exp-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  overflow: visible !important;
  
}

.exp-main-content {
  min-width: 0;
  overflow: visible !important;
}

/* Sidebar */
.exp-sidebar {
  position: sticky;
  top: 1rem;
  align-self: start;
}

.quick-facts {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid #dee2e6;
}

.quick-facts-title {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6c757d;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #007bff;
}

.quick-facts-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.quick-facts-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e9ecef;
  font-size: 0.875rem;
}

.quick-facts-list li:last-child {
  border-bottom: none;
}

.quick-facts-label {
  font-weight: 600;
  color: #495057;
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.quick-facts-value {
  color: #212529;
  margin-top: 0.125rem;
}

/* Title Area */
.exp-title-wrapper {
  margin-bottom: 1.5rem;
}

.exp-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #212529;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.exp-badges-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.exp-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.exp-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.exp-badge--nde {
  background: #e7f3ff;
  color: #0066cc;
  border: 1px solid #b3d7ff;
}

.exp-badge--exceptional {
  background: #fff3e6;
  color: #cc6600;
  border: 1px solid #ffcc80;
}

.exp-badge--classification {
  background: #f0e6ff;
  color: #6633cc;
  border: 1px solid #cc99ff;
}

.exp-entrynums {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #e9ecef;
  color: #6c757d;
  border: 1px solid #dee2e6;
  margin-left: auto;
}

.exp-subtitle {
  font-size: 0.875rem;
  color: #6c757d;
}

/* Snippet Highlight Section with Big Quotes */
.exp-snippet {
  background: linear-gradient(135deg, #fff3e6 0%, #ffe6cc 100%);
  border-radius: 8px;
  padding: 3rem;
  margin: 1.5rem 0;
  position: relative;
}

/* Opening quote positioned on the container */
.exp-snippet::before {
  content: "\201C";
  font-size: 3rem;
  color: #999;
  position: absolute;
  left: 0.75rem;
  top: 0.5rem;
  font-family: Georgia, serif;
  line-height: 1;
  opacity: 0.7;
}

/* Closing quote positioned on the container */
.exp-snippet::after {
  content: "\201D";
  font-size: 3rem;
  color: #999;
  position: absolute;
  right: 0.75rem;
  bottom: 0.5rem;
  font-family: Georgia, serif;
  line-height: 1;
  opacity: 0.7;
}

.exp-snippet-quote {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #444;
  font-style: italic;
  margin: 0;
  padding: 0;
}

/* Ensure parent containers don't clip the quotes */
.exp-main-content {
  overflow: visible !important;
}

.exp-title-wrapper {
  overflow: visible !important;
}

/* Summary Card */
.exp-summary-card {
  background: linear-gradient(135deg, #fff9e6 0%, #fff5cc 100%);
  border-left: 4px solid #ffcc00;
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.exp-summary-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #996600;
  margin-bottom: 0.5rem;
}

.exp-summary-text {
  color: #333;
  line-height: 1.6;
  font-style: italic;
}

/* Experience Elements in Sidebar */
.exp-elements-sidebar {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px solid #007bff;
}

.exp-elements-sidebar .exp-elements-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6c757d;
  margin-bottom: 0.75rem;
}

.exp-elements-sidebar .exp-elements-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.exp-element-badge-sidebar {
  display: inline-block;
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-weight: 500;
}

/* Experience Elements Badges */
.exp-elements {
  margin-bottom: 1.5rem;
}

.exp-elements-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.75rem;
}

.exp-elements-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.exp-element-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  background: #e8f5e9;
  color: #2e7d32;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
}

/* Section Headers */
.exp-section-header {
  font-size: 1.25rem;
  font-weight: 600;
  color: #212529;
  padding-bottom: 0.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #007bff;
}

/* Q&A Section */
.exp-section {
  margin-bottom: 0.75rem;
  padding: 0.75rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.exp-p {
  font-weight: 700;
  color: #1e3a5f;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
  padding-bottom: 0.375rem;
  border-bottom: 1px dashed #dee2e6;
}

.exp-a {
  color: #333;
  line-height: 1.7;
  padding-left: 0;
  font-size: 0.9375rem;
}

/* Experience Description */
.exp {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  line-height: 1.8;
  color: #333;
}

/* Pull Quote */
.exp-pullquote {
  background: linear-gradient(135deg, #f0f7ff 0%, #e6f2ff 100%);
  border-left: 4px solid #007bff;
  border-radius: 0 8px 8px 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #333;
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* Original Link */
.exp-original-link {
  text-align: right;
  margin-bottom: 1rem;
}

.exp-original-link a {
  color: #007bff;
  font-weight: 600;
  text-decoration: none;
}

.exp-original-link a:hover {
  text-decoration: underline;
}

/* Responsive Layout */

/* Between 1000px and 1200px, make container fill available space */
@media (max-width: 1200px) {
  .exp-container {
    max-width: calc(100% - 2rem);
    margin: 0 1rem;
  }
}

/* At 1000px, hide the sidebar entirely */
@media (max-width: 1000px) {
  .exp-container {
    grid-template-columns: 1fr;
    max-width: calc(100% - 2rem);
    margin: 0 1rem;
  }

  .exp-sidebar {
    display: none;
  }
}

@media (max-width: 900px) {
  .exp-container {
    grid-template-columns: 1fr;
  }

  .exp-sidebar {
    position: static;
    order: -1;
  }

  .quick-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
  }

  .quick-facts-title {
    grid-column: 1 / -1;
  }

  .quick-facts-list li {
    border-bottom: none;
    padding: 0;
  }
}

@media (max-width: 576px) {
  .exp-title {
    font-size: 1.5rem;
  }

  .exp-badges {
    flex-direction: column;
    align-items: flex-start;
  }

  .quick-facts {
    grid-template-columns: 1fr 1fr;
  }
}

/* RTL Support */
[dir="rtl"] .exp-sidebar,
[dir="rtl"] .quick-facts {
  text-align: right;
}

[dir="rtl"] .exp-summary-card,
[dir="rtl"] .exp-pullquote {
  border-left: none;
  border-right: 4px solid #ffcc00;
}

[dir="rtl"] .exp-section-header {
  text-align: right;
}