/* Dashboard Premium Styles - Matches Galleries Design */
/* Fonts imported from variables.css */

/* Dashboard Header Enhancement */
.mgwpp-dashboard-header {
  text-align: left;
  margin-bottom: 50px !important;
}

.mgwpp-dashboard-header h1 {
  margin-bottom: 10px !important;
}

.mgwpp-header-subtitle {
  color: var(--mg-text-muted);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* Stats Grid - Dashboard Specific */
.mgwpp-dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 50px;
}

/* Stat Cards - Modern Design */
.mgwpp-stat-card {
  background: var(--mg-bg-card);
  border: 1px solid var(--mg-border);
  border-radius: var(--mg-radius-md);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
}

.mgwpp-stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--mg-primary), var(--mg-secondary));
  opacity: 0;
  transition: opacity 0.3s;
}

.mgwpp-stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--mg-primary);
  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.15),
    0 0 20px var(--mg-primary-glow);
}

.mgwpp-stat-card:hover::before {
  opacity: 1;
}

.mgwpp-stat-card-link {
  text-decoration: none !important;
  display: block;
}

.mgwpp-stat-card-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  position: relative;
}

/* Icon Wrapper with Theme Colors */
.mgwpp-stat-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s;
}

.mgwpp-stat-icon-wrap .dashicons {
  font-size: 28px;
  width: 28px;
  height: 28px;
}

/* Theme Variations */
.mgwpp-stat-primary .mgwpp-stat-icon-wrap {
  background: linear-gradient(
    135deg,
    rgba(7, 186, 190, 0.15),
    rgba(7, 186, 190, 0.05)
  );
  color: #07babe;
}

.mgwpp-stat-secondary .mgwpp-stat-icon-wrap {
  background: linear-gradient(
    135deg,
    rgba(5, 160, 168, 0.15),
    rgba(5, 160, 168, 0.05)
  );
  color: #05a0a8;
}

.mgwpp-stat-accent .mgwpp-stat-icon-wrap {
  background: linear-gradient(
    135deg,
    rgba(255, 107, 107, 0.15),
    rgba(255, 107, 107, 0.05)
  );
  color: #ff6b6b;
}

.mgwpp-stat-gradient .mgwpp-stat-icon-wrap {
  background: linear-gradient(
    135deg,
    rgba(7, 186, 190, 0.15),
    rgba(5, 160, 168, 0.15)
  );
  color: #07babe;
}

.mgwpp-stat-canvas .mgwpp-stat-icon-wrap {
  background: linear-gradient(
    135deg,
    rgba(250, 112, 154, 0.15),
    rgba(254, 225, 64, 0.15)
  );
  color: #fa709a;
}

/* Stat Info */
.mgwpp-stat-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mgwpp-stat-count {
  font-family: "Orbitron", sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--mg-text-main);
  line-height: 1;
  letter-spacing: -0.02em;
}

.mgwpp-stat-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--mg-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Arrow indicator */
.mgwpp-stat-arrow {
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s;
  color: var(--mg-primary);
}

.mgwpp-stat-card:hover .mgwpp-stat-arrow {
  opacity: 1;
  transform: translateX(0);
}

.mgwpp-stat-arrow .dashicons {
  font-size: 24px;
  width: 24px;
  height: 24px;
}

/* Quick Actions Section */
.mgwpp-quick-actions-section {
  margin-top: 40px;
}

.mgwpp-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--mg-text-main);
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px dashed var(--mg-border);
}

.mgwpp-section-title .dashicons {
  color: var(--mg-primary);
  font-size: 24px;
  width: 24px;
  height: 24px;
}

.mgwpp-quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
}

.mgwpp-quick-action {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  background: var(--mg-bg-card);
  border: 1px solid var(--mg-border);
  border-radius: var(--mg-radius-sm);
  color: var(--mg-text-main) !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.mgwpp-quick-action .dashicons {
  color: var(--mg-primary);
  font-size: 20px;
  width: 20px;
  height: 20px;
  transition: transform 0.3s;
}

.mgwpp-quick-action:hover {
  background: var(--mg-primary);
  border-color: var(--mg-primary);
  color: #fff !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px var(--mg-primary-glow);
}

.mgwpp-quick-action:hover .dashicons {
  color: #fff;
  transform: scale(1.1);
}

/* Dark Mode Enhancements */
body.mgwpp-dark-mode .mgwpp-stat-card {
  background: rgba(25, 25, 35, 0.6);
}

body.mgwpp-dark-mode .mgwpp-stat-card:hover {
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.5),
    0 0 30px var(--mg-primary-glow);
}

body.mgwpp-dark-mode .mgwpp-quick-action {
  background: rgba(25, 25, 35, 0.6);
}

body.mgwpp-dark-mode .mgwpp-quick-action:hover {
  color: #000 !important;
}

/* Responsive */
@media (max-width: 768px) {
  .mgwpp-dashboard-stats {
    grid-template-columns: 1fr 1fr;
  }

  .mgwpp-stat-count {
    font-size: 24px;
  }

  .mgwpp-stat-card-inner {
    padding: 18px;
    gap: 15px;
  }

  .mgwpp-stat-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }

  .mgwpp-stat-icon-wrap .dashicons {
    font-size: 22px;
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 480px) {
  .mgwpp-dashboard-stats {
    grid-template-columns: 1fr;
  }

  .mgwpp-quick-actions-grid {
    grid-template-columns: 1fr;
  }
}

/* Animation on load */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mgwpp-stat-card {
  animation: fadeInUp 0.5s ease-out backwards;
}

.mgwpp-stat-card:nth-child(1) {
  animation-delay: 0.05s;
}
.mgwpp-stat-card:nth-child(2) {
  animation-delay: 0.1s;
}
.mgwpp-stat-card:nth-child(3) {
  animation-delay: 0.15s;
}
.mgwpp-stat-card:nth-child(4) {
  animation-delay: 0.2s;
}
.mgwpp-stat-card:nth-child(5) {
  animation-delay: 0.25s;
}

.mgwpp-quick-action {
  animation: fadeInUp 0.5s ease-out backwards;
  animation-delay: 0.3s;
}
