/* ==========================================================================
   EPIC UTTARAKHAND NEWS - PUBLISHER / CITIZEN JOURNALIST STUDIO DASHBOARD
   Responsive Across Mobile, Tablet, Laptop, and Desktop Screens
   ========================================================================== */

.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
  width: 100%;
}

/* Sidebar Navigation in Dashboard */
.dashboard-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.25rem 0.85rem;
  height: fit-content;
  position: sticky;
  top: 80px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.publisher-profile-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.75rem 0 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1rem;
}

.publisher-avatar-dash {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-saffron));
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
  border: 2px solid var(--accent-gold);
  box-shadow: var(--shadow-glow-gold);
}

.publisher-name {
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.publisher-handle {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.dash-nav-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.dash-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-fast);
  user-select: none;
}

.dash-nav-item:hover, .dash-nav-item.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.dash-nav-item.active {
  background: rgba(255, 179, 0, 0.12);
  color: var(--accent-gold);
  border-left: 3px solid var(--accent-gold);
  font-weight: 700;
}

/* Dashboard Main Content */
.dashboard-main {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  min-width: 0; /* Prevents grid blowout */
}

/* Stat Cards Overview Grid */
.stats-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.stat-metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.stat-metric-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-cyan);
}

.stat-metric-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-cyan);
}

.stat-metric-card.gold-border::after {
  background: var(--accent-gold);
}

.stat-metric-card.green-border::after {
  background: var(--accent-green);
}

.metric-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.metric-value {
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.1;
}

.metric-delta {
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.5rem;
}

.delta-positive { color: var(--accent-green); }
.delta-neutral { color: var(--text-secondary); }

/* Monetization & Wallet Card Banner */
.wallet-hero-card {
  background: linear-gradient(135deg, rgba(20, 30, 50, 0.95), rgba(10, 20, 35, 0.95));
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  padding: 1.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  box-shadow: var(--shadow-glow-gold);
  backdrop-filter: blur(20px);
}

.wallet-balance-info h3 {
  font-size: 0.85rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}

.wallet-amount-big {
  font-size: 2.5rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
}

.wallet-subtext {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 0.4rem;
}

/* Upload & Submission Form Studio */
.upload-studio-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group small {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Local Upload Studio Toggles & Dropzones */
.upload-mode-selector {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  margin-bottom: 1rem;
  gap: 0.35rem;
}

.upload-mode-btn {
  flex: 1;
  padding: 0.55rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.upload-mode-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.upload-mode-btn.active {
  background: var(--accent-cyan);
  color: #030712;
  box-shadow: var(--shadow-glow-cyan);
}

.local-upload-dropzone {
  border: 2px dashed rgba(0, 229, 255, 0.35);
  background: rgba(0, 229, 255, 0.03);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  position: relative;
  user-select: none;
}

.local-upload-dropzone:hover, .local-upload-dropzone.dragover {
  border-color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.08);
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.2);
  transform: translateY(-2px);
}

.dropzone-upload-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-glow-cyan);
  animation: pulse-cyan-slow 3s infinite ease-in-out;
}

@keyframes pulse-cyan-slow {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); box-shadow: 0 0 20px var(--accent-cyan); }
}

.dropzone-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.dropzone-title span {
  color: var(--accent-cyan);
  text-decoration: underline;
}

.dropzone-subtext {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Local Video & Thumbnail Preview Cards */
.local-preview-card {
  background: rgba(8, 14, 26, 0.95);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: var(--shadow-md);
  margin-top: 0.5rem;
  animation: fade-in-up 0.3s ease;
}

.local-preview-video-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  background: #000;
  border: 1px solid var(--border-subtle);
  object-fit: contain;
}

.local-preview-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.82rem;
}

.local-meta-chips {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.local-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.local-chip.chip-success {
  background: rgba(0, 230, 118, 0.12);
  border-color: var(--accent-green);
  color: var(--accent-green);
  font-weight: 700;
}

.local-thumb-preview-img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

/* Simulated Upload Progress Bar */
.upload-progress-container {
  display: none;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-top: 1.25rem;
}

.upload-progress-bar-wrap {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 0.65rem 0 0.35rem;
}

.upload-progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-gold));
  border-radius: var(--radius-full);
  transition: width 0.2s ease;
}

.file-dropzone {
  border: 2px dashed rgba(0, 229, 255, 0.3);
  background: rgba(0, 229, 255, 0.02);
  border-radius: var(--radius-md);
  padding: 2rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.file-dropzone:hover {
  border-color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.06);
}

.dropzone-icon {
  font-size: 2.2rem;
  color: var(--accent-cyan);
}

/* Submissions Table */
.data-table-container {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 600px;
}

.data-table th {
  background: rgba(255, 255, 255, 0.03);
  padding: 0.9rem 1.25rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.data-table td {
  padding: 1rem 1.25rem;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.status-published {
  background: rgba(0, 230, 118, 0.15);
  color: var(--accent-green);
}

.status-pending {
  background: rgba(255, 179, 0, 0.15);
  color: var(--accent-gold);
}

.status-rejected {
  background: rgba(255, 45, 85, 0.15);
  color: var(--accent-red);
}

/* ==========================================================================
   RESPONSIVE RULES FOR DASHBOARD
   ========================================================================== */
@media (max-width: 992px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .dashboard-sidebar {
    position: static;
    display: flex;
    flex-direction: column;
    padding: 1rem;
  }

  .publisher-profile-badge {
    flex-direction: row;
    text-align: left;
    gap: 1rem;
    padding-bottom: 0.85rem;
    margin-bottom: 0.85rem;
  }

  .publisher-avatar-dash {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .dash-nav-menu {
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.35rem;
  }
  .dash-nav-menu::-webkit-scrollbar { display: none; }

  .dash-nav-item {
    white-space: nowrap;
    scroll-snap-align: start;
    padding: 0.55rem 0.95rem;
    font-size: 0.85rem;
  }

  .dash-nav-item.active {
    border-left: none;
    border-bottom: 3px solid var(--accent-gold);
  }

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

@media (max-width: 600px) {
  .wallet-hero-card {
    padding: 1.25rem;
  }

  .wallet-amount-big {
    font-size: 2rem;
  }

  .upload-studio-card {
    padding: 1.25rem 1rem;
  }

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

/* ==========================================================================
   MULTI-STEP CREATOR WORKFLOW (STEP 1: UPLOAD -> STEP 2: EDITOR)
   ========================================================================== */
.studio-step-progress-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  background: rgba(8, 14, 26, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 0.85rem 1.5rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.studio-step-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  opacity: 0.6;
  transition: all var(--transition-fast);
  user-select: none;
}

.studio-step-item:hover {
  opacity: 0.9;
}

.studio-step-item.active {
  opacity: 1;
}

.step-num-pill {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  border: 1.5px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.studio-step-item.active .step-num-pill {
  background: var(--accent-cyan);
  color: #030712;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.6);
}

.studio-step-item.completed .step-num-pill {
  background: var(--accent-green);
  color: #030712;
  border-color: var(--accent-green);
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.4);
}

.step-text-wrap {
  display: flex;
  flex-direction: column;
}

.step-sub-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 700;
}

.studio-step-item.active .step-sub-label {
  color: var(--accent-cyan);
}

.step-title-text {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-secondary);
}

.studio-step-item.active .step-title-text {
  color: #fff;
}

.studio-step-connector {
  width: 45px;
  height: 2px;
  background: var(--border-subtle);
  position: relative;
}

.studio-step-connector.completed {
  background: var(--accent-green);
}

.step-back-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 229, 255, 0.06);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: var(--radius-lg);
  padding: 0.65rem 1rem;
  margin-bottom: 1.25rem;
}
