/* ============================================
   TWITCH STREAMS STYLE
   ============================================ */

.twitch-ajax-wrapper,
#twitch-section {
  width: 100%;
  padding: 0;
  background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 100%);
}

.twitch-container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 20px 40px;
  backdrop-filter: blur(10px);
  border-top: 2px solid rgba(100, 65, 165, 0.3);
  border-bottom: 2px solid rgba(100, 65, 165, 0.3);
}

.twitch-header {
  text-align: center;
  padding-bottom: 25px;
  margin-bottom: 25px;
  border-bottom: 2px solid rgba(100, 65, 165, 0.3);
}

.twitch-title {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-family: 'Oxanium', sans-serif;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.twitch-title span {
  color: #9146ff;
}

.twitch-subtitle {
  color: #b8b8d1;
  font-size: 0.9rem;
  margin-top: 8px;
}

.twitch-streams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.twitch-stream-card {
  background: linear-gradient(135deg, rgba(30, 30, 50, 0.6), rgba(22, 33, 62, 0.8));
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(100, 65, 165, 0.2);
}

.twitch-stream-card:hover {
  transform: translateY(-5px);
  border-color: rgba(100, 65, 165, 0.6);
  box-shadow: 0 10px 30px rgba(100, 65, 165, 0.3);
}

.twitch-stream-thumbnail {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.twitch-stream-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.twitch-stream-card:hover .twitch-stream-thumbnail img {
  transform: scale(1.05);
}

.twitch-live-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, #e94560, #dc3545);
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 1;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  animation: pulse-live 1.5s infinite;
}

@keyframes pulse-live {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.twitch-viewers {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  z-index: 1;
}

.twitch-stream-info {
  padding: 16px;
}

.twitch-streamer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.twitch-streamer-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: #2a2a4a;
  border: 2px solid #9146ff;
  flex-shrink: 0;
}

.twitch-streamer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.twitch-streamer-details {
  flex: 1;
  min-width: 0;
}

.twitch-streamer-name {
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 4px;
}

.twitch-game-name {
  font-size: 0.7rem;
  color: #9146ff;
}

.twitch-stream-title {
  font-size: 0.85rem;
  color: #b8b8d1;
  line-height: 1.4;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.twitch-stream-meta {
  font-size: 0.7rem;
  color: #888;
  display: flex;
  gap: 12px;
}

.twitch-loading,
.twitch-error,
.twitch-empty {
  text-align: center;
  padding: 60px 20px;
}

.twitch-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(100, 65, 165, 0.3);
  border-top-color: #9146ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.twitch-error {
  color: #ff6b6b;
}

.twitch-error span {
  font-size: 48px;
  display: block;
  margin-bottom: 16px;
}

.twitch-retry-btn {
  margin-top: 20px;
  padding: 10px 24px;
  background: linear-gradient(135deg, #9146ff, #764ba2);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.twitch-retry-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(100, 65, 165, 0.4);
}

.twitch-empty {
  color: #b8b8d1;
}

.twitch-empty span {
  font-size: 64px;
  display: block;
  margin-bottom: 16px;
}

.twitch-empty-small {
  font-size: 0.8rem;
  color: #666;
  margin-top: 8px;
}

.twitch-footer-note {
  text-align: center;
  color: #888;
  font-size: 0.8rem;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsividade */
@media (max-width: 768px) {
  .twitch-container {
    padding: 15px 20px;
  }
  
  .twitch-streams-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
  }
  
  .twitch-title {
    font-size: 1.3rem;
  }
}

@media (max-width: 576px) {
  .twitch-container {
    padding: 10px 15px;
  }
  
  .twitch-streams-grid {
    grid-template-columns: 1fr;
  }
}