/* Scene Show View Styles */

.scene-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 24px 24px;
}

/* Scene Header */
.scene-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.scene-title-wrapper {
  flex: 1;
}

.scene-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0 0 8px 0;
}

.scene-number-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  background: var(--color-secondary);
  color: white;
  border-radius: var(--radius-base);
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
}

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

.scene-breadcrumb a {
  color: var(--main-a-color);
  text-decoration: none;
}

.scene-breadcrumb a:hover {
  color: var(--main-hover-color);
  text-decoration: underline;
}

/* Scene Cards */
.scene-card {
  background: var(--color-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  width: 100%;
}

.scene-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);
}

.scene-card-header h5 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

.scene-card-body {
  padding: 20px;
}

.scene-detail-section {
  margin-bottom: 20px;
}

.scene-detail-section:last-child {
  margin-bottom: 0;
}

.scene-detail-section h6 {
  font-size: var(--font-size-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-muted);
  margin: 0 0 8px 0;
}

.scene-detail-section p {
  color: var(--color-text-primary);
  margin: 0;
  line-height: 1.6;
}

/* Shots Section */
.scene-card-header .shots-actions {
  display: flex;
  gap: 8px;
}

.shots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.shot-card {
  background: var(--color-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-base);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease;
}

.shot-card:hover {
  box-shadow: var(--shadow-md);
}

.shot-image-wrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--bg-light-gray);
}

.shot-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-light-gray);
  padding: 1rem;
}

.shot-placeholder i {
  font-size: 3rem;
  color: var(--color-text-muted);
  opacity: 0.5;
}

.shot-placeholder .placeholder-text {
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--color-text-muted);
  margin-top: 0.75rem;
  text-align: center;
}

.shot-preview-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.shot-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.shot-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0 0 8px 0;
}

.shot-card-text {
  font-size: var(--font-size-sm);
  color: var(--color-text-primary);
  line-height: 1.5;
  flex: 1;
  margin: 0;
}

.shot-card-footer {
  padding: 12px 16px;
  background: var(--bg-light-gray);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.shot-sequence {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

/* Empty State */
.shots-empty {
  text-align: center;
  padding: 60px 24px;
  color: var(--color-text-muted);
}

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

.shots-empty p {
  margin-bottom: 20px;
  font-size: 1rem;
}

/* Scene Actions */
.scene-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

/* Button Styles */
.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;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

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

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

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

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

.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;
}

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

.btn-outline-secondary:hover {
  background: var(--bg-light-gray);
  border-color: var(--border-color);
}

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

.btn-danger:hover {
  background: #b91c1c;
  border-color: #b91c1c;
  color: white;
}

/* View All Link */
.view-all-wrapper {
  text-align: center;
  margin-top: 20px;
}

/* Notice */
.scene-notice {
  color: var(--color-success);
  margin-bottom: 16px;
}

/* Responsive */
@media (max-width: 768px) {
  .scene-container {
    padding: 24px 16px;
  }
  
  .scene-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .scene-title {
    font-size: 2rem;
    flex-wrap: wrap;
  }
  
  .scene-card-header .shots-actions {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }
  
  .shots-grid {
    grid-template-columns: 1fr;
  }
  
  .scene-actions {
    flex-direction: column;
  }
  
  .scene-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

.scene-form {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

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

.field-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--color-text);
  font-size: 0.875rem;
}

.field-input,
.field-textarea,
.field-file {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--bg-white);
  color: var(--color-text);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field-input:focus,
.field-textarea:focus,
.field-file:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(74, 143, 255, 0.1);
}

.field-textarea {
  resize: vertical;
  min-height: 120px;
}

.field-help {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--color-text-secondary);
}

.current-shots {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--bg-light-gray);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.shots-title {
  margin: 0 0 1rem 0;
  color: var(--color-text);
  font-size: 1.125rem;
  font-weight: 600;
}

.shots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.shot-item {
  background: var(--bg-white);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.shot-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

.shot-info {
  padding: 1rem;
}

.shot-filename {
  margin: 0 0 0.75rem 0;
  font-size: 0.875rem;
  color: var(--color-text);
  word-break: break-all;
}

.form-submit-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

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

[data-theme="dark"] .field-input,
[data-theme="dark"] .field-textarea,
[data-theme="dark"] .field-file {
  background: #333;
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--color-text);
}

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

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

/* Responsive */
@media (max-width: 768px) {
  .scene-form {
    padding: 1.5rem;
  }
  
  .form-submit-actions {
    flex-direction: column;
  }
  
  .shots-grid {
    grid-template-columns: 1fr;
  }
}

.scene-form-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 4rem;
}

.scene-form-header {
  margin-bottom: 2rem;
  text-align: center;
}

.scene-form-header h1 {
  margin: 0 0 1rem 0;
  color: var(--color-text);
  font-size: 2rem;
  font-weight: 600;
}

.scene-form-subtitle {
  color: var(--color-text-secondary);
  font-size: 1rem;
}

.project-link {
  color: var(--color-primary);
  text-decoration: none;
}

.project-link:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.scene-form-actions {
  margin-top: 2rem;
  text-align: center;
}

/* Dark theme adjustments */
[data-theme="dark"] .scene-form-container {
  color: var(--color-text);
}

/* Responsive */
@media (max-width: 768px) {
  .scene-form-container {
    padding: 1.5rem;
  }
  
  .scene-form-header h1 {
    font-size: 1.5rem;
  }
}