/* Module suggestions-medias : CSS extrait d'argon-app.css (scripts/extract_module_css.py). Feuille du module : editer ici, avec les variables de static/css/app/tokens.css. */
.asset-card {
  background: white;
  border: 1px solid var(--mv-gray-200);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.asset-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  border-color: var(--mv-primary);
}

.asset-preview {
  position: relative;
  height: 120px;
  overflow: hidden;
}

.asset-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mv-gray-50);
}

.asset-file {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.asset-type-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.asset-type-image { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.asset-type-video { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.asset-type-document { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }

.asset-actions {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.asset-card:hover .asset-actions {
  opacity: 1;
}

.asset-actions .btn {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.asset-info {
  padding: 12px;
}

.asset-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--mv-text-heading);
  line-height: 1.2;
}

.asset-meta {
  font-size: 12px;
  color: var(--mv-text);
}

.asset-description {
  margin-top: 6px;
  font-size: 12px;
  color: #6c7b90;
}

/* Asset Add Card */
.asset-add-card {
  border: 2px dashed #cbd5e0;
  background: var(--mv-gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  transition: all 0.3s ease;
}

.asset-add-card:hover {
  border-color: var(--mv-primary);
  background: linear-gradient(135deg, var(--mv-primary) 0%, #825ee4 100%);
  color: white;
  transform: translateY(-2px);
}

.asset-add-content {
  text-align: center;
  padding: 1rem;
}

/* Asset Library Item */
.asset-library-item {
  border-radius: 12px;
  background: white;
  border: 1px solid var(--mv-gray-200);
  transition: all 0.25s ease;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

.asset-library-item:hover {
  border-color: var(--mv-primary);
  box-shadow: 0 10px 25px rgba(0, 85, 255, 0.14);
  transform: translateY(-2px);
}

.asset-library-item.selected {
  border-color: var(--mv-primary);
  box-shadow: 0 10px 25px rgba(0, 85, 255, 0.18);
}

.asset-library-item.selected::after {
  content: '\f00c';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--mv-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  box-shadow: 0 6px 16px rgba(0, 85, 255, 0.35);
}

/* === RESPONSIVE STYLES === */

/* Tablet and smaller */
@media (max-width: 768px) {

  .asset-preview {
    height: 100px;
  }

  .asset-info {
    padding: 8px;
  }
}
