:root {
  /* Primary Colors */
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --primary-hover: #1d4ed8;
  --primary-shadow: rgb(37 99 235 / 25%);
  
  /* Legacy Primary (for backward compatibility) */
  --primary-color: var(--primary);
  --primary-color-light: var(--primary-light);
  
  /* Semantic Colors */
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
  --accent: #36cfc9;
  
  /* Legacy Semantic (for backward compatibility) */
  --success-color: var(--success);
  --warning-color: var(--warning);
  --danger-color: var(--danger);
  
  /* Surface Colors */
  --surface: #ffffff;
  --surface-muted: #f4f6fb;
  --surface-elevated: #ffffff;
  --background: #f8fafc;
  --surface-color: var(--surface);
  --light-bg: var(--background);
  --secondary-bg: #e2e8f0;
  
  /* Border Colors */
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --border-dark: #cbd5e1;
  --border-color: var(--border);
  
  /* Text Colors */
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-inverse: #ffffff;
  --text-primary: var(--text-main);
  --text-secondary: var(--text-muted);
  --secondary-color: #334155;
  
  /* Shadow System */
  --shadow-soft: 0 20px 45px rgba(15, 23, 42, 0.08);
  --shadow-sm: 0 1px 2px rgb(15 23 42 / 0.08);
  --shadow-md: 0 4px 12px rgb(15 23 42 / 0.08);
  --shadow-lg: 0 12px 24px rgb(15 23 42 / 0.12);
  --shadow-xl: 0 20px 25px rgb(15 23 42 / 0.1);
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --radius-full: 9999px;
}

.url-decode-page {
  padding: 2rem 0;
}

.url-decode-intro {
  margin-bottom: 3rem;
}

.url-decode-title {
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.1;
}

.url-decode-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin: 0 0 1rem;
  max-width: 860px;
}

.url-decode-meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-start;
  padding: 0;
  margin: 1rem 0 0;
}

.meta-chip {
  background: var(--surface-color);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  padding: 0.45rem 0.95rem;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.url-decode-main {
  background: var(--surface-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.url-decode-card {
  padding: 0rem 2rem;
  height: 100%;
}

.url-decode-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.status-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  line-height: 1.5;
}

.status-info {
  background: var(--primary-color-light);
  color: var(--primary-color);
  border-left: 4px solid var(--primary-color);
}

.status-bar svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.input-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1rem;
}

.label-title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip-trigger {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-color-light);
  color: var(--primary-color);
  border: none;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: help;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.2s ease;
}

.tooltip-trigger:hover {
  background: var(--primary-color);
  color: #ffffff;
}

.tooltiptext {
  visibility: hidden;
  width: 240px;
  background-color: var(--text-primary);
  color: #ffffff;
  text-align: left;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  position: absolute;
  z-index: 1000;
  bottom: 125%;
  left: 50%;
  margin-left: -120px;
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 0.875rem;
  line-height: 1.4;
  font-weight: 400;
  box-shadow: var(--shadow-lg);
}

.tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: var(--text-primary) transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

.url-decode-select {
  width: 100%;
  padding: 1rem 1.15rem;
  border: 2px solid var(--border-color);
  border-radius: 0.75rem;
  font-size: 1rem;
  color: var(--text-primary);
  transition: all 0.2s ease;
  background: var(--surface-color);
  box-shadow: inset 0 1px 2px rgb(15 23 42 / 0.04);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%230f172a' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 3rem;
}

.url-decode-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-color-light);
}

.url-decode-textarea {
  width: 100%;
  padding: 1rem 1.15rem;
  border: 2px solid var(--border-color);
  border-radius: 0.75rem;
  font-size: 1rem;
  color: var(--text-primary);
  transition: all 0.2s ease;
  background: var(--surface-color);
  box-shadow: inset 0 1px 2px rgb(15 23 42 / 0.04);
  
  resize: vertical;
  min-height: 200px;
}

.output-textarea {
  background: var(--surface-muted);
  
  font-size: 0.95rem;
  line-height: 1.6;
  min-height: 400px;
}

.url-decode-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-color-light);
}

.url-decode-textarea:hover {
  border-color: var(--primary-color);
}

.url-decode-textarea::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}

.textarea-label {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-actions-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ghost-btn {
  background: transparent;
  border: 2px solid var(--border-color);
  color: var(--text-secondary);
  border-radius: 0.9rem;
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  flex: 1 1 auto;
  min-width: 100px;
}

.ghost-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}

.ghost-btn:active {
  transform: scale(0.98);
}

.results-container {
  border-radius: var(--radius-md);
  background: var(--surface-color);
  box-shadow: var(--shadow-md);
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid var(--border-color);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.results-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
}

.results-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.output-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
}


.stats-container {
  background: var(--surface-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 1.5rem;
  border: 1px solid var(--border-color);
}

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

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.example-container {
  background: var(--surface-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 1.5rem;
  border: 1px solid var(--border-color);
}

.example-title {
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.example-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  
  font-size: 0.875rem;
}

.example-item {
  padding: 0.5rem;
  background: var(--surface-color);
  border-radius: calc(0.75rem / 2);
  border: 1px solid var(--border-color);
}

.result-actions {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.copy-buttons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.copy-button {
  background: #f1f5f9;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #405063 !important;
  border: 1px solid #dde3e7;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  gap: 0.5rem;
  flex: 1 1 auto;
  min-width: 140px;
}

.copy-button:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
  transform: translateY(-1px);
}

.copy-button.copied {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff !important;
}

.copy-button svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.share-container {
  margin-top: 1.5rem;
}

.share-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.share-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.5rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: #ffffff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 20px rgba(15, 23, 42, 0.2);
  color: #ffffff;
  text-decoration: none;
}

.share-x { background: #111827; }
.share-facebook { background: #1877f2; }
.share-linkedin { background: #0a66c2; }
.share-reddit { background: #ff4500; }
.share-telegram { background: #229ed9; }
.share-whatsapp { background: #25d366; color: #0f172a; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

@media (max-width: 768px) {
  .url-decode-page {
      padding: 1rem 0;
  }

  .url-decode-main {
      padding: 1.5rem;
  }

  .url-decode-card {
      padding: 0 1rem;
  }

  .form-actions-inline {
      flex-direction: column;
  }

  .ghost-btn {
      width: 100%;
  }

  .stats-grid {
      grid-template-columns: repeat(2, 1fr);
  }

  .example-list {
      grid-template-columns: 1fr;
  }

  .copy-buttons-row {
      flex-direction: column;
  }

  .copy-button {
      width: 100%;
  }

  .share-buttons {
      grid-template-columns: repeat(2, 1fr);
  }

  .share-btn {
      min-width: auto;
  }
}

/* Educational Content Styles */
.angle-seo-section {
  padding: 4rem 0;
}

.angle-card {
  margin: 0 auto;
  background: var(--surface-color);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
}

.angle-education-card h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.angle-education-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.angle-education-card p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.angle-education-card a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.angle-education-card a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.infographic-timeline {
  margin: 2rem 0;
  padding: 2rem;
  background: var(--surface-color);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.infographic-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2rem;
  text-align: center;
}

.timeline-container {
  position: relative;
}

.timeline-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.timeline-item {
  background: var(--surface-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.timeline-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.timeline-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  color: var(--primary-color);
}

.timeline-icon svg {
  width: 100%;
  height: 100%;
}

.timeline-era {
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.timeline-years {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.timeline-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.infographic-conversion-formula {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.formula-box {
  background: var(--surface-color);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.2s ease;
}

.formula-box:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.formula-label {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.formula-content {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.formula-example {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .angle-card {
      padding: 2rem 1.5rem;
  }

  .angle-education-card h2 {
      font-size: 1.75rem;
  }

  .angle-education-card h3 {
      font-size: 1.25rem;
  }

  .timeline-items {
      grid-template-columns: 1fr;
  }

  .infographic-conversion-formula {
      grid-template-columns: 1fr;
  }
}

