/* ============================================
   Token Counter Styles
   ============================================ */

/* Breadcrumb Navigation */
.breadcrumb-nav {
  background: #fff;
  border-bottom: 1px solid #e9ecef;
  padding: 0.75rem 1rem;
}

.breadcrumb-nav .container {
  max-width: 1200px;
  margin: 0 auto;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.875rem;
}

.breadcrumb-list li a {
  color: #6c757d;
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-list li a:hover {
  color: #212529;
}

.breadcrumb-list li[aria-current="page"] {
  color: #212529;
  font-weight: 500;
}

.breadcrumb-separator {
  color: #adb5bd;
  font-size: 0.7rem;
}

/* Header */
.tool-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: clamp(2rem, 5vw, 3rem) 1rem;
  text-align: center;
}

.tool-header .container {
  max-width: 800px;
  margin: 0 auto;
}

.tool-title {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  color: #212529;
  margin: 0 0 1rem 0;
  position: relative;
}

.tool-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: #212529;
  border-radius: 2px;
}

.tool-description {
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  color: #6c757d;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.loading-notice {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: rgba(33, 37, 41, 0.05);
  border-radius: 2rem;
  font-size: 0.85rem;
  color: #6c757d;
}

.loading-notice i {
  color: #212529;
}

/* Main Tool Section */
.tool-section {
  padding: clamp(1.5rem, 4vw, 2.5rem) 1rem;
  background: #f8f9fa;
}

.tool-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Input Wrapper */
.input-wrapper {
  background: #fff;
  border-radius: 12px;
  padding: clamp(1rem, 3vw, 1.5rem);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.input-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.input-header label {
  font-weight: 600;
  color: #212529;
  font-size: 0.95rem;
}

.input-header label i {
  margin-right: 0.5rem;
  color: #6c757d;
}

.clear-btn {
  background: none;
  border: 1px solid #dee2e6;
  color: #6c757d;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}

.clear-btn:hover {
  background: #f8f9fa;
  color: #212529;
  border-color: #adb5bd;
}

.text-input {
  width: 100%;
  padding: 1rem;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  line-height: 1.6;
  resize: vertical;
  min-height: 200px;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.text-input:focus {
  outline: none;
  border-color: #212529;
  box-shadow: 0 0 0 3px rgba(33, 37, 41, 0.1);
}

.text-input::placeholder {
  color: #adb5bd;
}

/* Results Wrapper */
.results-wrapper {
  background: #fff;
  border-radius: 12px;
  padding: clamp(1rem, 3vw, 1.5rem);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.results-wrapper h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #212529;
  margin: 0 0 1rem 0;
}

.results-wrapper h2 i {
  margin-right: 0.5rem;
  color: #6c757d;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.stat-card {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid #e9ecef;
}

.stat-card.primary {
  background: #212529;
  border-color: #212529;
}

.stat-card.primary .stat-icon {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.stat-card.primary .stat-value,
.stat-card.primary .stat-label {
  color: #fff;
}

.stat-icon {
  width: 40px;
  height: 40px;
  background: #e9ecef;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #495057;
  font-size: 1rem;
  flex-shrink: 0;
}

.stat-content {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: #212529;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.75rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Estimation Note */
.estimation-note {
  display: flex;
  gap: 0.75rem;
  padding: 1rem;
  background: #fff3cd;
  border-radius: 8px;
  border-left: 4px solid #ffc107;
  margin-bottom: 1.25rem;
}

.estimation-note i {
  color: #856404;
  flex-shrink: 0;
  margin-top: 2px;
}

.estimation-note p {
  font-size: 0.85rem;
  color: #856404;
  margin: 0;
  line-height: 1.5;
}

/* Cost Estimate */
.cost-estimate {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 1rem;
  border: 1px solid #e9ecef;
}

.cost-estimate h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #212529;
  margin: 0 0 0.25rem 0;
}

.cost-estimate h3 i {
  margin-right: 0.5rem;
  color: #6c757d;
}

.cost-note {
  font-size: 0.8rem;
  color: #6c757d;
  margin: 0 0 0.75rem 0;
}

.cost-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.cost-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background: #fff;
  border-radius: 6px;
  border: 1px solid #e9ecef;
}

.model-name {
  font-size: 0.8rem;
  color: #495057;
}

.cost-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: #212529;
}

.cost-disclaimer {
  font-size: 0.75rem;
  color: #6c757d;
  margin: 0.75rem 0 0 0;
}

.cost-disclaimer a {
  color: #212529;
  font-weight: 500;
}

/* Info Section */
.info-section {
  padding: clamp(2rem, 5vw, 3rem) 1rem;
  background: #fff;
}

.info-section .container {
  max-width: 1000px;
  margin: 0 auto;
}

.info-section h2 {
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 700;
  color: #212529;
  text-align: center;
  margin: 0 0 2rem 0;
}

.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.info-card {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid #e9ecef;
}

.card-icon {
  width: 48px;
  height: 48px;
  background: #212529;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.info-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #212529;
  margin: 0 0 0.5rem 0;
}

.info-card p {
  font-size: 0.9rem;
  color: #6c757d;
  line-height: 1.6;
  margin: 0;
}

/* Examples Section */
.examples-section {
  padding: clamp(2rem, 5vw, 3rem) 1rem;
  background: #f8f9fa;
}

.examples-section .container {
  max-width: 900px;
  margin: 0 auto;
}

.examples-section h2 {
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 700;
  color: #212529;
  text-align: center;
  margin: 0 0 0.5rem 0;
}

.section-subtitle {
  font-size: 1rem;
  color: #6c757d;
  text-align: center;
  margin: 0 0 2rem 0;
}

.examples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.example-item {
  background: #fff;
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #e9ecef;
}

.example-text {
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  color: #495057;
}

.example-result {
  font-weight: 600;
  color: #212529;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* Limits Section */
.limits-section {
  padding: clamp(2rem, 5vw, 3rem) 1rem;
  background: #fff;
}

.limits-section .container {
  max-width: 700px;
  margin: 0 auto;
}

.limits-section h2 {
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 700;
  color: #212529;
  text-align: center;
  margin: 0 0 0.5rem 0;
}

.limits-table-wrapper {
  overflow-x: auto;
  margin-top: 1.5rem;
}

.limits-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.limits-table th,
.limits-table td {
  padding: 0.875rem 1rem;
  text-align: left;
  border-bottom: 1px solid #e9ecef;
}

.limits-table th {
  background: #f8f9fa;
  font-weight: 600;
  color: #212529;
}

.limits-table td {
  color: #495057;
}

.limits-table tbody tr:hover {
  background: #f8f9fa;
}

/* FAQ Section */
.faq-section {
  padding: clamp(2rem, 5vw, 3rem) 1rem;
  background: #f8f9fa;
}

.faq-section .container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-section h2 {
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 700;
  color: #212529;
  text-align: center;
  margin: 0 0 2rem 0;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  overflow: hidden;
}

.faq-item summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: #212529;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  color: #6c757d;
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  padding: 0 1.25rem 1rem;
  margin: 0;
  color: #6c757d;
  line-height: 1.6;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .cost-grid {
    grid-template-columns: 1fr;
  }
  
  .example-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* Expert / Analyst Section styles (moved from inline) */
.expert-analysis-section {
  padding: 4rem 0;
  background-color: #fcfcfc;
  border-top: 1px solid #eaeaea;
  border-bottom: 1px solid #eaeaea;
}

.expert-analysis-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

.expert-analysis-title {
  margin-bottom: 2rem;
  color: #222;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.expert-analysis-icon {
  margin-right: 10px;
  color: #555;
  font-size: 1.1rem;
}

.expert-analysis-item {
  margin-bottom: 2.5rem;
}

.expert-analysis-heading {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #111;
  font-weight: 600;
}

.expert-analysis-text {
  color: #555;
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 600px) {
  .expert-analysis-section {
    padding: 2rem 0;
  }
  .expert-analysis-title {
    font-size: 1.25rem;
  }
  .expert-analysis-heading {
    font-size: 1.05rem;
  }
  .expert-analysis-inner {
    padding: 0 0.75rem;
  }
}
