.carousel-container {
  max-width: 1200px;
  width: 100%;
  position: relative;
  overflow: hidden;
  padding: 40px 60px;
}

.carousel-wrapper {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  transition: transform 0.3s ease;
  /*max-height: 220px;*/
  max-height: 250px;
}

.story-item {
  flex: 0 0 auto;
  display: flex;
  gap: 0;
  align-items: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.story-circle-wrapper {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  z-index: 2;
  user-select: none;
}

.story-circle {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  padding: 4px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.story-item:hover .story-circle,
.story-item.active .story-circle {
  transform: scale(1.08);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.story-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #fff;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.story-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 24px;
  pointer-events: none;
}

.story-name {
  text-align: center;
  margin-top: 3px;
  font-size: 12px;
  color: #006bf7;
  font-weight: 500;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}

.info-card {
  width: 0;
  opacity: 0;
  overflow: hidden;
  background: white;
  border-radius: 16px;
  margin-left: 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 5px;
}

.info-card a {
  color: #006bf7;
}

.info-card a:hover {
  color: #013bb8;
}

.info-card-content {
  width: 320px;
  /*250px;*/
  padding: 18px;
  opacity: 0;
  transition: opacity 0.2s ease 0.05s;
}

.story-item:hover .info-card,
.story-item.active .info-card {
  width: 320px;
  opacity: 1;
  margin-left: 20px;
}

.story-item:hover .info-card-content,
.story-item.active .info-card-content {
  opacity: 1;
}

.info-card-header {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 0px;
  margin-bottom: 5px;
  border-bottom: 1px solid #ffb25a;
}

.card-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 18px;
  flex-shrink: 0;
}

.card-user-info {
  flex: 1;
}

.info-card-username {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 4px;
  line-height: 1;
  color: #667eea;
}

.info-card-role {
  font-size: 13px;
  color: #666;
  margin-bottom: 4px;
  line-height: 1;
}

.card-description {
  font-size: 14px;
  color: #4a4a4a;
  line-height: 1.6;
  margin-bottom: 5px;
}

.card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 15px;
  padding-top: 5px;
  border-top: 1px solid #f0f0f0;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  /* İkon ve metin her zaman yan yana */
  flex: 0 1 auto;
  /* Sığdığı kadar yer kaplasın */
}

.stat-item a:hover {
  color: #0098ed;
}

.stat-value {
  font-size: 16px;
  font-weight: 500;
  color: #f79400;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.stat-label {
  font-size: 12px;
  color: #4e4d4d;
  line-height: 1.4;
  white-space: nowrap;
  /* Mümkünse tek satırda tut */
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.95);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #262626;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.carousel-btn:hover {
  background: white;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transform: translateY(-50%) scale(1.05);
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

.carousel-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Tablet için media query */
@media (max-width: 1024px) {
  .carousel-container {
    padding: 30px 50px;
  }

  .info-card-content {
    width: 280px;
    padding: 10px;
  }

  .story-item:hover .info-card,
  .story-item.active .info-card {
    width: 280px;
  }

  .card-stats {
    gap: 15px;
  }
}

/* Mobil için media query */
@media (max-width: 768px) {
  .carousel-container {
    padding: 20px 40px;
  }

  .carousel-wrapper {
    gap: 15px;
    padding: 15px 0;
    /*max-height: 150px; */
    max-height: 180px;
  }

  .story-circle {
    width: 120px;
    height: 120px;
    padding: 3px;
  }

  .story-inner {
    padding: 3px;
  }

  .story-image {
    font-size: 20px;
  }

  .story-name {
    font-size: 11px;
    max-width: 70px;
  }

  .info-card {
    height: auto;
    min-height: 100px;
  }

  .info-card-content {
    width: 240px;
    padding: 16px;
  }

  .story-item.active .info-card {
    width: 240px !important;
    opacity: 1 !important;
    margin-left: 15px !important;
  }

  .story-item.active .info-card-content {
    opacity: 1 !important;
    transition-delay: 0s !important;
  }

  .info-card-header {
    /*margin-bottom: 12px;
    padding-bottom: 12px;*/
    margin: 0;
    padding: 0;
  }

  .card-avatar {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .info-card-username {
    font-size: 14px;
  }

  .info-card-role {
    font-size: 12px;
  }

  .card-description {
    font-size: 13px;
    margin-bottom: 3px;
  }

  .card-stats {
    gap: 12px;
    padding-top: 3px;
  }

  .stat-value {
    font-size: 16px;
  }

  .stat-label {
    font-size: 11px;
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  /* Mobilde hover'ı devre dışı bırak */
  .story-item:hover .info-card {
    width: 0;
    opacity: 0;
    margin-left: 0;
  }

  .story-item:hover .info-card-content {
    opacity: 0;
  }

  .story-item:hover .story-circle {
    transform: none;
    box-shadow: none;
  }
}

/* Küçük mobil cihazlar */
@media (max-width: 480px) {
  .carousel-container {
    padding: 15px 30px;
  }

  .story-circle {
    width: 60px;
    height: 60px;
    padding: 2px;
  }

  .story-image {
    font-size: 18px;
  }

  .info-card-content {
    width: 200px;
    padding: 14px;
  }

  .story-item.active .info-card {
    width: 200px;
    margin-left: 12px;
  }

  .card-description {
    font-size: 12px;
  }

  .card-stats {
    gap: 10px;
    flex-wrap: wrap;
  }

  .stat-value {
    font-size: 14px;
  }

  .carousel-btn {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }
}