/*
@feature: ./assets/css/creator.css
@purpose: Styles for Content Creator Dashboard
@depends: Used by: 10-creator/1creator-dashboard.php

Filename: creator.css
Path: /home/elevatf7/public_html/wp-content/themes/buddyboss-theme-child-UI/assets/css/creator.css
Description: Layout and UI styles for the creator dashboard, including sidebar, buttons, and creator actions.
*/

/* Modern Dashboard Layout */
.creator-dashboard {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem;
  font-family: 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1e293b;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  width: 100%;
  box-sizing: border-box;
}

/* Clean sidebar with hover effects */
.creator-sidebar {
  width: 220px;
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  height: fit-content;
  position: sticky;
  top: 80px;
}

.creator-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.creator-sidebar li {
  margin-bottom: 0.5rem;
}

.creator-sidebar a {
  display: block;
  text-decoration: none;
  color: #334155;
  font-weight: 500;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.creator-sidebar a:hover,
.creator-sidebar a.active {
  background-color: #f1f5f9;
  color: #0ea5e9;
  border-left-color: #0ea5e9;
}

.creator-sidebar-header {
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.creator-sidebar-header h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
  color: #0f172a;
}

/* Main content area */
.creator-main {
  flex: 1;
  min-width: 0; /* Ensures flexbox content doesn't overflow */
}

.creator-welcome {
  background: linear-gradient(135deg, #0ea5e9, #3b82f6);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  color: white;
  position: relative;
  overflow: hidden;
}

.creator-welcome h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
}

.creator-welcome p {
  font-size: 1.1rem;
  opacity: 1;
  margin: 0;
  color: #ffffff;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.creator-welcome::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  right: -120px;
  top: -120px;
  z-index: 0;
}

/* Dashboard sections */
.dashboard-section {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.dashboard-section h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 1.5rem 0;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Creator tier section */
.creator-tier-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.tier-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.tier-card:hover {
  transform: translateY(-5px);
}

.tier-header {
  padding: 1.5rem;
  color: white;
  text-align: center;
}

.tier-header h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
}

.tier-basic {
  background: linear-gradient(135deg, #64748b, #475569);
}

.tier-plus {
  background: linear-gradient(135deg, #10b981, #059669);
}

.tier-pro {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.tier-details {
  padding: 1.5rem;
}

.tier-limit {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f1f5f9;
}

.limit-label {
  font-weight: 500;
  color: #64748b;
}

.limit-value {
  font-weight: 600;
  color: #0f172a;
}

.upgrade-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  padding: 0.7rem 1.2rem;
  text-align: center;
  border-radius: 8px;
  margin-top: 1rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.3);
  max-width: fit-content;
}

.upgrade-btn:hover {
  background: linear-gradient(135deg, #d97706, #b45309);
  transform: translateY(-2px);
  color: white;
  box-shadow: 0 5px 15px rgba(245, 158, 11, 0.4);
}

/* Creator action buttons */
.creator-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.creator-btn {
  display: inline-flex;
  align-items: center;
  background: #0ea5e9;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 3px 10px rgba(14, 165, 233, 0.2);
}

.creator-btn:hover {
  background: #0284c7;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(14, 165, 233, 0.3);
  color: white;
}

.creator-btn-outline {
  display: inline-flex;
  align-items: center;
  border: 2px solid #0ea5e9;
  color: #0ea5e9;
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  margin-top: 1rem;
}

.creator-btn-outline:hover {
  background-color: #f0f9ff;
  color: #0284c7;
  border-color: #0284c7;
}

/* Alert styling */
.alert {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.alert-warning {
  background-color: #fff7ed;
  color: #9a3412;
  border-left: 4px solid #f59e0b;
}

/* Projects grid layout */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.project-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.project-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  height: 80px;
  width: 100%;
}

.project-details {
  padding: 1.5rem;
  flex: 1;
}

.project-details h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.75rem 0;
  color: #0f172a;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #64748b;
}

.project-type {
  font-weight: 500;
  background: #f1f5f9;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.project-progress-bar {
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0ea5e9, #3b82f6);
  border-radius: 4px;
}

.project-actions {
  padding: 1rem 1.5rem;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: flex-end;
}

.project-actions .btn {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.btn-primary {
  background-color: #0ea5e9;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary:hover {
  background-color: #0284c7;
  color: white;
}

/* Community section */
.creator-community {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  padding: 1.5rem;
  text-align: center;
  margin-top: 2rem;
}

.creator-community h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 0.75rem 0;
  color: #0f172a;
}

.creator-community p {
  color: #64748b;
  margin-bottom: 1.5rem;
}

/* Modal styling */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  overflow-y: auto;
  padding: 2rem 1rem;
  box-sizing: border-box;
}

.modal.show {
  opacity: 1;
  visibility: visible;
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 12px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  overflow: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  margin: auto;
}

.modal.show .modal-content {
  transform: translateY(0);
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h4 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0;
  color: #0f172a;
}

.close-modal {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #64748b;
  transition: color 0.2s ease;
}

.close-modal:hover {
  color: #ef4444;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1.5rem;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #334155;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-help {
  font-size: 0.875rem;
  color: #64748b;
  margin-top: 0.5rem;
}

.btn-secondary {
  background-color: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0.75rem 1.5rem;
}

.btn-secondary:hover {
  background-color: #e2e8f0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .creator-dashboard {
    flex-direction: column;
  }

  .creator-sidebar {
    width: 100%;
    position: static;
    margin-bottom: 2rem;
  }

  .creator-sidebar ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .creator-sidebar li {
    margin-bottom: 0;
  }

  .creator-sidebar a {
    padding: 0.5rem 1rem;
  }
}

@media (max-width: 640px) {
  .creator-dashboard {
    padding: 1.5rem;
  }

  .creator-welcome {
    padding: 1.5rem;
  }

  .creator-welcome h1 {
    font-size: 1.5rem;
  }

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

  .creator-btn {
    width: 100%;
    justify-content: center;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }
}


