/* Top 3 Premium Section Styling */
.top-three-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
  margin-top: 2rem;
}

/* Premium card base styling */
.premium-card {
  background: linear-gradient(135deg, rgb(var(--card)) 0%, rgba(14, 165, 233, 0.05) 100%);
  border: 2px solid rgb(var(--border));
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}

.premium-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, rgb(var(--primary)), rgba(14, 165, 233, 0.6));
}

/* Gold, Silver, Bronze medal styling */
.premium-rank-1 {
  border-color: #fbbf24;
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.2), 0 4px 15px rgba(0, 0, 0, 0.08);
}

.premium-rank-1::before {
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.premium-rank-2 {
  border-color: #d1d5db;
  box-shadow: 0 0 20px rgba(209, 213, 219, 0.2), 0 4px 15px rgba(0, 0, 0, 0.08);
}

.premium-rank-2::before {
  background: linear-gradient(90deg, #d1d5db, #9ca3af);
}

.premium-rank-3 {
  border-color: #d97706;
  box-shadow: 0 0 20px rgba(217, 119, 6, 0.15), 0 4px 15px rgba(0, 0, 0, 0.08);
}

.premium-rank-3::before {
  background: linear-gradient(90deg, #d97706, #b45309);
}

.premium-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* Medal badge with SVG icon positioning */
.medal-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2.5rem;
  animation: float 3s ease-in-out infinite;
}

.medal-gold {
  color: #fbbf24;
}

.medal-silver {
  color: #d1d5db;
}

.medal-bronze {
  color: #d97706;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Rank number */
.rank-number {
  display: inline-block;
  background: linear-gradient(135deg, rgb(var(--primary)), rgba(14, 165, 233, 0.7));
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

/* Premium header with large icon */
.premium-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.premium-header img {
  width: 48px;
  height: 48px;
  border-radius: calc(var(--radius) * 0.8);
  border: 2px solid rgb(var(--border));
  flex-shrink: 0;
}

.premium-info {
  flex: 1;
}

.premium-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: rgb(var(--foreground));
  margin-bottom: 0.25rem;
}

.premium-domain {
  font-size: 0.875rem;
  color: rgb(var(--muted-foreground));
  margin: 0;
}

/* Premium rating display */
.premium-rating {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: #fef3c7;
  padding: 0.75rem 1rem;
  border-radius: calc(var(--radius) * 1.5);
  border: 1px solid #fcd34d;
  margin-bottom: 1.5rem;
  justify-content: center;
}

.premium-rating .stars {
  color: #f59e0b;
  font-size: 1rem;
  display: flex;
  gap: 3px;
}

.premium-rating .rating-score {
  font-weight: 700;
  color: #92400e;
  font-size: 1rem;
}

/* Premium stats grid */
.premium-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.premium-stat {
  text-align: center;
  padding: 1.25rem;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(14, 165, 233, 0.05));
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.premium-stat .stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: rgb(var(--primary));
  margin-bottom: 0.25rem;
}

.premium-stat .stat-label {
  font-size: 0.75rem;
  color: rgb(var(--muted-foreground));
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Premium actions */
.premium-actions {
  display: flex;
  gap: 0.75rem;
}

.premium-actions .btn {
  flex: 1;
  padding: 0.875rem 1rem;
  font-weight: 600;
  font-size: 0.9rem;
}

/* List section styling for positions 4-10 */
.websites-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

/* Individual list item */
.list-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background-color: rgb(var(--card));
  border: 1px solid rgb(var(--border));
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.list-item:hover {
  border-color: rgb(var(--primary));
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15);
  transform: translateX(4px);
}

/* Rank number in list */
.list-rank {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(14, 165, 233, 0.05));
  border: 2px solid rgba(14, 165, 233, 0.2);
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.1rem;
  color: rgb(var(--primary));
  flex-shrink: 0;
}

/* List info section */
.list-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.list-header {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.list-header img {
  width: 32px;
  height: 32px;
  border-radius: calc(var(--radius) * 0.6);
  border: 1px solid rgb(var(--border));
  flex-shrink: 0;
}

.list-details {
  flex: 1;
  min-width: 0;
}

.list-name {
  font-size: 1rem;
  font-weight: 600;
  color: rgb(var(--foreground));
  margin: 0;
  margin-bottom: 0.125rem;
}

.list-domain {
  font-size: 0.8rem;
  color: rgb(var(--muted-foreground));
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* List stats row */
.list-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.list-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.list-rating .stars {
  color: #f59e0b;
  font-size: 0.8rem;
  display: flex;
  gap: 2px;
}

.list-rating .rating-score {
  font-weight: 600;
  color: rgb(var(--foreground));
  font-size: 0.9rem;
  min-width: 40px;
}

.reviews-count {
  font-size: 0.8rem;
  color: rgb(var(--muted-foreground));
  white-space: nowrap;
}

/* List actions */
.list-actions {
  flex-shrink: 0;
}

.btn-link {
  padding: 0.625rem 1.25rem;
  background-color: rgb(var(--primary));
  color: rgb(var(--primary-foreground));
  border: none;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-link:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

/* Responsive design for tablets and mobile */
@media (max-width: 1024px) {
  .top-three-section {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .top-three-section {
    grid-template-columns: 1fr;
  }

  .premium-card {
    padding: 1.5rem;
  }

  .medal-badge {
    font-size: 2rem;
  }

  .list-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  .list-rank {
    align-self: flex-start;
  }

  .list-header {
    width: 100%;
  }

  .list-stats {
    width: 100%;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .list-actions {
    width: 100%;
  }

  .btn-link {
    width: 100%;
    justify-content: center;
  }

  .premium-header {
    gap: 0.75rem;
  }

  .premium-name {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .top-three-section {
    gap: 1rem;
  }

  .premium-card {
    padding: 1.25rem;
  }

  .rank-number {
    width: 45px;
    height: 45px;
    font-size: 1.25rem;
  }

  .medal-badge {
    font-size: 1.75rem;
    top: 0.75rem;
    right: 0.75rem;
  }

  .premium-stats {
    gap: 0.75rem;
  }

  .premium-stat .stat-value {
    font-size: 1.5rem;
  }

  .list-item {
    padding: 0.875rem;
  }

  .list-rank {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .list-header img {
    width: 28px;
    height: 28px;
  }

  .list-name {
    font-size: 0.95rem;
  }
}
