/* Project Styles */

/* Projects Grid */
.projects-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: var(--spacing-lg);
}

/* Project Card */
.project-card {
  background-color: var(--color-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s ease-in-out;
  width: var(--card-width);
  flex-shrink: 0;
}

.project-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.project-card-content {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Project Image Section - 16:9 Aspect Ratio */
.project-image-section {
  width: 100%;
  position: relative;
}

.project-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-base) var(--radius-base) 0 0;
  transition: border-color 0.15s ease-in-out;
  display: block;
  background: #f5f5f5;
}

.project-image:hover {
  border-color: var(--color-primary);
}

.project-image-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: var(--color-secondary);
  border-radius: var(--radius-base) var(--radius-base) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-image-placeholder i {
  font-size: 3rem;
  color: var(--color-white);
}

/* Project Details */
.project-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: var(--spacing-md);
}

.project-header {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-sm);
}

.project-name {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.project-badges {
  display: flex;
  gap: var(--spacing-xs);
  flex-wrap: wrap;
}

/* Project Info Sections */
.project-info-section {
  margin-bottom: var(--spacing-sm);
}

.project-subheader {
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0;
  margin-bottom: 4px;
}

.project-text {
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.5;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.project-text-muted {
  color: var(--color-text-muted);
  font-style: italic;
}

/* Script Badges */
.script-badges {
  display: flex;
  gap: var(--spacing-xs);
  flex-wrap: wrap;
}

.script-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
}

.script-badge i {
  color: var(--color-success);
  opacity: 0.9;
}

/* Project Actions */
.project-actions {
  margin-top: auto;
  display: flex;
  gap: var(--spacing-xs);
  padding-top: var(--spacing-sm);
  flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
  .projects-grid {
    gap: 15px;
  }

  .project-card {
    width: calc(50% - 8px);
  }
}

@media (max-width: 576px) {
  .project-card {
    width: 100%;
  }

  .project-actions {
    flex-direction: row;
  }

  .project-actions .btn {
    flex: 1;
    justify-content: center;
  }
}

/* Project Show View Styles */

.project-show-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 4rem;
}

.project-show-header {
  margin-bottom: 32px;
}

.project-show-title {
  font-size: 2.5rem; /* Larger header as requested */
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0 0 12px 0;
}

.project-status-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-sm);
  font-weight: 500;
  text-transform: uppercase;
}

.project-status-badge.status-draft {
  background: var(--color-secondary);
  color: white;
}

.project-status-badge.status-in-progress {
  background: var(--color-warning);
  color: var(--color-dark);
}

.project-status-badge.status-completed {
  background: var(--color-success);
  color: white;
}

/* Project Header Section */
.project-header-section {
  margin-bottom: 1.5rem;
  margin-top: var(--subnav-min-height);
}

/* Project Show Cards */
.project-show-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.project-show-card-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-light-gray);
}

.project-show-card-header h5 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
}

.project-show-card-body {
  padding: 1.25rem;
}

/* Compact Stats Panel */
.stats-card {
  margin-bottom: 1.5rem;
}

.stats-grid-compact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.stat-item-compact {
  text-align: center;
  padding: 0.75rem;
  background: var(--bg-light-gray);
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

.stat-icon-value {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.stat-icon-small {
  font-size: 1.25rem;
}

.stat-icon-small.text-primary { color: var(--color-primary); }
.stat-icon-small.text-info { color: var(--color-info); }
.stat-icon-small.text-success { color: var(--color-success); }
.stat-icon-small.text-warning { color: var(--color-warning); }
.stat-icon-small.text-secondary { color: var(--color-secondary); }
.stat-icon-small.text-danger { color: var(--color-danger); }

.stat-value-compact {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text);
}

.stat-label-compact {
  color: var(--color-text-secondary);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Progress Section */
.progress-section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.progress-wrapper-compact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.progress-label-compact {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
}

.progress-bar-container-compact {
  height: 24px;
  background: var(--bg-light-gray);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.progress-bar-fill-compact {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-info));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.3s ease;
  position: relative;
}

.progress-text {
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Quick Links Section */
.quick-links-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px; /* Added gap between buttons as requested */
}

.quick-links-grid .btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: var(--radius-base);
  font-size: var(--font-size-sm);
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.quick-links-grid .btn-primary {
  background: var(--main-a-color);
  color: white;
  border-color: var(--main-a-color);
}

.quick-links-grid .btn-primary:hover {
  background: var(--main-hover-color);
  border-color: var(--main-hover-color);
}

.quick-links-grid .btn i {
  margin-right: 6px;
}

/* Statistics Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.stat-item {
  text-align: center;
}

.stat-icon {
  font-size: 2.5rem;
  margin-bottom: 8px;
  display: block;
}

.stat-icon.text-primary { color: var(--color-primary); }
.stat-icon.text-info { color: var(--color-info); }
.stat-icon.text-success { color: var(--color-success); }
.stat-icon.text-warning { color: var(--color-warning); }
.stat-icon.text-secondary { color: var(--color-secondary); }
.stat-icon.text-danger { color: var(--color-danger); }

.stat-value {
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0;
}

.stat-label {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

/* Divider */
.stats-divider {
  margin: 24px 0;
  border: 0;
  border-top: 1px solid var(--border-color);
}

/* Progress Bar */
.progress-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.progress-label {
  white-space: nowrap;
  color: var(--color-text-primary);
}

.progress-bar-container {
  flex: 1;
  height: 20px;
  background: var(--bg-light-gray);
  border-radius: var(--radius-pill);
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--font-size-sm);
  font-weight: 500;
  transition: width 0.3s ease;
}

.progress-hint {
  display: block;
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  margin-top: 4px;
}

/* Next Steps */
.next-steps-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.next-step-item {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color-light);
}

.next-step-item:last-child {
  border-bottom: none;
}

.next-step-icon {
  font-size: 1.5rem;
  margin-right: 16px;
  flex-shrink: 0;
}

.next-step-icon.priority-high { color: var(--color-danger); }
.next-step-icon.priority-medium { color: var(--color-warning); }
.next-step-icon.priority-low { color: var(--color-success); }

.next-step-content {
  flex: 1;
}

.next-step-task {
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 4px;
}

.next-step-category {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

.next-step-action {
  margin-left: auto;
}

/* Scenes List */
.scenes-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-light-gray);
}

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

.scene-list {
  display: flex;
  flex-direction: column;
}

.scene-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color-light);
  text-decoration: none;
  color: var(--color-text-primary);
  transition: background 0.2s ease;
}

.scene-item:hover {
  background: var(--bg-light-gray);
}

.scene-item:last-child {
  border-bottom: none;
}

.scene-number {
  background: var(--color-secondary);
  color: white;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  font-weight: 500;
  margin-right: 12px;
}

.scene-title {
  font-weight: 600;
  margin-right: 8px;
}

.scene-setting {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

.scene-chevron {
  color: var(--color-text-muted);
  margin-left: auto;
}

/* Empty State for Show View */
.empty-show-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--color-text-muted);
}

.empty-show-state-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-show-state p {
  margin-bottom: 16px;
}

/* Action Buttons */
.project-show-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.project-show-actions .btn {
  padding: 10px 20px;
  border-radius: var(--radius-base);
  font-size: var(--font-size-sm);
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.project-show-actions .btn-primary {
  background: var(--main-a-color);
  color: white;
  border-color: var(--main-a-color);
}

.project-show-actions .btn-primary:hover {
  background: var(--main-hover-color);
  border-color: var(--main-hover-color);
}

.project-show-actions .btn-outline-secondary {
  background: transparent;
  color: var(--color-text-primary);
  border-color: var(--border-color);
}

.project-show-actions .btn-outline-secondary:hover {
  background: var(--bg-light-gray);
}

.project-show-actions .btn-danger {
  background: var(--color-danger);
  color: white;
  border-color: var(--color-danger);
}

.project-show-actions .btn-danger:hover {
  background: #b91c1c;
  border-color: #b91c1c;
}

/* Button Groups */
.btn-group {
  display: flex;
  gap: 4px;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.75rem;
}

.btn-success {
  background: var(--color-success);
  color: white;
  border-color: var(--color-success);
}

.btn-success:hover {
  background: #059669;
  border-color: #059669;
}

.btn-outline-primary {
  background: transparent;
  color: var(--main-a-color);
  border: 1px solid var(--main-a-color);
}

.btn-outline-primary:hover {
  background: var(--main-a-color);
  color: white;
}

/* Success State */
.success-state {
  text-align: center;
  padding: 24px;
}

.success-icon {
  font-size: 3rem;
  color: var(--color-success);
  margin-bottom: 12px;
}



/* Dark theme support */
[data-theme="dark"] .project-show-card {
  background: #2a2a2a;
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .project-show-card-header {
  background: #333;
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .stat-item-compact {
  background: #333;
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .progress-bar-container-compact {
  background: #333;
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .progress-section {
  border-top-color: rgba(255, 255, 255, 0.1);
}


/* Responsive for Show View */
@media (max-width: 768px) {
  .project-show-container {
    padding: 1.5rem;
  }
  
  .stats-grid-compact {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .stat-item-compact {
    padding: 0.5rem;
  }
  
  .stat-value-compact {
    font-size: 1.25rem;
  }
  
  .stat-icon-small {
    font-size: 1rem;
  }
  
  .quick-links-grid {
    flex-direction: column;
  }
  
  .quick-links-grid .btn {
    width: 100%;
    justify-content: center;
  }
  
  .next-step-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .next-step-action {
    margin-left: 0;
    width: 100%;
  }
  
  .scenes-card-header {
    flex-direction: column;
    gap: 12px;
  }
  
  .scenes-actions {
    width: 100%;
    justify-content: center;
  }
}