/* Campaigns Styles */

.campaigns-page {
  padding: 0;
}

.campaigns-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 8px;
}

/* Campaigns Grid */
.campaigns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 24px;
}

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

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

.campaign-card:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.campaign-card:hover::before {
  opacity: 1;
}

.campaign-header {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.campaign-status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}

.campaign-status-indicator.status-active {
  background: #10B981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.campaign-status-indicator.status-planning {
  background: #FBBF24;
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.5);
}

.campaign-status-indicator.status-completed {
  background: #6B7280;
}

.campaign-status-indicator.status-on_hold {
  background: #EF4444;
}

.campaign-title-section {
  flex: 1;
}

.campaign-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: white;
  margin-bottom: 8px;
}

.campaign-meta-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.campaign-type-badge {
  padding: 4px 10px;
  background: rgba(59, 130, 246, 0.2);
  color: #60A5FA;
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.campaign-description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 16px;
}

/* Progress Section */
.campaign-progress-section {
  margin-bottom: 16px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.875rem;
}

.progress-header span:first-child {
  color: rgba(255, 255, 255, 0.7);
}

.progress-percentage {
  color: #8B5CF6;
  font-weight: 600;
}

.progress-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #8B5CF6, #EC4899);
  border-radius: 4px;
  transition: width 0.3s ease;
}

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

/* Campaign Dates */
.campaign-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
}

.date-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

.date-value {
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Campaign Stats Grid */
.campaign-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.stat-item {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
}

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

.stat-item .stat-value {
  font-size: 1rem;
  font-weight: 600;
  color: white;
  line-height: 1;
}

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

/* Campaign Actions */
.campaign-actions {
  display: flex;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

/* Campaign Detail Page */
.campaign-detail-page {
  padding: 0;
}

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

.header-left {
  flex: 1;
}

.back-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.875rem;
  margin-bottom: 12px;
  display: inline-block;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: white;
}

.campaign-title-section h1 {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
}

.campaign-meta-tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

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

/* Campaign Overview Grid */
.campaign-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

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

.overview-header {
  margin-bottom: 24px;
}

.overview-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: white;
}

/* Progress Circle */
.progress-circle-container {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.progress-circle {
  position: relative;
  width: 200px;
  height: 200px;
}

.progress-circle svg {
  transform: rotate(-90deg);
}

.progress-circle circle {
  fill: none;
  stroke-width: 12;
}

.progress-bg {
  stroke: rgba(255, 255, 255, 0.1);
}

.progress-fg {
  stroke: url(#gradient);
  stroke-linecap: round;
  transition: stroke-dashoffset 0.5s ease;
}

.progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.progress-percent {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  line-height: 1;
  margin-bottom: 4px;
}

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

.progress-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-row:last-child {
  border-bottom: none;
}

.stat-row span:first-child {
  color: rgba(255, 255, 255, 0.7);
}

.stat-row strong {
  color: white;
}

/* Stats List */
.stats-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stat-item-large {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
}

.stat-item-large .stat-icon {
  font-size: 2rem;
}

.stat-item-large .stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  line-height: 1;
  margin-bottom: 4px;
}

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

/* Campaign Sections */
.campaign-section {
  margin-bottom: 32px;
}

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

.campaign-section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: white;
}

.campaign-description-box {
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

/* Tasks List */
.tasks-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

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

.task-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.task-content {
  flex: 1;
}

.task-title {
  color: white;
  font-size: 0.875rem;
  margin-bottom: 4px;
}

.task-title.completed {
  text-decoration: line-through;
  color: rgba(255, 255, 255, 0.5);
}

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

.priority-badge {
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 500;
}

.priority-badge.priority-high {
  background: rgba(239, 68, 68, 0.2);
  color: #F87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Campaign Posts Grid */
.campaign-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.campaign-post-card {
  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;
}

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

.post-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.platform-badge {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

.platform-badge.platform-x {
  background: rgba(59, 130, 246, 0.2);
  color: #60A5FA;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.platform-badge.platform-linkedin {
  background: rgba(14, 118, 168, 0.2);
  color: #38BDF8;
  border: 1px solid rgba(14, 118, 168, 0.3);
}

.platform-badge.platform-facebook {
  background: rgba(59, 130, 246, 0.2);
  color: #60A5FA;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.platform-badge.platform-instagram {
  background: rgba(236, 72, 153, 0.2);
  color: #EC4899;
  border: 1px solid rgba(236, 72, 153, 0.3);
}

.post-content-preview {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 12px;
}

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

/* Team Members List */
.team-members-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.team-member-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.member-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  flex-shrink: 0;
}

.member-info {
  flex: 1;
}

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

.member-role {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
}

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

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

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

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

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

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

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

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

/* Form Row */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

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

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

  .header-actions {
    width: 100%;
    display: flex;
    gap: 8px;
  }

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

  .campaign-overview-grid {
    grid-template-columns: 1fr;
  }

  .campaign-posts-grid {
    grid-template-columns: 1fr;
  }

  .campaign-type-selector {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .platform-checkboxes {
    grid-template-columns: 1fr 1fr;
  }
}

