/* ============================================
   PROFILE TEAMS SECTION - CSS
   ============================================ */

/* Section Container */
.profile-teams {
  margin: 2rem 0;
}

/* Section Header */
.profile-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--borders);
}

.profile-section-title {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--titles);
  margin: 0;
}

.profile-section-title i {
  font-size: 1.125rem;
  color: var(--accent);
}

/* Teams Grid */
.profile-teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

/* Empty State */
.profile-teams-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  background: var(--panel);
  border: 1px solid var(--borders);
  border-radius: var(--radius);
  text-align: center;
}

.profile-teams-empty i {
  font-size: 3rem;
  color: var(--muted);
  margin-bottom: 1rem;
  opacity: 0.5;
}

.btn-create-team{
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    padding: clamp(0.75rem, 1.5vw, 0.85rem) clamp(2.5rem, 5vw, 3.5rem);
    border-radius: 0 clamp(8px, 1.5vw, 12px);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    position: relative;
    overflow: hidden;
    
}

.team-card-create{
    cursor: pointer;
}

.btn-create-team:hover {
    box-shadow: 0 6px 20px rgba(var(--accent-rgb), 0.4);
}

.btn-create-team::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-create-team:hover::before {
    left: 100%;
}

.btn-create-team i{
    font-size: 1rem;
}

.profile-teams-empty p {
  font-size: 0.9375rem;
  color: var(--muted);
  margin: 0 0 1.5rem 0;
}

.profile-teams-empty .btn {
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-2);
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.25s ease;
}

.profile-teams-empty .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(232, 0, 40, 0.3);
}

/* Team Card Link */
.team-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Team Card */
.team-card {
  background: var(--panel);
  border: 1px solid var(--borders);
  border-radius: 0 var(--radius);
  padding: 1.25rem;
  transition: all 0.3s ease;
  height: 100%;
}

.team-card:hover {
  background: var(--panel-2);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Team Card Content */
.team-card-content {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

/* Team Logo */
.team-logo {
    display: flex;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: calc(var(--radius) / 1.5);
  overflow: hidden;
  background: var(--panel-2);
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.team-logo i{
    font-size: 2rem;
    color: var(--accent);
}

.team-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Team Text */
.team-text {
  flex: 1;
  min-width: 0;
}

.team-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--titles);
  margin: 0 0 0.25rem 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-game {
  display: block;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

/* Team Meta */
.team-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.8125rem;
  color: var(--txt);
  font-weight: 500;
}

.team-meta i {
  color: var(--accent);
  font-size: 0.75rem;
  margin-right: 0.25rem;
}

.team-card:hover .team-meta i {
  transform: scale(1.1);
  transition: transform 0.25s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
  .profile-teams-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }

  .profile-section-title {
    font-size: 1.125rem;
  }

  .team-card {
    padding: 1rem;
  }

  .team-logo {
    width: 56px;
    height: 56px;
  }
}

@media (max-width: 480px) {
  .profile-teams-grid {
    grid-template-columns: 1fr;
  }

  .profile-teams-empty {
    padding: 2rem 1rem;
  }

  .profile-teams-empty i {
    font-size: 2.5rem;
  }

  .team-card-content {
    gap: 0.875rem;
  }

  .team-name {
    font-size: 0.9375rem;
  }

  .team-meta {
    gap: 0.75rem;
    font-size: 0.75rem;
  }
}