/* ========================================
   FEATURED FILE CONVERTERS SECTION
======================================== */
.featured-converters-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .featured-converters-section {
  background: linear-gradient(135deg, #4a5fb8 0%, #5a3a7a 100%);
}

.featured-converters-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.featured-converters-section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 50px;
  position: relative;
  z-index: 1;
}

.featured-converters-section .section-title h2 {
  color: white;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.featured-converters-section .section-title h2 i {
  color: rgba(255, 255, 255, 0.9);
  margin-right: 15px;
  animation: rotateIcon 3s ease-in-out infinite;
}

@keyframes rotateIcon {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-10deg); }
  75% { transform: rotate(10deg); }
}

.featured-converters-section .section-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
}

.featured-converters-section .view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.featured-converters-section .view-all-link:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.featured-converters-section .view-all-link i {
  transition: transform 0.3s ease;
}

.featured-converters-section .view-all-link:hover i {
  transform: translateX(5px);
}

.featured-converters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

.converter-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 30px;
  text-decoration: none;
  color: inherit;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

[data-theme="dark"] .converter-card {
  background: rgba(30, 35, 50, 0.9);
  border-color: rgba(255, 255, 255, 0.1);
}

.converter-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.converter-card:hover::before {
  opacity: 1;
}

.converter-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 0 0 2px rgba(102, 126, 234, 0.5);
}

[data-theme="dark"] .converter-card:hover {
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 0 2px rgba(102, 126, 234, 0.3);
}

.converter-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 25px;
  position: relative;
  z-index: 1;
}

.converter-icon .icon-from,
.converter-icon .icon-to {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  transition: all 0.4s ease;
}

.converter-icon .icon-arrow {
  font-size: 1.5rem;
  color: #667eea;
  animation: arrowBounce 2s ease-in-out infinite;
}

@keyframes arrowBounce {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}

.converter-card:hover .converter-icon .icon-arrow {
  animation-play-state: paused;
  transform: translateX(8px) scale(1.2);
}

/* Color schemes for different converters */
.pdf-to-docx .icon-from {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
  color: white;
}

.pdf-to-docx .icon-to {
  background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
  color: white;
}

.pdf-to-image .icon-from {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
  color: white;
}

.pdf-to-image .icon-to {
  background: linear-gradient(135deg, #ffd93d 0%, #f9ca24 100%);
  color: white;
}

.word-to-pdf .icon-from {
  background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
  color: white;
}

.word-to-pdf .icon-to {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
  color: white;
}

.excel-to-pdf .icon-from {
  background: linear-gradient(135deg, #51cf66 0%, #37b24d 100%);
  color: white;
}

.excel-to-pdf .icon-to {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
  color: white;
}

.pdf-to-text .icon-from {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
  color: white;
}

.pdf-to-text .icon-to {
  background: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 100%);
  color: white;
}

.ppt-to-pdf .icon-from {
  background: linear-gradient(135deg, #fd79a8 0%, #e84393 100%);
  color: white;
}

.ppt-to-pdf .icon-to {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
  color: white;
}

.converter-card:hover .icon-from {
  transform: rotate(-5deg) scale(1.1);
}

.converter-card:hover .icon-to {
  transform: rotate(5deg) scale(1.1);
}

.converter-info {
  position: relative;
  z-index: 1;
}

.converter-info h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.converter-info p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.converter-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.converter-badge i {
  font-size: 0.8rem;
}

/* Different badge colors */
.converter-card:nth-child(1) .converter-badge {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
}

.converter-card:nth-child(2) .converter-badge {
  background: linear-gradient(135deg, #ffd93d 0%, #f9ca24 100%);
  color: #333;
}

.converter-card:nth-child(3) .converter-badge {
  background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
}

.converter-card:nth-child(4) .converter-badge {
  background: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 100%);
}

.converter-card:nth-child(5) .converter-badge {
  background: linear-gradient(135deg, #fd79a8 0%, #e84393 100%);
}

.converter-card:nth-child(6) .converter-badge {
  background: linear-gradient(135deg, #51cf66 0%, #37b24d 100%);
}

.converter-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  padding: 0;
  background: transparent;
  border: none;
  position: relative;
  z-index: 1;
  margin-top: 40px;
}

.converter-stats .stat-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: white;
  padding: 15px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
}

[data-theme="dark"] .converter-stats .stat-item {
  background: rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 0.1);
}

.converter-stats .stat-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.converter-stats .stat-item i {
  font-size: 1.5rem;
  opacity: 0.9;
}

.converter-stats .stat-info strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 3px;
}

.converter-stats .stat-info span {
  font-size: 0.75rem;
  opacity: 0.85;
  white-space: nowrap;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .featured-converters-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .featured-converters-section {
    padding: 60px 0;
  }

  .featured-converters-section .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .featured-converters-section .section-title h2 {
    font-size: 2rem;
  }

  .featured-converters-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .converter-card {
    padding: 25px;
  }

  .converter-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0;
  }

  .converter-stats .stat-item {
    flex-direction: column;
    text-align: center;
    gap: 8px;
    padding: 12px;
  }

  .converter-stats .stat-item i {
    font-size: 1.3rem;
  }

  .converter-stats .stat-info strong {
    font-size: 1rem;
  }
  
  .converter-stats .stat-info span {
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .featured-converters-section .section-title h2 {
    font-size: 1.6rem;
  }

  .featured-converters-section .section-subtitle {
    font-size: 0.95rem;
  }

  .converter-icon .icon-from,
  .converter-icon .icon-to {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .converter-icon .icon-arrow {
    font-size: 1.2rem;
  }

  .converter-info h3 {
    font-size: 1.2rem;
  }

  .converter-info p {
    font-size: 0.9rem;
  }

  .converter-stats {
    grid-template-columns: 1fr;
  }
}

