/* Reports Styles */

.reports-page {
  padding: 0;
}

/* Report Types Grid */
.report-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

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

.report-type-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #8B5CF6, #EC4899);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.report-type-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.report-type-card:hover::before {
  opacity: 1;
}

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

.report-type-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: white;
  margin-bottom: 12px;
}

.report-type-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

/* Recent Reports */
.recent-reports-section {
  margin-bottom: 48px;
}

.recent-reports-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  margin-bottom: 20px;
}

.reports-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.report-row {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.report-row:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(139, 92, 246, 0.3);
}

.report-icon-small {
  font-size: 1.5rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 8px;
  flex-shrink: 0;
}

.report-info {
  flex: 1;
}

.report-name {
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 4px;
}

.report-meta {
  display: flex;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  flex-wrap: wrap;
}

.report-format {
  text-transform: uppercase;
  color: #8B5CF6;
  font-weight: 500;
}

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

/* Quick Export Section */
.quick-export-section {
  margin-bottom: 48px;
}

.quick-export-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  margin-bottom: 8px;
}

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

.export-option {
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.export-option:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(139, 92, 246, 0.3);
}

.export-option h3 {
  font-size: 1rem;
  font-weight: 600;
  color: white;
  margin-bottom: 8px;
}

.export-option p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  margin-bottom: 16px;
}

/* Report Form */
.report-form .report-type-selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.report-form .type-option {
  position: relative;
  cursor: pointer;
}

.report-form .type-option input[type="radio"] {
  position: absolute;
  opacity: 0;
}

.report-form .type-card {
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  text-align: center;
  transition: all 0.2s ease;
}

.report-form .type-option input[type="radio"]:checked + .type-card {
  background: rgba(139, 92, 246, 0.2);
  border-color: #8B5CF6;
}

.report-form .type-option:hover .type-card {
  border-color: rgba(139, 92, 246, 0.5);
}

.report-form .type-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 8px;
}

.report-form .type-name {
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Date Range Options */
.date-range-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.radio-label:hover {
  border-color: rgba(139, 92, 246, 0.5);
}

.radio-label input[type="radio"] {
  margin: 0;
}

.radio-label input[type="radio"]:checked {
  accent-color: #8B5CF6;
}

.radio-label span {
  color: white;
  font-size: 0.875rem;
}

/* Metrics Checkboxes */
.metrics-checkboxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

/* Format Options */
.format-options {
  display: flex;
  gap: 12px;
}

.format-options .radio-label {
  flex: 1;
  justify-content: center;
}

/* Report Detail Page */
.report-detail-page {
  padding: 0;
}

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

.report-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
}

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

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

/* Report Sections */
.report-section {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.report-section:last-child {
  border-bottom: none;
}

.report-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  margin-bottom: 20px;
}

/* Summary Grid */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.summary-card {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(236, 72, 153, 0.1));
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: center;
}

.summary-icon {
  font-size: 2rem;
}

.summary-content {
  flex: 1;
}

.summary-value {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  line-height: 1;
  margin-bottom: 4px;
}

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

/* Platform Breakdown Table */
.platform-breakdown-table {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  overflow: hidden;
}

.data-table thead {
  background: rgba(139, 92, 246, 0.1);
}

.data-table th {
  padding: 16px;
  text-align: left;
  font-weight: 600;
  color: white;
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.data-table td {
  padding: 16px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

.platform-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Top Performing Posts */
.top-posts-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.top-post-card {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

.post-rank {
  font-size: 1.5rem;
  font-weight: 700;
  color: #8B5CF6;
  width: 40px;
  text-align: center;
  flex-shrink: 0;
}

.post-platform-badge {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.post-content-section {
  flex: 1;
}

.post-content-preview {
  color: white;
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 8px;
}

.post-date {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
}

.post-metrics {
  display: flex;
  gap: 24px;
}

.metric {
  text-align: center;
}

.metric-value {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
}

.metric-label {
  display: block;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Campaign Breakdown */
.campaigns-breakdown-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.campaign-breakdown-card {
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

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

.campaign-breakdown-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: white;
}

.campaign-breakdown-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.breakdown-metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.breakdown-metric .metric-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
}

.breakdown-metric .metric-value {
  color: white;
  font-size: 1.125rem;
  font-weight: 600;
}

/* Insights */
.insights-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.insight-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 12px;
}

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

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

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

/* Responsive Design */
@media (max-width: 768px) {
  .report-types-grid {
    grid-template-columns: 1fr;
  }

  .report-header {
    flex-direction: column;
    gap: 16px;
  }

  .header-actions {
    width: 100%;
  }

  .header-actions .btn {
    flex: 1;
  }

  .summary-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .summary-value {
    font-size: 1.5rem;
  }

  .platform-breakdown-table {
    font-size: 0.75rem;
  }

  .data-table th,
  .data-table td {
    padding: 8px;
  }

  .top-post-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .post-metrics {
    width: 100%;
    justify-content: space-around;
  }

  .campaigns-breakdown-list {
    grid-template-columns: 1fr;
  }

  .insights-list {
    grid-template-columns: 1fr;
  }

  .export-options-grid {
    grid-template-columns: 1fr;
  }

  .date-range-options {
    grid-template-columns: 1fr 1fr;
  }

  .format-options {
    flex-direction: column;
  }
}

