/* ============================================
   PREMIUM CARDS - Black/Orange Brutalist Theme
   Vibrant crypto platform design
   ============================================ */

/* Card Container - Dark Grey with Orange Border */
.platform-card-final {
  background: #1a1a1a;
  border: 1.5px solid #333333;
  border-radius: 20px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: all 0.45s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: visible;
  flex: 0 0 350px;
  min-width: 350px;
  height: auto;
  min-height: 500px;
  scroll-snap-align: center;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 4px 16px rgba(0, 0, 0, 0.5),
    0 8px 32px rgba(0, 0, 0, 0.3);
}

.platform-card-final::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1.5px;
  background: linear-gradient(135deg,
    rgba(255, 165, 0, 0.15) 0%,
    rgba(255, 140, 0, 0.1) 50%,
    rgba(255, 165, 0, 0.05) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.platform-card-final:hover {
  border-color: #FFA500;
  transform: translateY(-6px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 8px 24px rgba(0, 0, 0, 0.4),
    0 16px 48px rgba(255, 165, 0, 0.2),
    0 0 80px rgba(255, 165, 0, 0.12);
}

.platform-card-final:hover::before {
  opacity: 1;
}

/* Logo Container - Orange Accent Depth */
.card-logo-container {
  width: 96px;
  height: 96px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  border-radius: 18px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(255, 107, 53, 0.15);
  box-shadow:
    0 0 0 1px rgba(255, 107, 53, 0.08) inset,
    0 4px 16px rgba(255, 107, 53, 0.08),
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
  transition: all 0.45s cubic-bezier(0.23, 1, 0.32, 1);
  flex-shrink: 0;
  position: relative;
}

.card-logo-container::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 18px;
  background: linear-gradient(135deg,
    rgba(255, 107, 53, 0.25) 0%,
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.platform-card-final:hover .card-logo-container {
  transform: translateY(-2px) scale(1.03);
  border-color: rgba(255, 107, 53, 0.35);
  box-shadow:
    0 0 0 1px rgba(255, 107, 53, 0.2) inset,
    0 6px 20px rgba(255, 107, 53, 0.2),
    0 12px 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.12);
}

.platform-card-final:hover .card-logo-container::after {
  opacity: 1;
}

.card-logo-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

/* Card Title - Bold White Typography */
.card-final-title {
  font-size: 24px;
  font-weight: 600;
  color: #ffffff;
  text-align: center;
  margin: 0 0 16px;
  line-height: 1.3;
  letter-spacing: 0.3px;
  background: linear-gradient(135deg,
    #ffffff 0%,
    rgba(255, 255, 255, 0.92) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
}

/* Card Description - Light Grey Readability */
.card-final-description {
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  color: #B0B0B0;
  text-align: center;
  flex: 1;
  margin: 0 0 28px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  letter-spacing: 0.2px;
}

/* Light Theme - WHITE text on CYAN background for visibility */
[data-theme="light"] .card-final-title {
  color: #ffffff !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .card-final-description {
  color: #ffffff !important;
  opacity: 0.95 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

/* Light Theme - Button adjustments for cyan card background */
[data-theme="light"] .card-final-btn-primary {
  background: #ffffff !important;
  color: #00ffb3 !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.3) !important;
}

[data-theme="light"] .card-final-btn-primary:hover {
  background: rgba(255, 255, 255, 0.95) !important;
  color: #00cc8f !important;
  box-shadow: 0 6px 24px rgba(255, 255, 255, 0.4) !important;
}

[data-theme="light"] .card-final-btn-secondary {
  background: transparent !important;
  color: #ffffff !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .card-final-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2) !important;
}

/* Buttons Container - Perfect Spacing */
.card-final-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
}

/* Button Base - Vibrant Interaction */
.card-final-btn {
  width: 100%;
  padding: 14px 24px;
  border-radius: 11px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  position: relative;
  white-space: nowrap;
  overflow: hidden;
}

.card-final-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 11px;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
}

.card-final-btn:hover::before {
  opacity: 1;
}

/* Primary Button - Orange Gradient */
.card-final-btn-primary {
  background: linear-gradient(135deg, #FFA500 0%, #FF8C00 100%);
  color: #000000;
  box-shadow:
    0 4px 16px rgba(255, 165, 0, 0.4),
    0 1px 0 rgba(255, 255, 255, 0.2) inset;
  position: relative;
  overflow: hidden;
}

.card-final-btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.card-final-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 6px 24px rgba(255, 165, 0, 0.6),
    0 1px 0 rgba(255, 255, 255, 0.3) inset,
    0 0 40px rgba(255, 165, 0, 0.3);
  filter: brightness(1.12);
}

.card-final-btn-primary:hover::after {
  left: 100%;
}

.card-final-btn-primary:active {
  transform: translateY(-1px);
  box-shadow:
    0 4px 16px rgba(255, 165, 0, 0.45),
    0 1px 0 rgba(255, 255, 255, 0.2) inset;
}

/* Secondary Button - Transparent with White Border */
.card-final-btn-secondary {
  background: transparent;
  border: 2px solid #FFFFFF;
  color: #FFFFFF;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 2px 8px rgba(0, 0, 0, 0.2);
}

.card-final-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 4px 16px rgba(255, 255, 255, 0.15),
    0 8px 32px rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

.card-final-btn-secondary:active {
  transform: translateY(0);
  background: rgba(255, 255, 255, 0.08);
}

/* Responsive - Mobile Optimization */
@media (max-width: 480px) {
  .platform-card-final {
    padding: 28px 24px;
    min-height: 480px;
  }

  .card-logo-container {
    width: 84px;
    height: 84px;
    padding: 18px;
    margin-bottom: 20px;
  }

  .card-final-title {
    font-size: 21px;
    margin-bottom: 14px;
  }

  .card-final-description {
    font-size: 13px;
    margin-bottom: 24px;
    -webkit-line-clamp: 3;
  }

  .card-final-btn {
    padding: 12px 20px;
    font-size: 12.5px;
  }
}

/* Horizontal Carousel Layout for Cards */
.cards-final-grid {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 24px;
  padding: 24px 20px;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

/* Orange Scrollbar */
.cards-final-grid::-webkit-scrollbar {
  height: 6px;
}

.cards-final-grid::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  margin: 0 20px;
}

.cards-final-grid::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #FF6B35, #FF8C42);
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(255, 107, 53, 0.4);
}

.cards-final-grid::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #FF8C42, #FF6B35);
  box-shadow: 0 0 15px rgba(255, 107, 53, 0.6);
}

/* Mobile - One Card Per View */
@media (max-width: 768px) {
  .platform-card-final {
    flex: 0 0 85%;
    min-width: 85%;
  }

  .cards-final-grid {
    gap: 16px;
    padding: 20px 16px;
  }
}

/* Accessibility - Orange Focus States */
.card-final-btn:focus-visible {
  outline: 2px solid #FF6B35;
  outline-offset: 3px;
  box-shadow:
    0 0 0 4px rgba(255, 107, 53, 0.25),
    0 6px 24px rgba(255, 107, 53, 0.5);
}

/* ============================================
   CAROUSEL NAVIGATION - Orange Controls
   ============================================ */

.carousel-navigation,
.featured-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}

.carousel-arrow,
.carousel-arrow-left,
.carousel-arrow-right,
.featured-arrow,
.featured-arrow-left,
.featured-arrow-right {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg,
    rgba(255, 107, 53, 0.12) 0%,
    rgba(255, 140, 66, 0.08) 100%
  );
  border: 1.5px solid rgba(255, 107, 53, 0.3);
  color: #FF6B35;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 0 0 1px rgba(255, 107, 53, 0.1) inset,
    0 4px 12px rgba(0, 0, 0, 0.3);
}

.carousel-arrow:hover,
.carousel-arrow-left:hover,
.carousel-arrow-right:hover,
.featured-arrow:hover,
.featured-arrow-left:hover,
.featured-arrow-right:hover {
  background: linear-gradient(135deg,
    rgba(255, 107, 53, 0.2) 0%,
    rgba(255, 140, 66, 0.15) 100%
  );
  border-color: rgba(255, 107, 53, 0.5);
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(255, 107, 53, 0.15) inset,
    0 6px 20px rgba(255, 107, 53, 0.3),
    0 0 40px rgba(255, 107, 53, 0.15);
}

.carousel-arrow:active,
.carousel-arrow-left:active,
.carousel-arrow-right:active,
.featured-arrow:active,
.featured-arrow-left:active,
.featured-arrow-right:active {
  transform: translateY(0);
  box-shadow:
    0 0 0 1px rgba(255, 107, 53, 0.12) inset,
    0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Scroll Indicators (Dots) - Orange Accent */
/* HIDE scroll indicators - only keep arrows */
.scroll-indicator {
  display: none !important;
}

.scroll-dot {
  display: none !important;
}

.scroll-dot.active {
  display: none !important;
}

@media (max-width: 768px) {
  .carousel-arrow,
  .carousel-arrow-left,
  .carousel-arrow-right,
  .featured-arrow,
  .featured-arrow-left,
  .featured-arrow-right {
    width: 44px;
    height: 44px;
    font-size: 16px;
    border-radius: 10px;
  }

  .carousel-navigation,
  .featured-navigation {
    margin-top: 20px;
    gap: 12px;
  }

  .scroll-dot {
    display: none !important;
  }

  .scroll-dot.active {
    display: none !important;
  }
}
