/* Lingoloop Projects - Design Premium Moderno */

/* Container principal */
#lingoloop-projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 32px;
  padding: 40px 20px;
  background: linear-gradient(135deg, #0a0b0d 0%, #1a1d23 100%);
  min-height: 400px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

/* Efeito de background animado */
#lingoloop-projects-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(74, 158, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 107, 53, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Card do projeto */
.llp-card {
  background: rgba(35, 39, 42, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(74, 158, 255, 0.2);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 2px 8px rgba(74, 158, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 420px;
}

.llp-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 8px 32px rgba(74, 158, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border-color: rgba(74, 158, 255, 0.4);
}

.llp-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #4A9EFF, #FF6B35, #4A9EFF);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.llp-card:hover::before {
  opacity: 1;
}

/* Preview em miniatura */
.llp-card-preview {
  height: 160px;
  background: #181a1b;
  border-bottom: 1px solid rgba(74, 158, 255, 0.1);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.llp-card-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.llp-card:hover .llp-card-preview img {
  transform: scale(1.05);
}

.llp-preview-overlay {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(74, 158, 255, 0.9);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

/* Status badge */
.llp-status-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.llp-status-completed {
  background: rgba(70, 180, 80, 0.9);
  color: white;
}

.llp-status-in_progress {
  background: rgba(255, 193, 7, 0.9);
  color: #000;
}

.llp-status-empty {
  background: rgba(108, 117, 125, 0.9);
  color: white;
}

/* Conteúdo do card */
.llp-card-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Header do card */
.llp-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.llp-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #4A9EFF;
  line-height: 1.3;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  margin-right: 12px;
}

/* Metadados */
.llp-card-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #aaa;
}

.llp-meta-item {
  display: flex;
  flex-direction: column;
}

.llp-meta-label {
  font-size: 11px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.llp-meta-value {
  color: #ddd;
  font-weight: 500;
}

/* Área de ações */
.llp-card-actions {
  display: flex;
  gap: 12px;
  margin-top: auto;
}

/* Botões redesenhados */
.llp-btn {
  background: linear-gradient(135deg, #4A9EFF 0%, #357ABD 100%);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  flex: 1;
  text-align: center;
}

.llp-btn::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;
}

.llp-btn:hover::before {
  left: 100%;
}

.llp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(74, 158, 255, 0.3);
}

.llp-btn:active {
  transform: translateY(0);
}

.llp-btn-delete {
  background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%);
  flex: 0 0 auto;
  padding: 12px;
  font-size: 16px;
}

.llp-btn-delete:hover {
  box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

/* Estado vazio */
.llp-empty {
  grid-column: 1 / -1;
  color: #666;
  font-size: 18px;
  padding: 80px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.llp-empty::before {
  content: '📋';
  font-size: 48px;
  opacity: 0.5;
}

/* Preview HTML */
.llp-preview-empty,
.llp-preview-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #666;
  font-size: 12px;
  background: #0f1114;
  border-radius: 4px;
}

.llp-preview-progress {
  color: #FFC107;
}

/* Loading animation */
.llp-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  font-size: 16px;
  color: #4A9EFF;
}

.llp-loading::after {
  content: '';
  width: 20px;
  height: 20px;
  border: 2px solid #333;
  border-top: 2px solid #4A9EFF;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 8px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsividade */
@media (max-width: 1200px) {
  #lingoloop-projects-container {
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
    padding: 32px 16px;
  }
}

@media (max-width: 768px) {
  #lingoloop-projects-container {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px 12px;
  }
  
  .llp-card {
    height: auto;
    min-height: 380px;
  }
  
  .llp-card-preview {
    height: 140px;
  }
  
  .llp-card-content {
    padding: 20px;
  }
  
  .llp-card-title {
    font-size: 16px;
  }
  
  .llp-card-actions {
    flex-direction: column;
  }
  
  .llp-btn-delete {
    flex: 1;
  }
}

@media (max-width: 480px) {
  #lingoloop-projects-container {
    padding: 16px 8px;
    border-radius: 12px;
  }
  
  .llp-card {
    border-radius: 12px;
    height: auto;
    min-height: 360px;
  }
  
  .llp-card-content {
    padding: 16px;
  }
} 