/* 🎨 Fetch Client - Custom Documentation Theme */

/* ===== GLOBAL STYLING ===== */
:root {
  --primary-color: #667eea;
  --secondary-color: #764ba2;
  --accent-color: #f093fb;
  --success-color: #4caf50;
  --warning-color: #ff9800;
  --error-color: #f44336;
  --code-bg: #f5f5f5;
  --border-radius: 8px;
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ===== HEADER STYLING ===== */
.tsd-page-title h1 {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  font-size: 2.5rem;
}

.tsd-page-title h1::before {
  content: "🚀 ";
  -webkit-text-fill-color: initial;
  background: none;
}

/* ===== NAVIGATION ICONS ===== */
.tsd-navigation a[href*="Client.html"]::before {
  content: "🌐 ";
  margin-right: 4px;
}

.tsd-navigation a[href*="ApiError.html"]::before {
  content: "⚠️ ";
  margin-right: 4px;
}

.tsd-navigation a[href*="ApiRequest.html"]::before {
  content: "📤 ";
  margin-right: 4px;
}

.tsd-navigation a[href*="ApiResponse.html"]::before {
  content: "📥 ";
  margin-right: 4px;
}

.tsd-navigation a[href*="Interceptor.html"]::before {
  content: "🔧 ";
  margin-right: 4px;
}

/* ===== TYPE NAVIGATION ICONS ===== */
.tsd-navigation a[href*="interfaces/"]::before {
  content: "📝 ";
  margin-right: 4px;
}

.tsd-navigation a[href*="types/"]::before {
  content: "🏷️ ";
  margin-right: 4px;
}

.tsd-navigation a[href*="variables/"]::before {
  content: "⚙️ ";
  margin-right: 4px;
}

/* ===== ENHANCED CARDS ===== */
.tsd-panel {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border: 1px solid #e0e0e0;
  transition: box-shadow 0.3s ease;
}

.tsd-panel:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* ===== SIGNATURE STYLING ===== */
.tsd-signature {
  background: linear-gradient(145deg, #f8f9fa, #e9ecef);
  border-radius: var(--border-radius);
  border: 1px solid #dee2e6;
  padding: 1rem;
  margin: 0.5rem 0;
}

.tsd-signature-keyword {
  color: var(--primary-color);
  font-weight: bold;
}

.tsd-signature-type {
  color: var(--secondary-color);
  font-weight: 600;
}

/* ===== CODE BLOCKS ===== */
pre code {
  background: var(--code-bg);
  border-radius: var(--border-radius);
  border: 1px solid #e0e0e0;
}

/* ===== EXAMPLE STYLING ===== */
.tsd-comment .tsd-tag-example + .tsd-example {
  background: linear-gradient(145deg, #f0f8ff, #e6f3ff);
  border-left: 4px solid var(--primary-color);
  padding: 1rem;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  margin: 1rem 0;
}

/* ===== SEARCH ENHANCEMENT ===== */
.tsd-search input {
  border-radius: 20px;
  border: 2px solid transparent;
  background: linear-gradient(white, white), linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  background-clip: padding-box, border-box;
  transition: all 0.3s ease;
}

.tsd-search input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

/* ===== MEMBER GROUP STYLING ===== */
.tsd-member-group h2 {
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  position: relative;
}

.tsd-member-group h2::before {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

/* ===== TAG STYLING ===== */
.tsd-tag {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-right: 0.5rem;
}

/* ===== PARAMETER STYLING ===== */
.tsd-parameters .tsd-parameter h5 {
  color: var(--secondary-color);
  font-weight: 600;
}

/* ===== BREADCRUMB ENHANCEMENT ===== */
.tsd-breadcrumb a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.tsd-breadcrumb a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* ===== RETURN TYPE STYLING ===== */
.tsd-returns-title {
  color: var(--success-color);
  font-weight: 600;
}

/* ===== FOOTER ENHANCEMENT ===== */
.tsd-page-toolbar {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
}

.tsd-page-toolbar a {
  color: white;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.tsd-page-toolbar a:hover {
  opacity: 1;
  text-decoration: none;
}

/* ===== RESPONSIVE ENHANCEMENTS ===== */
@media (max-width: 768px) {
  .tsd-page-title h1 {
    font-size: 1.8rem;
  }
  
  .tsd-signature {
    padding: 0.75rem;
    font-size: 0.9rem;
  }
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
  :root {
    --code-bg: #2d3748;
    --shadow: 0 2px 8px rgba(0,0,0,0.3);
  }
  
  .tsd-page-toolbar {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
  }
  
  .tsd-panel {
    border-color: #4a5568;
    background: #2d3748;
  }
  
  .tsd-signature {
    background: linear-gradient(145deg, #2d3748, #4a5568);
    border-color: #4a5568;
  }
  
  .tsd-comment .tsd-tag-example + .tsd-example {
    background: linear-gradient(145deg, #2d3748, #4a5568);
    border-left-color: var(--accent-color);
  }
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

/* ===== LOADING ANIMATION ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tsd-panel {
  animation: fadeInUp 0.5s ease-out;
}

/* ===== IMPROVED TYPOGRAPHY ===== */
.tsd-comment p {
  line-height: 1.6;
  margin-bottom: 1rem;
}

.tsd-comment code {
  background: var(--code-bg);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--secondary-color);
  font-weight: 500;
}