/* Post Optimizer Styles */

.best-times-page,
.bulk-schedule-page {
  max-width: 1400px;
  margin: 0 auto;
}

/* Platform Recommendations */
.platforms-recommendations {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 48px;
}

.platform-recommendation-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 32px;
  transition: all 0.2s ease;
}

.platform-recommendation-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(167, 139, 250, 0.4);
}

.platform-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.platform-title {
  display: flex;
  align-items: center;
  gap: 16px;
}

.platform-icon-large {
  font-size: 2.5rem;
}

.platform-title h2 {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.platform-avg-engagement {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.engagement-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.engagement-value {
  color: #34d399;
  font-size: 2rem;
  font-weight: 700;
}

/* Times Section */
.times-section {
  margin-bottom: 24px;
}

.times-section h3 {
  color: white;
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 16px 0;
}

.times-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.time-card {
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.2s ease;
}

.time-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(167, 139, 250, 0.4);
  transform: translateY(-2px);
}

.time-card-best {
  border-color: rgba(16, 185, 129, 0.4);
}

.time-score {
  font-size: 2rem;
  font-weight: 700;
  color: #34d399;
}

.time-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.time-day {
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
}

.time-hour {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

.score-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.score-fill {
  height: 100%;
  background: linear-gradient(90deg, #34d399 0%, #10b981 100%);
  transition: width 0.3s ease;
}

.times-list-compact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.time-item-compact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
}

.time-text {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
}

.score-badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}

.score-low {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.recommendation-actions {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Insights Section */
.insights-section {
  margin-bottom: 48px;
}

.insights-section h2 {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 24px 0;
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.insight-card {
  padding: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  gap: 16px;
  transition: all 0.2s ease;
}

.insight-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(167, 139, 250, 0.4);
}

.insight-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.insight-content h3 {
  color: white;
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 8px 0;
}

.insight-content p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
}

/* Auto-Optimize Banner */
.auto-optimize-banner {
  padding: 32px;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.2) 0%, rgba(233, 69, 96, 0.2) 100%);
  border: 1px solid rgba(167, 139, 250, 0.3);
  border-radius: 12px;
}

.banner-content {
  display: flex;
  align-items: center;
  gap: 24px;
}

.banner-icon {
  font-size: 3rem;
  flex-shrink: 0;
}

.banner-text {
  flex: 1;
}

.banner-text h3 {
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 8px 0;
}

.banner-text p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  margin: 0;
}

/* Bulk Schedule Page */
.bulk-upload-section {
  margin-bottom: 48px;
}

.upload-methods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.upload-method-card {
  padding: 32px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  text-align: center;
}

.method-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.upload-method-card h2 {
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 12px 0;
}

.upload-method-card > p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  margin: 0 0 24px 0;
}

.upload-dropzone {
  margin-bottom: 24px;
  padding: 48px 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px dashed rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.upload-dropzone:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(167, 139, 250, 0.6);
}

.dropzone-content {
  text-align: center;
}

.dropzone-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.dropzone-text {
  color: white;
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 4px 0;
}

.dropzone-subtext {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  margin: 0;
}

.file-input-hidden {
  display: none;
}

.upload-requirements {
  text-align: left;
}

.upload-requirements h4 {
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0 0 12px 0;
}

.upload-requirements ul {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  margin: 0 0 16px 0;
  padding-left: 20px;
}

.upload-requirements li {
  margin-bottom: 6px;
}

.template-link {
  color: #a78bfa;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.template-link:hover {
  color: #c4b5fd;
}

.integration-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.integration-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.integration-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(167, 139, 250, 0.4);
}

.integration-icon {
  width: 24px;
  height: 24px;
}

.integration-benefits {
  text-align: left;
}

.integration-benefits h4 {
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0 0 12px 0;
}

.integration-benefits ul {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  margin: 0;
  padding-left: 20px;
}

.integration-benefits li {
  margin-bottom: 6px;
}

/* Preview Section */
.bulk-preview-section {
  margin-bottom: 48px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.preview-header h2 {
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.preview-actions {
  display: flex;
  gap: 12px;
}

.preview-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.preview-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.preview-stat .stat-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.preview-stat .stat-value {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
}

.preview-table-container {
  overflow-x: auto;
}

.preview-table {
  width: 100%;
  border-collapse: collapse;
}

.preview-table thead {
  background: rgba(255, 255, 255, 0.05);
}

.preview-table th {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  font-weight: 600;
  text-align: left;
  padding: 12px 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.preview-table td {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.content-preview {
  max-width: 300px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(167, 139, 250, 0.2);
  border-radius: 6px;
  font-size: 0.75rem;
  color: #a78bfa;
  font-weight: 600;
}

.status-badge.status-ready {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

/* Help Section */
.bulk-help-section {
  margin-bottom: 32px;
}

.bulk-help-section h2 {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 24px 0;
}

.help-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.help-card {
  padding: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  text-align: center;
  transition: all 0.2s ease;
}

.help-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(167, 139, 250, 0.4);
}

.help-card h3 {
  color: white;
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 12px 0;
}

.help-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0 0 16px 0;
}

.help-link {
  color: #a78bfa;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.help-link:hover {
  color: #c4b5fd;
}

/* Responsive */
@media (max-width: 1024px) {
  .insights-grid {
    grid-template-columns: 1fr;
  }

  .upload-methods {
    grid-template-columns: 1fr;
  }

  .help-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .times-grid {
    grid-template-columns: 1fr;
  }

  .platform-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

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

  .banner-content {
    flex-direction: column;
    text-align: center;
  }

  .preview-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

