/* Content Library Page Styles */
.content-library-page {
  max-width: 1400px;
}

.content-library-page .page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.content-library-page .page-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #ffd700;
  margin: 0 0 8px 0;
}

.content-library-page .page-description {
  color: #64748b;
  font-size: 1rem;
  margin: 0;
}

.content-library-page .btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  transition: all 0.2s ease;
}

.content-library-page .btn-primary:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
  transform: translateY(-2px);
  text-decoration: none;
}

/* Filters */
.content-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.content-filters .filter-btn {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: white;
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.content-filters .filter-btn:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #1a1a2e;
}

.content-filters .filter-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* Content Grid */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.content-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.content-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.content-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

.content-card:hover::before {
  opacity: 1;
}

.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 8px;
}

.content-type-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 2px 6px rgba(102, 126, 234, 0.2);
}

.content-card .status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
  flex-shrink: 0;
}

.content-card .status-badge.status-approved {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  color: white;
}

.content-card .status-badge.status-pending {
  background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
  color: #2d3436;
}

.content-card .status-badge.status-draft {
  background: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 100%);
  color: white;
}

.content-card .status-badge.status-rejected {
  background: linear-gradient(135deg, #ff7675 0%, #d63031 100%);
  color: white;
}

.content-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 12px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.content-preview {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 60px;
}

.content-meta {
  font-size: 0.8125rem;
  color: #94a3b8;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
  margin-bottom: 16px;
}

.content-actions {
  display: flex;
  gap: 8px;
}

.content-actions .btn-link {
  flex: 1;
  background: transparent;
  color: #667eea;
  border: 1px solid #667eea;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

.content-actions .btn-link:hover {
  background: rgba(102, 126, 234, 0.05);
  border-color: #764ba2;
  text-decoration: none;
}

.content-actions .btn-link:first-child {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.content-actions .btn-link:first-child:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
  transform: translateY(-1px);
}

/* Empty state */
.content-grid:empty::before {
  content: 'No content items yet';
  display: block;
  text-align: center;
  padding: 64px;
  color: #94a3b8;
  font-size: 1.25rem;
  background: white;
  border: 2px dashed #e2e8f0;
  border-radius: 12px;
  grid-column: 1 / -1;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .content-library-page .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .content-library-page .page-header h1 {
    font-size: 1.75rem;
  }

  .content-filters {
    gap: 6px;
  }

  .content-filters .filter-btn {
    font-size: 0.8125rem;
    padding: 6px 12px;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .content-card {
    padding: 16px;
  }

  .content-title {
    font-size: 1rem;
  }

  .content-preview {
    font-size: 0.8125rem;
  }

  .content-actions {
    flex-direction: column;
  }

  .content-actions .btn-link {
    width: 100%;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .content-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

