/* ═══════════════════════════════════════════
   TEMPLATES PAGE - DEDICATED STYLES
   ═══════════════════════════════════════════ */

/* SCROLL PROGRESS */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #1d4ed8);
  width: 0%;
  z-index: 1001;
  transition: width 0.1s ease;
}

/* TEMPLATES HERO SECTION */
.templates-hero-section {
  position: relative;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  padding-top: 144px;
  background: rgb(30, 41, 59);
  overflow: hidden;
  margin-top: 24px;
}

.templates-hero-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(37, 99, 235, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.templates-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.templates-hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  width: 100%;
}

.templates-hero-title {
  font-size: clamp(42px, 6vw, 64px);
  font-weight: 800;
  color: white;
  margin: 0;
  line-height: 1.2;
}

.templates-hero-subtitle {
  font-size: clamp(16px, 2.5vw, 20px);
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  max-width: 700px;
  line-height: 1.6;
}

.templates-search-wrapper {
  width: 100%;
  max-width: 600px;
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

.templates-search-container {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: rgb(30, 41, 59);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  width: 100%;
}

.templates-search-container:focus-within {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.25);
}

.templates-search-container svg {
  width: 20px;
  height: 20px;
  color: #fff;
  flex-shrink: 0;
}

.templates-search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 16px;
  color: white;
  outline: none;
  font-family: inherit;
}

.templates-search-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

/* TEMPLATES MAIN SECTION */
.templates-main-section {
  padding: 80px 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
}

.templates-tabs-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 60px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.templates-tabs-wrapper::-webkit-scrollbar {
  display: none;
}

.templates-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.templates-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #4b5563;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.templates-tab:hover {
  border-color: #2563eb;
  color: #2563eb;
}

.templates-tab.active {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-color: #2563eb;
  color: white;
}

.tab-label {
  display: inline-block;
}

/* TEMPLATES GRID */
.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
  margin-bottom: 60px;
}

/* TEMPLATE CARD */
.template-card {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(8, 15, 30, 0.06);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(37, 99, 235, 0.05);
}

.template-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(8, 15, 30, 0.1);
}

.template-icon-container {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  background: linear-gradient(135deg, #f0f9ff 0%, #eff6ff 100%);
  border-bottom: 1px solid #e2e8f0;
  overflow: hidden;
}

.template-preview-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.template-preview {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0f9ff 0%, #eff6ff 100%);
}

.template-preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.template-card:hover .template-preview-image {
  transform: scale(1.05);
}

.template-icon {
  font-size: 48px;
  display: inline-block;
}

.template-content {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.template-badge {
  display: inline-block;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 6px;
  width: fit-content;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.template-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 8px;
  line-height: 1.3;
}

.template-description {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
  margin: 0 0 16px;
  flex: 1;
}

.template-meta {
  display: flex;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 16px;
}

.template-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.template-meta-item svg {
  width: 14px;
  height: 14px;
}

.template-download {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.template-downloads {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.template-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: #f1f5f9;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
}

.template-download-btn:hover {
  background: #e2e8f0;
  border-color: #2563eb;
  color: #2563eb;
  transform: translateY(-2px);
}

.template-download-btn.primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-color: #2563eb;
  color: white;
}

.template-download-btn.primary:hover {
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.template-download-btn svg {
  width: 14px;
  height: 14px;
}

/* EMPTY STATE */
.templates-empty {
  text-align: center;
  padding: 60px 20px;
  grid-column: 1 / -1;
}

.empty-icon {
  font-size: 64px;
  margin-bottom: 16px;
}

.templates-empty h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 12px;
}

.templates-empty p {
  font-size: 16px;
  color: #64748b;
  margin: 0;
}

/* CTA SECTION */
.templates-cta-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
}

.templates-cta-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

.templates-cta-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  color: var(--navy);
  margin: 0;
  line-height: 1.3;
}

.templates-cta-subtitle {
  font-size: clamp(15px, 2vw, 18px);
  color: #64748b;
  margin: 0;
  line-height: 1.6;
  max-width: 700px;
}

.templates-cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
}

.templates-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.templates-cta-btn.primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
}

.templates-cta-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.templates-cta-btn.secondary {
  background: transparent;
  color: #2563eb;
  border-color: #2563eb;
}

.templates-cta-btn.secondary:hover {
  background: #2563eb;
  color: white;
  transform: translateY(-2px);
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
  .templates-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .templates-tabs {
    gap: 8px;
  }

  .templates-tab {
    padding: 8px 16px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .templates-hero-section {
    padding: 60px 16px;
    padding-top: 120px;
    min-height: 400px;
  }

  .templates-hero-title {
    font-size: 32px;
  }

  .templates-hero-subtitle {
    font-size: 14px;
  }

  .templates-search-wrapper {
    margin-top: 12px;
  }

  .templates-search-container {
    padding: 12px 16px;
  }

  .templates-search-input {
    font-size: 14px;
  }

  .template-card {
    border-radius: 12px;
  }

  .templates-cta-section {
    padding: 60px 16px;
  }

  .template-downloads {
    flex-direction: column;
  }

  .template-download-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── ANIMATED NAVBAR LOGO ── */
.nav-logo-text {
  display: inline-block !important;
  min-width: 120px !important;
  height: auto !important;
  overflow: visible !important;
  vertical-align: middle !important;
}

.nav-logo-animated {
  display: none !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  letter-spacing: -.05em !important;
  color: #0a1628 !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  animation: none !important;
}

.nav-logo-animated.active {
  display: inline-block !important;
  animation: fadeInUp 0.5s ease !important;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ═══════════════════════════════════════════
   Blog Download Button Styles
   ═══════════════════════════════════════════ */

.blog-download-btn {
  background: linear-gradient(135deg, #0f1f4b, #1e3a8a);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
  box-shadow: 0 2px 8px rgba(15, 31, 75, 0.15);
}

.blog-download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 31, 75, 0.25);
}

.blog-download-btn:active {
  transform: translateY(0);
}

.blog-download-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}
