/**
 * Mini Gallery Settings View Styles
 * 
 * Premium styling for the module settings page with toggle switches
 * and modern card-based layout.
 */

/* ============================================
   SETTINGS WRAPPER
   ============================================ */
.mgwpp-settings-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.mgwpp-settings-form {
  background: transparent;
}

/* ============================================
   NOTICE STYLES
   ============================================ */
.mgwpp-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 24px;
  animation: slideIn 0.3s ease-out;
}

.mgwpp-notice-success {
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.15),
    rgba(5, 150, 105, 0.1)
  );
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #059669;
}

.mgwpp-notice .dashicons {
  font-size: 24px;
  width: 24px;
  height: 24px;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   SECTION STYLES
   ============================================ */
.mgwpp-settings-section {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.mgwpp-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 8px 0;
}

.mgwpp-section-title .dashicons {
  color: #07babe;
  font-size: 22px;
  width: 22px;
  height: 22px;
}

.mgwpp-section-description {
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 24px 0;
  line-height: 1.6;
}

/* ============================================
   MODULES GRID
   ============================================ */
.mgwpp-modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

/* ============================================
   MODULE CARD
   ============================================ */
.mgwpp-module-card {
  background: linear-gradient(
    145deg,
    rgba(30, 30, 50, 0.8),
    rgba(20, 20, 35, 0.9)
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.mgwpp-module-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #07babe, #06a0a8);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mgwpp-module-card:hover {
  transform: translateY(-2px);
  border-color: rgba(7, 186, 190, 0.3);
  box-shadow: 0 8px 32px rgba(7, 186, 190, 0.15);
}

.mgwpp-module-card:hover::before {
  opacity: 1;
}

.mgwpp-module-enabled {
  border-color: rgba(16, 185, 129, 0.3);
}

.mgwpp-module-enabled::before {
  background: linear-gradient(90deg, #10b981, #34d399);
  opacity: 1;
}

.mgwpp-module-disabled {
  opacity: 0.7;
}

/* ============================================
   MODULE HEADER
   ============================================ */
.mgwpp-module-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.mgwpp-module-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(7, 186, 190, 0.2),
    rgba(6, 160, 168, 0.1)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mgwpp-module-icon .dashicons {
  font-size: 24px;
  width: 24px;
  height: 24px;
  color: #07babe;
}

.mgwpp-module-enabled .mgwpp-module-icon {
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.2),
    rgba(52, 211, 153, 0.1)
  );
}

.mgwpp-module-enabled .mgwpp-module-icon .dashicons {
  color: #34d399;
}

.mgwpp-module-title-wrap {
  flex: 1;
}

.mgwpp-module-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
  line-height: 1.4;
}

/* ============================================
   MODULE BADGE
   ============================================ */
.mgwpp-module-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.mgwpp-badge-beta {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(245, 158, 11, 0);
  }
}

/* ============================================
   MODULE BODY
   ============================================ */
.mgwpp-module-body {
  margin-bottom: 20px;
}

.mgwpp-module-description {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

/* ============================================
   MODULE FOOTER & TOGGLE
   ============================================ */
.mgwpp-module-footer {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mgwpp-toggle-switch {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.mgwpp-toggle-switch input[type="checkbox"] {
  display: none;
}

.mgwpp-toggle-slider {
  position: relative;
  width: 52px;
  height: 28px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.mgwpp-toggle-slider::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.mgwpp-toggle-switch input:checked + .mgwpp-toggle-slider {
  background: linear-gradient(135deg, #10b981, #059669);
}

.mgwpp-toggle-switch input:checked + .mgwpp-toggle-slider::before {
  transform: translateX(24px);
  background: #fff;
}

.mgwpp-toggle-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.mgwpp-toggle-switch input:checked ~ .mgwpp-toggle-label {
  color: #10b981;
}

/* ============================================
   SETTINGS ACTIONS
   ============================================ */
.mgwpp-settings-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Button styles now in global-components.css */

/* ============================================
   INFO SECTION
   ============================================ */
.mgwpp-settings-info {
  margin-top: 32px;
}

.mgwpp-info-card {
  display: flex;
  gap: 16px;
  padding: 20px 24px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
}

.mgwpp-info-card > .dashicons {
  color: #60a5fa;
  font-size: 24px;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.mgwpp-info-content h4 {
  margin: 0 0 8px 0;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
}

.mgwpp-info-content p {
  margin: 0 0 12px 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.6;
}

.mgwpp-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #60a5fa;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.mgwpp-link:hover {
  color: #07babe;
}

.mgwpp-link .dashicons {
  font-size: 14px;
  width: 14px;
  height: 14px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 782px) {
  .mgwpp-settings-wrap {
    padding: 16px;
  }

  .mgwpp-modules-grid {
    grid-template-columns: 1fr;
  }

  .mgwpp-settings-actions {
    flex-direction: column;
  }

  .mgwpp-btn {
    justify-content: center;
  }

  .mgwpp-info-card {
    flex-direction: column;
  }
}

/* ============================================
   DASHBOARD HEADER ICON
   ============================================ */
.mgwpp-dashboard-header h1 .dashicons {
  margin-right: 10px;
  color: #07babe;
  font-size: 28px;
  width: 28px;
  height: 28px;
  vertical-align: middle;
}
