/* CraftAttack.me - Profil Detail Page */

.profil-back {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--color-text-muted); font-size: 0.85rem;
  margin-bottom: 24px; transition: color var(--transition);
}
.profil-back:hover { color: var(--color-primary); }
.profil-back svg { width: 16px; height: 16px; }

/* Header */
.profil-header {
  display: flex; gap: 28px; align-items: flex-start;
  margin-bottom: 40px;
}

.profil-skin {
  flex-shrink: 0;
  width: 100px;
}
.profil-skin-img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
  image-rendering: pixelated;
}

.profil-avatar {
  width: 100px; height: 100px;
  border: 3px solid var(--mc-border-light);
  border-radius: 50%;
  overflow: hidden;
  background: var(--mc-border-dark);
  flex-shrink: 0;
  margin-left: -20px;
  margin-top: 40px;
  position: relative;
  z-index: 1;
}
.profil-avatar img { width: 100%; height: 100%; object-fit: cover; }

.profil-info { flex: 1; }

.profil-name {
  font-size: 1.8rem; font-weight: 700; color: var(--color-text);
  margin-bottom: 6px;
}

.profil-badges {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 12px;
}

.profil-description {
  font-size: 0.95rem; color: var(--color-text-muted);
  margin-bottom: 16px; line-height: 1.6;
}

.profil-socials {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.profil-social-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; font-size: 0.82rem; font-weight: 500;
  color: var(--color-text);
  background: var(--color-bg-card);
  border: 2px solid var(--mc-border-light);
  border-top-color: var(--mc-highlight); border-left-color: var(--mc-highlight);
  border-bottom-color: var(--mc-border-dark); border-right-color: var(--mc-border-dark);
  transition: all var(--transition); text-decoration: none;
}
.profil-social-link:hover {
  background: var(--color-bg-lighter); color: var(--color-primary);
}
.profil-social-link svg { width: 16px; height: 16px; }
.profil-social-link.twitch { border-top-color: rgba(145,70,255,0.4); }
.profil-social-link.youtube { border-top-color: rgba(255,0,0,0.4); }

/* Info Grid */
.profil-info-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2px; background: var(--mc-border-dark);
  border: 2px solid var(--mc-border-dark);
  margin-bottom: 40px;
}
.profil-info-item {
  background: var(--color-bg-card); padding: 16px 20px;
}
.profil-info-label {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--color-text-muted); margin-bottom: 4px;
}
.profil-info-value {
  font-size: 0.95rem; color: var(--color-text); font-weight: 600;
}

/* Season History */
.profil-seasons {
  margin-bottom: 40px;
}
.profil-seasons h2 {
  color: var(--color-primary); margin-bottom: 16px; font-size: 1.2rem;
}
.season-badges {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.season-badge {
  padding: 6px 14px; font-size: 0.8rem; font-weight: 600;
  background: var(--color-bg-card);
  border: 2px solid var(--mc-border-light);
  border-top-color: var(--mc-highlight); border-left-color: var(--mc-highlight);
  border-bottom-color: var(--mc-border-dark); border-right-color: var(--mc-border-dark);
  color: var(--color-text-muted);
  text-decoration: none; display: inline-block;
  transition: all var(--transition);
  opacity: 0.4;
}
.season-badge:hover {
  color: var(--color-text); opacity: 0.7;
}
.season-badge.active {
  color: var(--color-primary);
  border-color: rgba(255,152,0,0.3);
  background: rgba(255,152,0,0.08);
  opacity: 1;
}
.season-badge.active:hover {
  background: rgba(255,152,0,0.15);
}
.season-badge.current {
  color: var(--color-success);
  border-color: rgba(85,181,72,0.3);
  opacity: 1;
  background: rgba(85,181,72,0.08);
}

/* Videos Section */
.profil-videos {
  margin-bottom: 40px;
}
.profil-videos h2 {
  color: var(--color-primary); margin-bottom: 8px; font-size: 1.2rem;
}
.profil-videos-subtitle {
  font-size: 0.85rem; color: var(--color-text-muted); margin-bottom: 20px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2px;
  background: var(--mc-border-dark);
  border: 2px solid var(--mc-border-dark);
}

.video-card {
  background: var(--color-bg-card);
  text-decoration: none; color: var(--color-text);
  transition: background var(--transition);
  display: block;
}
.video-card:hover { background: var(--color-bg-lighter); color: var(--color-text); }

.video-thumb {
  position: relative; aspect-ratio: 16/9;
  overflow: hidden; background: #000;
}
.video-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--transition);
}
.video-card:hover .video-thumb img { transform: scale(1.05); }

.video-play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px;
  background: rgba(255,0,0,0.9);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.1rem;
  opacity: 0; transition: opacity var(--transition);
}
.video-card:hover .video-play { opacity: 1; }

.video-info { padding: 12px 14px; }
.video-title {
  font-size: 0.85rem; font-weight: 600; color: var(--color-text);
  line-height: 1.4; margin-bottom: 4px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.video-meta { font-size: 0.75rem; color: var(--color-text-muted); }

.no-videos {
  padding: 40px; text-align: center; color: var(--color-text-muted);
  font-size: 0.9rem;
  grid-column: 1 / -1;
  background: var(--color-bg-card);
}

.videos-loading {
  padding: 40px; text-align: center; color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* Not found state */
.profil-not-found {
  text-align: center; padding: 80px 20px;
}
.profil-not-found h2 { color: var(--color-primary); margin-bottom: 12px; }
.profil-not-found p { margin-bottom: 20px; }

@media (max-width: 768px) {
  .profil-header { flex-direction: column; align-items: center; text-align: center; }
  .profil-skin { width: 80px; }
  .profil-avatar { width: 80px; height: 80px; margin-left: 0; margin-top: -30px; }
  .profil-socials { justify-content: center; }
  .profil-badges { justify-content: center; }
  .profil-info-grid { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .season-badges { justify-content: center; }
}
