/* ============================================
   REDRAG Tools — Hub Page Specific Styles
   Only styles not covered by shared framework
   Version: 2.0.0 (Phase 8)
   ============================================ */

/* CTA Section */
.hub-cta {
  text-align: center;
  padding: 100px var(--rt-space-5);
  position: relative;
  overflow: hidden;
}

.hub-cta__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, color-mix(in srgb, var(--rt-primary) 8%, transparent) 0%, transparent 70%);
  pointer-events: none;
}

.hub-cta__title {
  font-size: var(--rt-text-h2);
  margin-bottom: var(--rt-space-3);
  position: relative;
}

.hub-cta__desc {
  font-size: var(--rt-text-body-lg);
  color: var(--rt-text-secondary);
  max-width: 500px;
  margin: 0 auto var(--rt-space-6);
  position: relative;
}

/* Search and Filters */
.rt-tools-controls {
  margin-bottom: var(--rt-space-5);
  display: flex;
  flex-direction: column;
  gap: var(--rt-space-4);
  align-items: center;
}

.rt-search-box {
  position: relative;
  width: 100%;
  max-width: 600px;
}

.rt-search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--rt-text-muted);
  pointer-events: none;
}

.rt-search-input {
  width: 100%;
  padding: 18px 24px 18px 56px;
  background: var(--rt-bg-elevated);
  border: 1px solid var(--rt-border-default);
  border-radius: 50px;
  color: var(--rt-text-primary);
  font-size: 16px;
  font-family: inherit;
  outline: none;
  transition: var(--rt-transition);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

html[data-theme="dark"] .rt-search-input {
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.rt-search-input:focus {
  border-color: var(--rt-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--rt-primary) 20%, transparent);
}

.rt-search-input::placeholder {
  color: var(--rt-text-muted);
}

.rt-filter-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  padding-bottom: 8px; /* For scrollbar breathing room if visible */
}

.rt-filter-scroll::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.rt-filter-chips {
  display: flex;
  gap: 12px;
  justify-content: center;
  min-width: max-content;
  margin: 0 auto;
}

.rt-chip {
  background: var(--rt-bg-elevated);
  border: 1px solid var(--rt-border-default);
  color: var(--rt-text-secondary);
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--rt-transition);
  outline: none;
  white-space: nowrap;
}

.rt-chip:hover {
  border-color: var(--rt-text-muted);
  color: var(--rt-text-primary);
}

.rt-chip:focus-visible {
  border-color: var(--rt-primary);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--rt-primary) 30%, transparent);
}

.rt-chip[aria-selected="true"] {
  background: var(--rt-primary);
  border-color: var(--rt-primary);
  color: white;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--rt-primary) 30%, transparent);
}

/* Tool cards on hub */
.hub-tool-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.hub-tool-card--soon {
  opacity: 0.55;
  cursor: default;
}

.hub-tool-card--soon:hover {
  border-color: var(--rt-border-default);
  transform: none;
  box-shadow: none;
  background: var(--rt-bg-card);
}

.hub-tool-arrow {
  position: absolute;
  top: 32px;
  right: 32px;
  width: 36px;
  height: 36px;
  background: var(--rt-bg-elevated);
  border: 1px solid var(--rt-border-default);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--rt-text-muted);
  transition: var(--rt-transition);
  opacity: 0;
  transform: translateX(-8px);
}

.hub-tool-card:hover .hub-tool-arrow {
  opacity: 1;
  transform: translateX(0);
  background: var(--rt-primary);
  border-color: var(--rt-primary);
  color: white;
}

/* Responsive */
@media (max-width: 768px) {
  .hub-cta {
    padding: 60px var(--rt-space-4);
  }
  .hub-tool-arrow {
    display: none;
  }
}


/* ==========================================
   PAGINATION
   ========================================== */
.rt-pagination {
  margin-top: var(--rt-space-8);
}
.rt-page-btn {
  background: var(--rt-surface-variant);
  color: var(--rt-text-secondary);
  border: 1px solid var(--rt-border-default);
  border-radius: var(--rt-radius-sm);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.rt-page-btn:hover:not(:disabled) {
  background: var(--rt-surface-hover);
  color: var(--rt-text-primary);
  border-color: var(--rt-border-hover);
}
.rt-page-btn--active {
  background: var(--rt-accent-primary);
  color: #fff;
  border-color: var(--rt-accent-primary);
}
.rt-page-btn--active:hover:not(:disabled) {
  background: var(--rt-accent-primary);
}
.rt-page-btn--disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
/* ==========================================
   TOOL THUMBNAILS
   ========================================== */
.rt-tool-thumb {
  height: 150px;
  margin: -24px -24px 20px -24px;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  background: var(--rt-surface-variant);
  border-bottom: 1px solid var(--rt-border-default);
  position: relative;
}
.rt-tool-thumb::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10,10,10,0.8) 100%);
  pointer-events: none;
}
.rt-tool-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: opacity 0.3s ease, transform 0.5s ease;
}
.rt-card--hover:hover .rt-tool-thumb img {
  opacity: 1;
  transform: scale(1.05);
}
