/* DocShift - Premium Multi-Mode & Bento Grid Engine (TinyWow Replica)
 * Crafted with ❤️ by Usama Bhatti
 */

/* Hide scrollbars for overflow tabs */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Rotating Hero Word Pill (TinyWow Exact Magenta/Rose Pill) */
.rotating-badge {
  background-color: #e11d48;
  color: #ffffff;
  padding: 0.15rem 0.95rem;
  border-radius: 1rem;
  display: inline-block;
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(225, 29, 72, 0.35);
  transition: all 0.25s ease;
}

/* Hero 5 Category Bento Cards */
.hero-cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 1.25rem;
  overflow: hidden;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  min-height: 160px;
}

.hero-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.25);
}

.hero-cat-top {
  padding: 1.25rem 1.25rem 0.75rem 1.25rem;
}

.hero-cat-strip {
  background: rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(4px);
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 600;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Category Filter Pills (Sub-nav) */
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  background-color: transparent;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.dark .filter-pill {
  color: #94a3b8;
}

.filter-pill:hover {
  color: #0f172a;
  background-color: #f1f5f9;
}

.dark .filter-pill:hover {
  color: #ffffff;
  background-color: #1e293b;
}

.filter-pill.active {
  color: #ffffff !important;
  background-color: #2563eb !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
}

/* Top Nav Category Buttons */
.nav-cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  border-radius: 0.65rem;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.15s ease;
  cursor: pointer;
}

.nav-cat-btn:hover {
  background-color: #f1f5f9;
  color: #2563eb;
}

.dark .nav-cat-btn:hover {
  background-color: #1e293b;
  color: #60a5fa;
}

/* Tool Bento Card (Exact TinyWow UI Layout) */
.tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  background-color: #ffffff;
  border: 1px solid #eef2f6;
  border-radius: 1.25rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.dark .tool-card {
  background-color: #131d33;
  border-color: #1e293b;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.tool-card:hover {
  transform: translateY(-3px);
  border-color: #93c5fd;
  box-shadow: 0 12px 24px -6px rgba(37, 99, 235, 0.12);
}

.dark .tool-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 14px 28px -6px rgba(0, 0, 0, 0.55);
}

/* Card Header: Icon on Left, Title & Category on Right */
.tool-card-header {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 0.65rem;
}

.tool-icon-box {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.tool-card:hover .tool-icon-box {
  transform: scale(1.06);
}

.tool-header-content {
  min-width: 0;
  flex: 1;
}

.tool-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dark .tool-title {
  color: #f8fafc;
}

.tool-category-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: block;
  margin-top: 0.2rem;
}

.tool-desc {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.45;
  flex-grow: 1;
}

.dark .tool-desc {
  color: #94a3b8;
}

/* Floating Scroll to Top Button (TinyWow exact) */
#scrollToTopBtn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  background-color: #2563eb;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
  cursor: pointer;
  z-index: 40;
  transition: all 0.25s ease;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

#scrollToTopBtn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#scrollToTopBtn:hover {
  background-color: #1d4ed8;
  transform: translateY(-2px);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

.animate-fade-in {
  animation: fadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Checkerboard Pattern for Transparent Image Mockup */
.checkerboard-bg {
  background-color: #f1f5f9;
  background-image: linear-gradient(45deg, #e2e8f0 25%, transparent 25%), 
                    linear-gradient(-45deg, #e2e8f0 25%, transparent 25%), 
                    linear-gradient(45deg, transparent 75%, #e2e8f0 75%), 
                    linear-gradient(-45deg, transparent 75%, #e2e8f0 75%);
  background-size: 12px 12px;
  background-position: 0 0, 0 6px, 6px -6px, -6px 0px;
}

.dark .checkerboard-bg {
  background-color: #0f172a;
  background-image: linear-gradient(45deg, #1e293b 25%, transparent 25%), 
                    linear-gradient(-45deg, #1e293b 25%, transparent 25%), 
                    linear-gradient(45deg, transparent 75%, #1e293b 75%), 
                    linear-gradient(-45deg, transparent 75%, #1e293b 75%);
}

/* Mockup preview frame */
.mockup-preview-box {
  height: 8.5rem;
  border-radius: 0.85rem;
  overflow: hidden;
  position: relative;
  border: 1px solid #e2e8f0;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
}

.dark .mockup-preview-box {
  border-color: #334155/60;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* Carousel scroll track */
#flagshipCarousel {
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}
#flagshipCarousel > div {
  scroll-snap-align: start;
}
