/* ===== MODERN GAMES & SOFTWARE DESIGN ===== */

/* Games Section - Full width of parent container */
.uac-games {
  margin: 32px 0;
  width: 100% !important;
  max-width: 100% !important;
}

.uac-games .uac-section-head {
  font-size: 20px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 20px;
}

/* Remove carousel wrapper - full width */
.uac-games .gcarousel {
  width: 100% !important;
  max-width: 100% !important;
}

.uac-games .gviewport {
  width: 100% !important;
  max-width: 100% !important;
}

/* Auto-fill grid - smaller gaps */
.uac-games .gtrack {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
  gap: 8px !important;
  padding: 0 !important;
  width: 100% !important;
}
}

.uac-games .gslide {
  width: 100% !important;
}

/* Game Card - Modern beautiful design */
.uac-games .gcard {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 10px !important;
  padding: 14px 16px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 12px !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  cursor: pointer !important;
  min-height: 56px !important;
  height: 56px !important;
  position: relative !important;
  overflow: hidden !important;
}

.uac-games .gcard::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 3px !important;
  height: 100% !important;
  background: linear-gradient(180deg, #3b82f6 0%, #8b5cf6 100%) !important;
  opacity: 0 !important;
  transition: opacity 0.25s !important;
}

.uac-games .gcard:hover {
  background: #ffffff !important;
  border-color: #3b82f6 !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15), 0 0 0 1px rgba(59, 130, 246, 0.1) !important;
  transform: translateY(-2px) !important;
}

.uac-games .gcard:hover::before {
  opacity: 1 !important;
}

.uac-games .gslide.off .gcard {
  opacity: 0.5;
  cursor: not-allowed;
}

.uac-games .gslide.off .gcard:hover {
  transform: none !important;
  border-color: #cbd5e1 !important;
}

/* Icon - saturated and clear */
.uac-games .gicon {
  width: 32px !important;
  height: 32px !important;
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #475569 !important;
  filter: saturate(1.1) !important;
}

.uac-games .gcard:hover .gicon {
  color: #3b82f6 !important;
  transform: scale(1.05) !important;
  transition: all 0.25s !important;
}

.uac-games .gicon svg {
  width: 100% !important;
  height: 100% !important;
  shape-rendering: crispEdges !important;
}

.uac-games .gicon img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  image-rendering: -webkit-optimize-contrast !important;
  image-rendering: crisp-edges !important;
}

.uac-games .gicon .svgwrap {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}

.uac-games .gicon .svgwrap svg {
  width: 100% !important;
  height: 100% !important;
  shape-rendering: crispEdges !important;
}

/* Title - saturated and bold */
.uac-games .gtitle {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #334155 !important;
  text-align: left !important;
  line-height: 1.2 !important;
  flex: 1 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  text-rendering: optimizeLegibility !important;
  transition: color 0.25s !important;
}

.uac-games .gcard:hover .gtitle {
  color: #1e293b !important;
}

/* Hide carousel navigation */
.uac-games .gnav {
  display: none;
}

/* Providers Section */
.uac-providers {
  margin: 32px 0;
  background: #ffffff;
  border-radius: 20px;
  padding: 32px;
  border: 1px solid #e2e8f0;
}

.uac-providers .uac-section-head {
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

/* Provider Carousel - Horizontal Scroll */
.uac-providers .pcarousel {
  position: relative;
  overflow: visible;
}

.uac-providers .pviewport {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f1f5f9;
  padding-bottom: 12px;
  margin-bottom: -12px;
}

.uac-providers .pviewport::-webkit-scrollbar {
  height: 8px;
}

.uac-providers .pviewport::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

.uac-providers .pviewport::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
  transition: background 0.2s;
}

.uac-providers .pviewport::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.uac-providers .ptrack {
  display: flex;
  gap: 16px;
  padding: 4px 0;
}

.uac-providers .pslide {
  flex: 0 0 auto;
  width: calc((100% - 80px) / 5); /* 5 карток на екрані з врахуванням gap */
  min-width: 160px;
  max-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.uac-providers .plogo {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  height: 100%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.uac-providers .plogo::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(139, 92, 246, 0.05));
  opacity: 0;
  transition: opacity 0.3s;
}

.uac-providers .plogo:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-color: #334155;
}

.uac-providers .plogo:hover::before {
  opacity: 1;
}

.uac-providers .plogo img {
  max-width: 100%;
  max-height: 70px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(1.2) contrast(1.1);
  position: relative;
  z-index: 1;
}

.uac-providers .pcaption {
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  padding: 0 4px;
}

.uac-providers .pname {
  display: none;
}

/* Navigation Buttons */
.uac-providers .pnav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  color: #475569;
  transition: all 0.2s;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.uac-providers .pnav:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #1e293b;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.uac-providers .pnav.prev {
  left: -20px;
}

.uac-providers .pnav.next {
  right: -20px;
}

.uac-providers .pnav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.uac-providers .pnav:disabled:hover {
  transform: translateY(-50%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}


/* Responsive Design */
@media (max-width: 1400px) {
  .uac-providers .pslide {
    width: calc((100% - 64px) / 4); /* 4 картки */
  }
}

@media (max-width: 1024px) {
  .uac-games .gtrack {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
  }
  
  .uac-providers .pslide {
    width: calc((100% - 48px) / 3); /* 3 картки */
    min-width: 140px;
  }
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

@media (max-width: 768px) {
  .uac-games .gtrack {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  
  .uac-games .gcard {
    padding: 12px 10px !important;
    min-height: 52px !important;
    height: 52px !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .uac-games .gicon {
    width: 28px !important;
    height: 28px !important;
    flex-shrink: 0 !important;
  }
  
  .uac-games .gtitle {
    font-size: 11px !important;
    max-width: 100% !important;
  }
  
  .uac-providers {
    padding: 24px 16px;
  }
  
  .uac-providers .pslide {
    width: calc((100% - 32px) / 2.5); /* 2.5 картки видно */
    min-width: 130px;
  }
  
  .uac-providers .plogo {
    min-height: 100px;
    padding: 20px 16px;
  }
  
  .uac-providers .plogo img {
    max-height: 60px;
  }
  
  .uac-providers .pnav {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  
  .uac-providers .pnav.prev {
    left: -18px;
  }
  
  .uac-providers .pnav.next {
    right: -18px;
  }
}

@media (max-width: 640px) {
  .uac-providers .pslide {
    width: calc((100% - 16px) / 2); /* 2 картки */
    min-width: 120px;
  }
}

@media (max-width: 480px) {
  .uac-games .gtrack {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
  }
  
  .uac-games .gcard {
    padding: 10px 8px !important;
    min-height: 48px !important;
    height: 48px !important;
    min-width: 0 !important;
  }
  
  .uac-games .gicon {
    width: 24px !important;
    height: 24px !important;
  }
  
  .uac-games .gtitle {
    font-size: 10px !important;
  }
  
  .uac-games .uac-section-head,
  .uac-providers .uac-section-head {
    font-size: 20px;
  }
  
  .uac-providers .pslide {
    width: calc((100% - 8px) / 1.5); /* 1.5 картки видно */
    min-width: 110px;
  }
  
  .uac-providers .plogo {
    min-height: 90px;
    padding: 16px 12px;
  }
  
  .uac-providers .plogo img {
    max-height: 50px;
  }
  
  .uac-providers .pcaption {
    font-size: 12px;
  }
  
  .uac-providers .pnav {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
  
  .uac-providers .pnav.prev {
    left: -16px;
  }
  
  .uac-providers .pnav.next {
    right: -16px;
  }
}

/* Для дуже великих екранів */
@media (min-width: 1600px) {
  .uac-providers .pslide {
    width: calc((100% - 96px) / 6); /* 6 карток */
  }
}
