/* ==========================================================================
   MINHTRANCMS - AGENCY & WEB DESIGN THEME STYLES
   ========================================================================== */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #60a5fa;
  --primary-50: #eff6ff;
  --accent: #10b981;
  --accent-dark: #059669;
  --dark-900: #0f172a;
  --dark-800: #1e293b;
  --dark-700: #334155;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --border-color: #e2e8f0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Smooth Transitions */
* {
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #334155;
  background-color: #f8fafc;
  overflow-x: hidden;
}

.heading-font {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
}

/* Gradient Texts */
.text-gradient-primary {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-emerald {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glowing Elements */
.glow-primary {
  box-shadow: 0 0 25px -5px rgba(37, 99, 235, 0.3);
}

.glow-emerald {
  box-shadow: 0 0 25px -5px rgba(16, 185, 129, 0.3);
}

/* Card Hover Elevation */
.card-elevated {
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #e2e8f0;
}
.card-elevated:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 30px -10px rgba(15, 23, 42, 0.1), 0 10px 15px -5px rgba(15, 23, 42, 0.04);
  border-color: #cbd5e1;
}

/* Browser Mockup Window */
.browser-mockup {
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
  transition: all 0.35s ease;
}
.browser-mockup:hover {
  box-shadow: 0 20px 35px -8px rgba(37, 99, 235, 0.15);
  border-color: #93c5fd;
}

.browser-header {
  background: #f1f5f9;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid #e2e8f0;
}

.browser-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}
.browser-dot.red { background: #ef4444; }
.browser-dot.yellow { background: #f59e0b; }
.browser-dot.green { background: #10b981; }

.browser-address-bar {
  flex: 1;
  background: #ffffff;
  border-radius: 6px;
  padding: 2px 10px;
  font-size: 11px;
  color: #64748b;
  margin-left: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 1px solid #e2e8f0;
}

/* Long Screenshot Hover Auto-Scroll */
.mockup-preview-container {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: #f8fafc;
}

.mockup-preview-image {
  width: 100%;
  display: block;
  transition: transform 4.5s cubic-bezier(0.25, 1, 0.5, 1);
  transform: translateY(0);
}

.mockup-card:hover .mockup-preview-image {
  transform: translateY(calc(-100% + 280px));
}

/* Detail Page Long Preview */
.detail-preview-container {
  position: relative;
  width: 100%;
  max-height: 650px;
  overflow-y: auto;
  border-radius: 8px;
  background: #f8fafc;
}

/* Floating Badges Animation */
@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

.animate-float {
  animation: floatSlow 4s ease-in-out infinite;
}

.animate-float-delayed {
  animation: floatSlow 4s ease-in-out 2s infinite;
}

/* Pulse Ripple Animation */
@keyframes pulseRing {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 14px rgba(37, 99, 235, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
  }
}

.pulse-ring-blue {
  animation: pulseRing 2s infinite;
}

@keyframes pulseRingGreen {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 14px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.pulse-ring-green {
  animation: pulseRingGreen 2s infinite;
}

/* Glassmorphism */
.glass-nav {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.glass-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

/* Shimmer Highlight Effect */
.shimmer-btn {
  position: relative;
  overflow: hidden;
}
.shimmer-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 20%,
    rgba(255, 255, 255, 0.25) 50%,
    transparent 80%
  );
  transform: rotate(30deg);
  animation: shimmerMove 3.5s infinite;
}

@keyframes shimmerMove {
  0% {
    transform: translateX(-100%) rotate(30deg);
  }
  100% {
    transform: translateX(100%) rotate(30deg);
  }
}

/* Category Sidebar Item Active */
.cat-item-active {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* Modal and Backdrop */
.search-modal-backdrop {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
}
