/* ============================================================
   Instagram Intelligence Dashboard — gamine-ig-dashboard.css
   Prefix: igd-  (avoids collision with gd- base styles)
   Requires: gamine-dashboard.css loaded first
   ============================================================ */

/* --- Updated timestamp --- */
.igd-updated {
  text-align: center;
  color: #7A6352;
  margin: 0 0 32px;
  font-size: 14px;
}

/* --- KPI Grid --- */
.igd-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  padding: 0 48px;
  margin-bottom: 40px;
}

.igd-kpi {
  background: #FBF3E8;
  border-radius: 16px;
  padding: 20px 24px;
  border: 1px solid rgba(90, 60, 30, 0.08);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.igd-kpi-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7A6352;
}

.igd-kpi-value {
  font-size: 28px;
  font-weight: 700;
  color: #3D2C1E;
}

/* --- Charts Grid --- */
.igd-charts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding: 0 48px;
  margin-bottom: 40px;
}

.igd-chart-card {
  background: #FBF3E8;
  border-radius: 20px;
  padding: 24px;
  border: 1px solid rgba(90, 60, 30, 0.08);
}

.igd-chart-card h3 {
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #3D2C1E;
  margin-bottom: 16px;
}

.igd-chart-wrap {
  height: 300px;
  position: relative;
}

/* --- Tables Grid --- */
.igd-tables-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding: 0 48px;
  margin-bottom: 40px;
}

.igd-table-card {
  background: #FBF3E8;
  border-radius: 20px;
  padding: 24px;
  border: 1px solid rgba(90, 60, 30, 0.08);
}

.igd-table-card h3 {
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #3D2C1E;
  margin-bottom: 16px;
}

.igd-table-card table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.igd-table-card th {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 2px solid rgba(90, 60, 30, 0.15);
  color: #7A6352;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.igd-table-card td {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(90, 60, 30, 0.06);
  color: #3D2C1E;
}

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

/* --- Recommendations --- */
.igd-recommendations {
  padding: 0 48px 80px;
}

.igd-recommendations h2 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  color: #3D2C1E;
  margin-bottom: 24px;
}

.igd-rec-card {
  background: #FBF3E8;
  border-radius: 16px;
  padding: 20px 24px;
  border: 1px solid rgba(90, 60, 30, 0.08);
  margin-bottom: 16px;
}

.igd-rec-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: #E8784A;
  margin-bottom: 8px;
}

.igd-rec-card p {
  font-size: 14px;
  color: #7A6352;
  line-height: 1.5;
}

/* --- Refresh Button --- */
.igd-refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 9999px;
  background: #E8784A;
  color: #ffffff;
  border: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s;
  margin-right: 12px;
}

.igd-refresh-btn:hover {
  background: #d06a3e;
}

/* --- Header Actions --- */
.igd-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1024px) {
  .igd-kpi-grid {
    grid-template-columns: repeat(3, 1fr);
    padding: 0 32px;
  }

  .igd-charts-grid {
    grid-template-columns: 1fr;
    padding: 0 32px;
  }

  .igd-tables-grid {
    grid-template-columns: 1fr;
    padding: 0 32px;
  }

  .igd-recommendations {
    padding: 0 32px 80px;
  }
}

@media (max-width: 640px) {
  .igd-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 20px;
  }

  .igd-kpi-value {
    font-size: 22px;
  }

  .igd-charts-grid {
    padding: 0 20px;
  }

  .igd-tables-grid {
    padding: 0 20px;
  }

  .igd-recommendations {
    padding: 0 20px 40px;
  }
}
