/* media-manager.css */
 
/* 1) Bring in your global variables & typography */
@import url('../common/main.css');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');
 
/* 2) Base */
body {
  font-family: 'Poppins', sans-serif;
  color: var(--dark-color);
  background: var(--light-color);
  background: linear-gradient(135deg, var(--light-color), #f0f9ff) fixed;
  margin: 0;
  padding: 0;
}
 
/* 3) Tabs spacing */
.tab-content {
  margin-top: 1rem;
}
 
/* 4) Card grid */
#libraryPane .card-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}
 
/* 5) Media card */
.media-card {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: var(--radius-lg, 1rem);
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.media-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md, 0 4px 20px rgba(0,0,0,0.1));
}
 
/* 6) Thumbnail container */
.thumb-container {
  position: relative;
  width: 100%;
  height: 120px;
  background: var(--light-color);
}
.thumb-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.thumb-container .fallback-icon {
  display: none;
  width: 100%;
  height: 100%;
  color: var(--secondary-color);
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  display: flex;
}
.thumb-container img[onerror] + .fallback-icon {
  /* when img fails, JS hides it and shows fallback */
}
 
/* 7) Card body */
.media-card .card-body {
  padding: 0.75rem;
  text-align: center;
}
.media-card .card-body .title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
 
/* 8) Hover overlay */
.media-card .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  color: #fff;
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0.75rem;
  transition: opacity 0.2s ease;
}
.media-card:hover .overlay {
  opacity: 1;
}
.overlay .url {
  font-size: 0.8rem;
  word-break: break-all;
  margin-bottom: 0.5rem;
}
.overlay .size {
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}
.overlay .btn-copy {
  background: rgba(255,255,255,0.8);
  color: #000;
  border: none;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm, 0.25rem);
}
 
/* 9) Drop zone */
.drop-zone {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-lg, 1rem);
  padding: 2rem;
  text-align: center;
  color: var(--dark-color);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.drop-zone.dragover {
  background-color: var(--light-color);
  border-color: var(--primary-color);
  color: var(--dark-color);
}
 
 