/* =========================================
   style.css – AI Tools Directory
   ========================================= */

.container-fluid > .row {
    align-items: flex-start !important;
}

.col-lg-5.d-none.d-lg-block {
    align-self: flex-start;
    position: sticky;
    top: 80px;
}

.use-case-checkboxes { 
    max-height: 180px;
    overflow-y: auto;
    border: 1px solid #495057;
    border-radius: 0 0 6px 6px;
    padding: 10px;
    background: #1a1a2e;
    resize: vertical;
    min-height: 80px;
}
.use-case-checkboxes label { display:block;padding:2px 0;cursor:pointer;color:#ccc;font-size:0.85rem; }
.use-case-checkboxes input[type="checkbox"] { margin-right:6px; }
.use-case-search { 
    margin-bottom: 0;
    border-radius: 6px 6px 0 0;
    border-bottom: none;
}

/* AI Search Loader */
.ai-loader-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid #e0e0ff;
  border-top: 4px solid #6366f1;
  border-radius: 50%;
  animation: ai-spin 0.8s linear infinite;
  margin: 0 auto;
}

@keyframes ai-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Pulse animation for the AI text */
#aiSearchLoader p:first-of-type {
  animation: ai-pulse 1.5s ease-in-out infinite;
}

@keyframes ai-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.ai-tool-row {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
}

.ai-tool-row-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.ai-tool-row-desc {
  font-size: 0.9rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.6;
}

.ai-inline-favicon {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  object-fit: contain;
}

.ai-inline-name {
  color: #4f46e5;
  font-weight: 700;
  text-decoration: none;
}

.ai-inline-name:hover {
  text-decoration: underline;
}

.ai-inline-external {
  color: #9ca3af;
  font-size: 0.85rem;
  text-decoration: none;
}

.ai-inline-external:hover {
  color: #4f46e5;
}

/* Inline AI tool links */
.ai-inline-favicon {
  width: 18px !important;
  height: 18px !important;
  border-radius: 3px !important;
  vertical-align: middle !important;
  margin-right: 4px !important;
  display: inline !important;
}

.ai-inline-name {
  color: #4f46e5 !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

.ai-inline-name:hover {
  text-decoration: underline !important;
  color: #3730a3 !important;
}

.ai-inline-external {
  color: #9ca3af !important;
  font-size: 0.85rem !important;
  text-decoration: none !important;
  margin-left: 2px !important;
}

.ai-inline-external:hover {
  color: #4f46e5 !important;
}

/* Force AI tool card links to be visible */
.ai-tool-card {
  background: #fff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  height: 100% !important;
  transition: all 0.25s ease !important;
  overflow: hidden !important;
}

.ai-tool-card:hover {
  border-color: #6366f1 !important;
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.12) !important;
  transform: translateY(-2px) !important;
}

.ai-tool-card-body {
  padding: 20px !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

.ai-tool-header {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  margin-bottom: 10px !important;
}

.ai-tool-favicon {
  width: 28px !important;
  height: 28px !important;
  border-radius: 6px !important;
  object-fit: contain !important;
  flex-shrink: 0 !important;
}

.ai-tool-title-group {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
}

.ai-tool-name-link {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: #1f2937 !important;
  text-decoration: underline !important;
}

.ai-tool-name-link:hover {
  color: #4f46e5 !important;
}

.ai-tool-external-icon {
  color: #9ca3af !important;
  font-size: 0.85rem !important;
  display: inline-flex !important;
  align-items: center !important;
}

.ai-tool-external-icon:hover {
  color: #4f46e5 !important;
}

.ai-tool-desc {
  font-size: 0.85rem !important;
  color: #6b7280 !important;
  margin-bottom: 1rem !important;
  flex-grow: 1 !important;
  line-height: 1.5 !important;
}

.ai-tool-footer {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-top: auto !important;
}

.ai-pricing-badge {
  background: #ecfdf5 !important;
  color: #059669 !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  padding: 4px 10px !important;
  border-radius: 50px !important;
}

.ai-visit-btn {
  display: inline-flex !important;
  align-items: center !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  color: #6366f1 !important;
  text-decoration: none !important;
  padding: 5px 14px !important;
  border: 1px solid #6366f1 !important;
  border-radius: 50px !important;
}

.ai-visit-btn:hover {
  background: #6366f1 !important;
  color: #fff !important;
}

.ai-use-cases {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 4px !important;
}

.ai-use-case-tag {
  background: #f3f4f6 !important;
  color: #6b7280 !important;
  font-size: 0.7rem !important;
  padding: 2px 8px !important;
  border-radius: 50px !important;
}

.ai-tool-favicon {
  width: 28px !important;
  height: 28px !important;
  border-radius: 6px !important;
  object-fit: contain !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
}

.ai-tool-name-link {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: #1f2937 !important;
  text-decoration: none !important;
}

.ai-tool-name-link:hover {
  color: #4f46e5 !important;
}

.ai-tool-external-icon {
  color: #9ca3af !important;
  font-size: 0.85rem !important;
  margin-left: 4px !important;
}

.ai-tool-external-icon:hover {
  color: #4f46e5 !important;
}

/* AI Tool Card Header */
.ai-tool-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.ai-tool-favicon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: contain;
  flex-shrink: 0;
  margin-top: 2px;
}

.ai-tool-title-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.ai-tool-name-link {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1f2937;
  text-decoration: none;
  line-height: 1.3;
  transition: color 0.2s;
}

.ai-tool-name-link:hover {
  color: #4f46e5;
}

.ai-tool-external-icon {
  color: #9ca3af;
  font-size: 0.85rem;
  transition: color 0.2s;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}

.ai-tool-external-icon:hover {
  color: #4f46e5;
}

/* Tool footer */
.ai-tool-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

/* Remove URL text from analysis */
.ai-analysis-body a {
  word-break: break-all;
}


/* AI Tool Card - Updated */
.ai-tool-favicon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
  background: #f9fafb;
  padding: 2px;
}

.ai-tool-favicon-placeholder {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.ai-tool-name {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ai-tool-name-link {
  color: #1f2937;
  text-decoration: none;
  transition: color 0.2s;
}

.ai-tool-name-link:hover {
  color: #6366f1;
}

.ai-tool-external {
  color: #9ca3af;
  font-size: 0.8rem;
  transition: color 0.2s;
  flex-shrink: 0;
}

.ai-tool-external:hover {
  color: #6366f1;
}

.ai-tool-desc {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 1rem;
  flex-grow: 1;
  line-height: 1.5;
  margin-top: 0.5rem;
}

.ai-pricing-badge {
  display: inline-block;
  background: #ecfdf5;
  color: #059669;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 50px;
}

.ai-visit-btn {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: #6366f1;
  text-decoration: none;
  padding: 5px 14px;
  border: 1px solid #6366f1;
  border-radius: 50px;
  transition: all 0.2s;
}

.ai-visit-btn:hover {
  background: #6366f1;
  color: #fff;
}

.ai-use-cases {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.ai-use-case-tag {
  display: inline-block;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 50px;
  white-space: nowrap;
}

.ai-tool-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  height: 100%;
  transition: all 0.25s ease;
  overflow: hidden;
}

.ai-tool-card:hover {
  border-color: #6366f1;
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.12);
  transform: translateY(-2px);
}

.ai-tool-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
}


/* AI Analysis Content Styling */
.ai-analysis-body {
  color: #374151;
}

/* AI Toggle - larger size */
.ai-toggle-wrapper {
  display: flex;
  align-items: center;
  margin-right: 10px;
  flex-shrink: 0;
  height: 40px;
}

.ai-toggle {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 32px;
  cursor: pointer;
  margin: 0;
}

.ai-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.ai-toggle-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #e9ecef;
  border-radius: 50px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 5px;
  border: 1px solid #dee2e6;
}

.ai-toggle-slider::before {
  content: "";
  position: absolute;
  height: 26px;
  width: 26px;
  left: 2px;
  bottom: 2px;
  background: white;
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.ai-toggle input:checked + .ai-toggle-slider {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  border-color: #4f46e5;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}

.ai-toggle input:checked + .ai-toggle-slider::before {
  transform: translateX(28px);
}

.ai-toggle-text {
  font-size: 0.9rem;
  z-index: 1;
  transition: opacity 0.2s;
  line-height: 1;
}

.ai-toggle-off {
  opacity: 1;
}

.ai-toggle-on {
  opacity: 0.3;
}

.ai-toggle input:checked + .ai-toggle-slider .ai-toggle-off {
  opacity: 0.3;
}

.ai-toggle input:checked + .ai-toggle-slider .ai-toggle-on {
  opacity: 1;
}

.ai-analysis-body .ai-h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #4f46e5;
  margin: 1.5rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e0e0ff;
}

.ai-analysis-body .ai-h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #6366f1;
  margin: 1.2rem 0 0.5rem;
}

.ai-analysis-body .ai-h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #1f2937;
  margin: 1rem 0 0.4rem;
}

.ai-analysis-body .ai-text-lg {
  font-size: 1rem;
  font-weight: 500;
  color: #374151;
  margin: 0.5rem 0;
}

/* Tool name inline (in analysis text) */
.ai-analysis-body .ai-tool-name-inline {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 700;
  color: #4f46e5;
  background: linear-gradient(135deg, #f0f0ff, #e8e8ff);
  padding: 3px 12px;
  border-radius: 8px;
  margin: 2px 0;
}

.ai-analysis-body .ai-tool-num {
  color: #6366f1;
  font-weight: 800;
}

.ai-analysis-body .ai-ul,
.ai-analysis-body .ai-ol {
  margin: 0.75rem 0;
  padding-left: 1.5rem;
}

.ai-analysis-body .ai-ul li,
.ai-analysis-body .ai-ol li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.ai-analysis-body .ai-code {
  background: #f3f4f6;
  color: #6366f1;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: 'SF Mono', 'Monaco', 'Menlo', monospace;
}

.ai-analysis-body .ai-hr {
  border: none;
  border-top: 1px solid #e0e0ff;
  margin: 1.5rem 0;
}

.ai-analysis-body .ai-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9rem;
  border-radius: 8px;
  overflow: hidden;
}

.ai-analysis-body .ai-table th {
  background: #6366f1;
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
}

.ai-analysis-body .ai-table td {
  padding: 10px 16px;
  border-bottom: 1px solid #f3f4f6;
}

.ai-analysis-body .ai-table tr:last-child td {
  border-bottom: none;
}

.ai-analysis-body .ai-table tr:hover td {
  background: #f8f9ff;
}

.ai-analysis-body strong {
  color: #4f46e5;
  font-weight: 700;
}

.ai-analysis-body em {
  color: #059669;
  font-style: italic;
}

.ai-analysis-body p {
  margin-bottom: 0.8rem;
  line-height: 1.7;
}
/* =========================================
   AI SEARCH RESULTS STYLING
   ========================================= */

/* AI Analysis Card */
.ai-analysis-card {
  background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
  border: 1px solid #e0e0ff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.08);
}

.ai-analysis-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
}

.ai-analysis-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.ai-analysis-title {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
}

.ai-analysis-body {
  padding: 24px;
  line-height: 1.8;
  font-size: 1rem;
  color: #374151;
}

.ai-analysis-body h1,
.ai-analysis-body h2,
.ai-analysis-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #4f46e5;
  margin-top: 1.2rem;
  margin-bottom: 0.5rem;
}

.ai-analysis-body strong {
  color: #4f46e5;
}

.ai-analysis-body ul,
.ai-analysis-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.ai-analysis-body li {
  margin-bottom: 0.4rem;
}

.ai-analysis-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.ai-analysis-body th {
  background: #f3f4f6;
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid #e5e7eb;
}

.ai-analysis-body td {
  padding: 10px 14px;
  border-bottom: 1px solid #f3f4f6;
}

.ai-analysis-body hr {
  border-color: #e0e0ff;
  margin: 1.5rem 0;
}

.ai-analysis-body code {
  background: #f3f4f6;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

/* AI Tool Cards */
.ai-tool-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  height: 100%;
  transition: all 0.25s ease;
  overflow: hidden;
}

.ai-tool-card:hover {
  border-color: #6366f1;
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.12);
  transform: translateY(-2px);
}

.ai-tool-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ai-tool-favicon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  object-fit: contain;
  flex-shrink: 0;
}

.ai-tool-name {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.ai-tool-name a {
  color: #1f2937;
  transition: color 0.2s;
}

.ai-tool-name a:hover {
  color: #6366f1;
}

.ai-tool-desc {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 1rem;
  flex-grow: 1;
  line-height: 1.5;
}

.ai-pricing-badge {
  display: inline-block;
  background: #ecfdf5;
  color: #059669;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 50px;
}

.ai-visit-btn {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: #6366f1;
  text-decoration: none;
  padding: 4px 12px;
  border: 1px solid #6366f1;
  border-radius: 50px;
  transition: all 0.2s;
}

.ai-visit-btn:hover {
  background: #6366f1;
  color: #fff;
}

.ai-use-cases {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.ai-use-case-tag {
  display: inline-block;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 50px;
  white-space: nowrap;
}

/* Responsive */
@media (max-width: 768px) {
  .ai-analysis-header {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
  
  .ai-analysis-title {
    font-size: 1.1rem;
  }
  
  .ai-analysis-body {
    padding: 16px;
    font-size: 0.9rem;
  }
}

/* =========================================
   AI SEARCH TOGGLE SWITCH
   ========================================= */

.ai-toggle-wrapper {
  display: flex;
  align-items: center;
  margin-right: 8px;
  flex-shrink: 0;
}

.ai-toggle {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  cursor: pointer;
  margin: 0;
}

.ai-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.ai-toggle-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #e9ecef;
  border-radius: 50px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px;
  border: 1px solid #dee2e6;
}

.ai-toggle-slider::before {
  content: "";
  position: absolute;
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 2px;
  background: white;
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.ai-toggle input:checked + .ai-toggle-slider {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  border-color: #4f46e5;
}

.ai-toggle input:checked + .ai-toggle-slider::before {
  transform: translateX(22px);
}

.ai-toggle-text {
  font-size: 0.75rem;
  z-index: 1;
  transition: opacity 0.2s;
}

.ai-toggle-off {
  opacity: 1;
  margin-left: 2px;
}

.ai-toggle-on {
  opacity: 0.3;
  margin-right: 2px;
}

.ai-toggle input:checked + .ai-toggle-slider .ai-toggle-off {
  opacity: 0.3;
}

.ai-toggle input:checked + .ai-toggle-slider .ai-toggle-on {
  opacity: 1;
}

/* Glow effect when AI is active */
.ai-toggle input:checked + .ai-toggle-slider {
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.4);
}
/* =========================================
   SEARCH BAR
   ========================================= */

/* Main search box container */
.search-box {
    position: relative;
    background: #fff;
    border-radius: 50px;
    padding: 0.3rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e0e0e0;
}

/* Search input */
#mainSearchInput {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    color: #333 !important;
    padding: 0.5rem 3rem 0.5rem 1.5rem !important;
    border-radius: 50px !important;
    font-size: 0.95rem;
}

#mainSearchInput::placeholder {
    color: #999 !important;
}

#mainSearchInput:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Search button - round, inside the input */
.search-box .btn-success {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50% !important;
    background: #4da167;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 2;
}

.search-box .btn-success:hover {
    background: #3d7a52;
}

/* Autocomplete dropdown */
#searchAutocomplete {
    position: absolute;
    top: calc(100% + 8px);
    left: 10px;
    right: 10px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    max-height: 320px;
    overflow-y: auto;
    z-index: 1050;
    padding: 8px 0;
}

#searchAutocomplete .dropdown-item {
    padding: 10px 20px;
    cursor: pointer;
    color: #333;
    font-size: 0.9rem;
    border: none;
    transition: background 0.15s;
}

#searchAutocomplete .dropdown-item:hover {
    background: #f5f5f5;
    color: #4da167;
}

#searchAutocomplete .dropdown-item strong {
    color: #4da167;
    font-weight: 600;
}

#autocompleteNoResults,
#autocompleteLoading {
    padding: 12px 20px;
    color: #999;
    font-size: 0.85rem;
}

/* Mobile tweaks */
@media (max-width: 991.98px) {
    .search-box {
        margin-bottom: 0.5rem;
    }
    
    #searchAutocomplete {
        left: 0;
        right: 0;
    }
}

/* ========== NAV ACTIONS WRAPPER ========== */
/* Force all nav actions into one line */
.nav-actions-wrapper {
    display: flex;
    flex-direction: row !important;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    justify-content: center;
	padding: 0px 0px 0px 19px;
}

.nav-actions-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
	padding: 0px 19px 0px 0px;
}

.nav-pricing-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
	padding: 0px 19px 0px 0px;
}

/* Push login to the right */
.nav-login-dropdown,
.nav-login-btn {
    margin-left: auto !important;
    flex-shrink: 0;
}

/* Only wrap when very narrow */
@media (max-width: 700px) {
    .nav-actions-wrapper {
        flex-wrap: wrap;
    }
    
    .nav-pricing-wrapper {
        order: 3;
        width: 100%;
    }
    
    .nav-login-dropdown,
    .nav-login-btn {
        margin-left: auto !important;
    }
}
/* Mobile menu fixes */
@media (max-width: 991.98px) {
    /* Main navbar collapse area */
    #navbarMain {
        padding: 1rem 0;
    }
    
    /* Search bar – full width */
    #navbarMain .search-box {
        width: 100% !important;
        margin-bottom: 1rem;
    }
    #navbarMain form[action*="search"] {
        max-width: 100% !important;
        width: 100% !important;
    }
    
    /* Action buttons row (Submit, Claim, Login) – centered in one line */
    #navbarMain .d-flex.align-items-center.me-2 {
        flex-direction: row !important;
        justify-content: center !important;
        flex-wrap: wrap;
        gap: 8px;
        padding: 8px 0;
    }
    
    /* Pricing toggle pills – keep 2 rows but centered */
    #navbarMain .d-flex.flex-column {
        flex-direction: column !important;
        align-items: center !important;
        padding: 8px 20px;
    }
    #navbarMain .d-flex.flex-column .d-flex.gap-1 {
        justify-content: center;
    }
    
    /* Login/avatar button – centered */
    #navbarMain .navbar-nav {
        flex-direction: row !important;
        justify-content: center;
        padding: 8px 0 0 0;
    }
    #navbarMain .navbar-nav .nav-item {
        margin: 0;
    }
}

/* Flashing LED dot for active pricing pills */
.pricing-toggle.btn-success {
    position: relative;
    overflow: visible;
}
.pricing-toggle.rounded-pill {
    border-radius: 0.2rem !important;
}

.pricing-toggle.btn-success::after {
    content: '';
    position: absolute;
    top: 1px;
    right: 1px;
    width: 5px;
    height: 5px;
    background-color: #ffd14a;
    border-radius: 50%;
   
    animation: led-flash 1s infinite;
}
@keyframes led-flash {
    0%, 100% { opacity: 1; box-shadow: 0 0 4px #ff4757; }
    50% { opacity: 0.3; box-shadow: 0 0 8px #ff4757; }
}

.vote-buttons .up-count,
.vote-buttons .down-count {
    display: none;
}

/* ----- Sticky footer ----- */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

.page-wrap {
    flex: 1 0 auto;   /* grows to fill available space, pushing footer down */
}

.site-footer {
    flex-shrink: 0;   /* never shrink */
}


/* ----- global ----- */
body {
    background: #f4f6f9;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ----- navbar ----- */
.navbar {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.navbar-brand {
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* ----- search bar ----- */
.search-box {
    background: white;
    border-radius: 2rem;
    padding: 0.4rem 0.4rem 0.4rem 1.2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.search-box input {
    border: none;
    box-shadow: none;
}
.search-box input:focus {
    box-shadow: none;
}

/* ----- parent category cards (index) ----- */
.parent-card {
    background: white;
    border-radius: 1.2rem;
    padding: 1.5rem 1.5rem 1.2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform 0.2s, box-shadow 0.2s;
}
.parent-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.parent-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
}
.parent-title i {
    color: #4da167;
    font-size: 1.5rem;
}
.toggle-arrow {
    font-size: 1.2rem;
    color: #6c757d;
    transition: transform 0.3s ease;
    user-select: none;
    padding: 0 4px;
    flex-shrink: 0;
}
.toggle-arrow.open {
    transform: rotate(90deg);
}
.child-count-badge {
    background: #4da167;
    color: white;
    border-radius: 50px;
    padding: 0.15rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: auto;
}
.child-pills {
    display: none;
    margin-top: 0.75rem;
    flex-wrap: wrap;
    gap: 6px;
}
.child-pills.show {
    display: flex;
}
.child-pill {
    display: inline-block;
    background: #f1f3f5;
    color: #495057;
    border-radius: 2rem;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid transparent;
}
.child-pill:hover {
    background: #4da167;
    color: white;
    border-color: #4da167;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(77,161,103,0.25);
}
.empty-message {
    color: #adb5bd;
    font-style: italic;
    font-size: 0.9rem;
}

/* ----- page header ----- */
.page-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
}
.page-header p {
    color: #636e72;
}

/* ----- tool cards (browse, category, search) ----- */
.tool-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
    transition: transform 0.2s;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.tool-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
.tool-card img {
    height: 160px;
    object-fit: cover;
    width: 100%;
}
.tool-card .card-body {
    padding: 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.tool-card .card-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.tool-card .card-text {
    font-size: 0.85rem;
    color: #555;
    flex: 1;
}
.pricing-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
}
.votes {
    font-size: 0.8rem;
    color: #888;
}

/* ----- filter / pricing buttons ----- */
.filters a.active,
.btn-outline-success.active {
    background: #4da167;
    color: white;
    border-color: #4da167;
}

/* ----- load more button ----- */
.load-more-btn {
    background: #4da167;
    border: none;
    border-radius: 50px;
    padding: 0.6rem 2rem;
    font-weight: 600;
}
.load-more-btn:hover {
    background: #3d7a52;
}

/* ----- responsive adjustments ----- */
@media (max-width: 768px) {
    .parent-title {
        font-size: 1.2rem;
    }
    .parent-card {
        padding: 1.2rem;
    }
    .page-header h1 {
        font-size: 2rem;
    }
}

/* =========================================
   Footer styles – add to style.css
   ========================================= */

.site-footer {
    background: #1a1e21;           /* very dark, modern */
    color: #ccc;
    padding: 60px 0 20px;
    font-size: 0.95rem;
}

.site-footer .footer-brand {
    display: flex;
    align-items: center;
}

.site-footer .footer-brand span {
    color: #fff;
}

.site-footer .footer-description {
    color: #adb5bd;
    max-width: 320px;
    line-height: 1.6;
}

.site-footer .footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-radius: 50%;
    margin-right: 8px;
    font-size: 1.1rem;
    transition: all 0.25s ease;
    text-decoration: none;
}

.site-footer .footer-social a:hover {
    background: #4da167;
    color: white;
    transform: translateY(-2px);
}

.site-footer .footer-heading {
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.site-footer .footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: #4da167;
}

.site-footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer .footer-links li {
    margin-bottom: 0.5rem;
}

.site-footer .footer-links a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.2s, padding-left 0.2s;
}

.site-footer .footer-links a:hover {
    color: #4da167;
    padding-left: 5px;
}

.site-footer .newsletter-form .form-control {
    border-radius: 0.5rem 0 0 0.5rem;
    border: none;
    background: rgba(255,255,255,0.1);
    color: white;
}

.site-footer .newsletter-form .form-control::placeholder {
    color: #adb5bd;
}

.site-footer .newsletter-form .btn-success {
    border-radius: 0 0.5rem 0.5rem 0;
    background: #4da167;
    border: none;
}

.site-footer .footer-bottom {
    font-size: 0.85rem;
}

/* ----- Avatar circle (logged-in user) ----- */
.avatar-circle {
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: background 0.2s;
}
.avatar-circle:hover {
    background: #4da167;
}
#userDropdown .avatar-circle {
    margin-right: 6px;
}

/* Make the logged-in user dropdown toggle look nicer */
#userDropdown {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

/* Dropdown item icons alignment */
.dropdown-item i {
    opacity: 0.6;
}

/* Search bar tweaks for smaller screens */
@media (max-width: 991.98px) {
    .navbar .search-box {
        margin-bottom: 1rem;
    }
}

/* Keyword tags under tool descriptions */
.keyword-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.keyword-tag {
    display: inline-block;
    background: #e9ecef;
    color: #495057;
    border-radius: 50px;
    padding: 0.15rem 0.65rem;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    transition: background 0.2s;
}

.keyword-tag:hover {
    background: #ced4da;
    color: #212529;
}

/* --- Tool card title --- */
.tool-card .card-title {
    font-size: 1.15rem;          /* slightly bigger */
    font-weight: 700;
    line-height: 1.3;
    color: #1e293b;
}

.tool-card .card-title a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Favicon inside the title */
.tool-card .card-title .favicon {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    flex-shrink: 0;
    object-fit: contain;
}

/* Details link inside tool card title */
.details-link {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6c757d;
    text-decoration: none;
    margin-left: 0.4rem;
    margin-right: 0.3rem;
    transition: color 0.2s;
    white-space: nowrap;
}
.details-link:hover {
    color: #4da167;
}


.title-right-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;   /* space between Details pill and external icon */
}

/* =========================================
   Premium Pill Breadcrumb
   ========================================= */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: 0.6rem 0.8rem;
    margin-bottom: 1.5rem;
    background: transparent;           /* no background box */
    list-style: none;
    border-radius: 0;
    box-shadow: none;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    margin-right: 0.25rem;
}

.breadcrumb-arrow {
    color: #adb5bd;
    font-size: 2rem;
    margin: 0 0.6rem;
    height: 32px;                 /* same as pill height */
    display: inline-flex;
    align-items: center;
    user-select: none;
    line-height: 1;
}

/* Pill links – soft gradient, rounded */
.breadcrumb-item a {
    display: inline-block;
    padding: 0.45rem 1.2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #495057;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.25s;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.breadcrumb-item a:hover {
    background: linear-gradient(135deg, #4da167 0%, #3d7a52 100%);
    color: #fff;
    border-color: #4da167;
    box-shadow: 0 3px 10px rgba(77,161,103,0.3);
    transform: translateY(-1px);
}

/* Active (current page) pill – solid but still rounded */
.breadcrumb-item.active {
    display: inline-block;
    padding: 0.45rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #4da167 0%, #3d7a52 100%);
    border-radius: 50px;
    border: 1px solid #4da167;
    box-shadow: 0 2px 6px rgba(77,161,103,0.2);
}

/* Arrow separator between items */
.breadcrumb-item + .breadcrumb-item::before {
    content: "▸";                     /* right-pointing triangle */
    color: #adb5bd;
    font-size: 1rem;
    padding: 0 0.35rem;
    display: inline-block;
    vertical-align: middle;
    background: none;
    font-weight: 400;
}

/* Remove Bootstrap's default divider padding hacks */
.breadcrumb-item::before {
    float: none !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
}

/* Mobile optimisation */
@media (max-width: 576px) {
    .breadcrumb-item a,
    .breadcrumb-item.active {
        padding: 0.35rem 0.9rem;
        font-size: 0.75rem;
    }
}
.breadcrumb-item a i,
.breadcrumb-item.active i {
    margin-right: 0.3rem;
    font-size: 0.9rem;
    vertical-align: -1px;
}
.search-box .nav-filter-pill {
    background: #f1f3f5;
    color: #495057;
    border: 1px solid #dee2e6;
    border-radius: 50px;                /* ← force pill shape */
}
.search-box .nav-filter-pill:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    color: #212529;
}
.search-box .nav-filter-pill.dropdown-toggle::after {
    border-top-color: #495057;
}
.search-box .nav-filter-pill {
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.filter-dropdown-menu .dropdown-item.active {
    background: #e9ecef;
    color: #4da167;
    font-weight: 600;
}
.filter-option.selected {
    background: #e9ecef;
    color: #4da167;
    font-weight: 600;
}

#authTabs .nav-link {
    border-radius: 50px;
    padding: 0.4rem 1.5rem;
    font-weight: 500;
    color: #6c757d;
}
#authTabs .nav-link.active {
    background: #4da167;
    color: #fff;
}

/* =========================================
   Beautiful header action buttons
   ========================================= */

/* Submit & Claim circles */
.nav-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50% !important;
    border: none !important;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #fff !important;
    position: relative;
    overflow: hidden;
    font-size: 1.25rem;
}
/* --- Submit button (yellow) --- */
.nav-icon-btn.btn-warning {
    background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
    box-shadow: 0 4px 10px rgba(245,158,11,0.35);
}

/* --- Claim / Update button (cyan) --- */
.nav-icon-btn.btn-info {
    background: linear-gradient(135deg, #22d3ee, #06b6d4) !important;
    box-shadow: 0 4px 10px rgba(6,182,212,0.35);
}

/* --- Login / Avatar button (blue) – used by both logged‑in avatar and logged‑out login --- */
.nav-icon-btn.login-avatar-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    box-shadow: 0 4px 10px rgba(59,130,246,0.35);
}

/* Remove Bootstrap’s default outline for the outline‑light class if any leftover */
.btn-outline-light {
    border: none !important;
	background-color: #616161;
}

/* Submit – green gradient */
.nav-icon-btn[href="pricing.php"] {
    background: linear-gradient(135deg, #4da167 0%, #3d7a52 100%) !important;
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(77,161,103,0.3);
}

/* Claim – soft purple/blue gradient */
.nav-icon-btn[href="claim-tool.php"] {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(99,102,241,0.3);
}

/* Hover lift effect */
.nav-icon-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.25) !important;
    filter: brightness(1.1);
    color: #fff !important;
}

/* Login / Sign Up pill */
.nav-login-btn {
    background: linear-gradient(135deg, #4da167 0%, #3d7a52 100%) !important;
    border: none !important;
    color: #fff !important;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(77,161,103,0.3);
    transition: all 0.3s ease;
}

.nav-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(77,161,103,0.45) !important;
    filter: brightness(1.05);
}

/* Icon alignment inside the circle */
.nav-icon-btn i {
    position: relative;
    z-index: 1;
}

#authTabs .nav-link.active {
    background: #4da167 !important;
    color: #fff !important;
    border-radius: 50px;
}
/* Login / Sign Up circle – soft blue gradient */
.nav-icon-btn.nav-login-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(59,130,246,0.35);
}

/* Dark form card */
.dark-form {
    background: #1e1e2f;        /* deep dark blue‑grey */
    color: #f0f0f0;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.dark-form .form-label {
    color: #ddd;
}

.dark-form .form-control,
.dark-form .form-select {
    background: #2a2a3c;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
}

.dark-form .form-control:focus,
.dark-form .form-select:focus {
    background: #2f2f42;
    color: #fff;
    border-color: #4da167;
    box-shadow: 0 0 0 0.2rem rgba(77,161,103,0.25);
}

.dark-form .form-text {
    color: #adb5bd;
}

.dark-form .btn {
    /* keep existing button styles – they already work */
}

/* Extra space at the bottom of the page container */
.page-spacer {
    padding-bottom: 4rem;       /* prevents form from hugging the footer */
}

.vote-btn.active {
    background-color: #4da167;
    color: white;
    border-color: #4da167;
}
.downvote.active {
    background-color: #dc3545;
    border-color: #dc3545;
}

/* Minimum card width */
.tool-card-col {
    min-width: 380px; 
	 max-width: 100%;
}

/* Ensure the row allows wrapping */
#tools-container.row {
    display: flex;
    flex-wrap: wrap;
}

.featured-highlight {
    background-color: #fffbf0;
    border-left: 4px solid #f59e0b;
}
.featured-badge {
    background-color: #f59e0b;
    color: #000;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 0.5rem;
}
/* Ad banner container */
.ad-banner {
    margin: 1.5rem 1rem;
    overflow: hidden;
}

/* Leaderboard banner (728x90) – full width on large screens */
.ad-banner-img.leaderboard {
    display: block;
    width: 100%;
    max-width: 728px;
    height: auto;
    margin: 0 auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    object-fit: contain;
}

/* If you ever add a sidebar placement (300x250), use this class */
.ad-banner-img.rectangle {
    max-width: 300px;
}

/* Text-only ad */
.ad-banner-text {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.25rem;
    color: #212529;
}

.pricing-filter-wrapper .btn-outline-light {
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.pricing-filter-wrapper .btn-outline-light:hover {
  background: rgba(255,255,255,0.1);
}
.pricing-filter-wrapper .badge.bg-warning {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
}
.pricing-filter-wrapper .remove-pricing-badge:hover {
  opacity: 1 !important;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
}

.parent-title-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    text-decoration: none;
    width: 100%;
}
.parent-title-link:hover .parent-title {
  background-color: #e9ecef; /* or any subtle highlight */
}

.trend-up {
    font-size: 1.4rem;
    font-weight: bold;
}
.trend-down {
    font-size: 1.4rem;
    font-weight: bold;
}
.trend-none {
    font-size: 1.2rem;
}

.badge.bg-light.text-dark {
    background-color: #fff3e0 !important;
    color: #e65100 !important;
    border: 1px solid #ffcc80;
}

.login-avatar-btn {
    background-color: #4da167;
    border: 2px solid #fff;
    transition: all 0.2s;
}
.login-avatar-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 12px rgba(77, 161, 103, 0.4);
}

.parent-card-clickable {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.parent-card-clickable:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}