/* ===================================================================
   GLOBAL THEME VARIABLES — NOW DRIVEN BY SHORTCODE COLORS
=================================================================== */
/* Shortcode variables (injected dynamically via PHP)
   --lh-sc-primary
   --lh-sc-accent
   --lh-sc-text
   --lh-sc-bg
*/

/* ===================================================================
   GLOBAL THEME VARIABLES (Dashboard Defaults — SAFE, now compatible)
=================================================================== */
:root {
  /* Background + surfaces */
  --lh-bg: #ffffff;
  --lh-surface: #f9f9f9;

  /* Borders */
  --lh-border: #e0e0e0;

  /* Text */
  --lh-text: #222;
  --lh-text-muted: #666;

  /* Semantic colors */
  --lh-success: #28a745;
  --lh-warning: #ffc107;
  --lh-danger: #dc3545;
  --lh-muted: #aaa;

  /* Shadows */
  --lh-shadow: 0 2px 6px rgba(0,0,0,0.05);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --lh-bg: #ffffff; /* force light theme */
    --lh-surface: #f9f9f9;
    --lh-border: #e0e0e0;
    --lh-text: #222;
    --lh-text-muted: #666;
    --lh-shadow: 0 2px 6px rgba(0,0,0,0.05);
  }
}


/* ===================================================================
   CORE LAYOUT
=================================================================== */
.leefhub-dashboard {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.leefhub-dashboard-header {
  background: var(--lh-surface);
  border: 1px solid var(--lh-border);
  border-radius: 12px;
  box-shadow: var(--lh-shadow);
  padding: 24px 30px;
  margin-bottom: 40px;
}

.leefhub-welcome {
  font-size: 1.8em;
  font-weight: 700;
  margin-bottom: 8px;
}

.leefhub-subtext {
  color: var(--lh-text-muted);
}

/* ===================================================================
   GRID LAYOUTS
=================================================================== */
.leefhub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

@media (max-width: 768px) {
  .leefhub-grid {
    grid-template-columns: 1fr;
  }
}

.leefhub-profile-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 768px) {
  .leefhub-profile-columns {
    grid-template-columns: 1fr;
  }
}

/* ===================================================================
   QUICK LINKS
=================================================================== */
.leefhub-quicklinks {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 25px;
}

.leefhub-quicklinks a {
  background: var(--lh-primary);
  color: #fff !important;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 8px;
  transition: background 0.25s, transform 0.15s;
}

.leefhub-quicklinks a:hover {
  background: var(--lh-primary-hover);
  transform: translateY(-1px);
}

/* ===================================================================
   CARDS
=================================================================== */
.leefhub-card {
  background: var(--lh-surface);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--lh-shadow);
  border: 1px solid var(--lh-border);
}

.leefhub-card h3 {
  margin-top: 0;
  font-size: 1.2em;
  font-weight: 600;
}

.leefhub-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.leefhub-card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.leefhub-card.leefhub-bookings {
  padding-bottom: 24px;
}

/* ===================================================================
   LISTS & ITEMS
=================================================================== */
.leefhub-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.leefhub-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--lh-border);
}

.leefhub-list-item:last-child {
  border-bottom: none;
}

.leefhub-event-main strong {
  display: block;
  font-weight: 600;
}

/* ===================================================================
   BOOKING ROWS
=================================================================== */
.lh-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 8px 0 12px;
  color: var(--lh-text);
}

.booking-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: var(--lh-surface);
  border: 1px solid var(--lh-border);
  margin-bottom: 10px;
}

.booking-row:hover {
  background: var(--lh-bg);
}

.leefhub-bookings-list .leefhub-list-item {
  padding: 0 !important;
  border-bottom: none !important;
}

.leefhub-event-time {
  color: var(--lh-text-muted);
  font-size: 0.9em;
}

/* Past */
.lh-past {
  opacity: 0.55;
}
.lh-past:hover {
  opacity: 0.75;
}

/* ===================================================================
   BADGES
=================================================================== */
.leefhub-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8em;
  font-weight: 600;
  color: #fff;
}

.leefhub-status-confirmed { background: var(--lh-success); }
.leefhub-status-pending { background: var(--lh-warning); }
.leefhub-status-cancelled { background: var(--lh-danger); }
.leefhub-badge-inactive { background: var(--lh-muted); }

/* ===================================================================
   FORMS
=================================================================== */
.leefhub-profile-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
  margin-top: 10px;
  padding: 20px;
  background: var(--lh-surface);
  border-radius: 12px;
  border: 1px solid var(--lh-border);
  box-shadow: var(--lh-shadow);
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .leefhub-profile-form {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.leefhub-profile-form input,
.leefhub-profile-form select,
.leefhub-profile-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--lh-border);
  border-radius: 8px;
  background: var(--lh-bg);
}

.leefhub-profile-form input:focus {
  border-color: var(--lh-primary);
  outline: none;
  box-shadow: 0 0 0 2px var(--lh-primary-hover)33;
}

/* ===================================================================
   BUTTONS
=================================================================== */
.leefhub-btn-primary,
.button-primary,
.button.small {
  background: var(--lh-primary);
  color: #fff !important;
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 600;
  transition: 0.25s;
}

.leefhub-btn-primary:hover,
.button-primary:hover,
.button.small:hover {
  background: var(--lh-primary-hover);
}

/* ===================================================================
   PAYMENT ALERTS
=================================================================== */
.leefhub-alert {
  background: #fff3cd;
  border: 1px solid #ffeeba;
  border-radius: 6px;
  padding: 10px 12px;
  color: #856404;
}

.leefhub-alert a {
  color: #856404;
  text-decoration: underline;
  font-weight: 700;
}

/* ===================================================================
   HEADER GRID
=================================================================== */
.leefhub-header-grid {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 300px);
  gap: 20px;
  align-items: center;
}

@media (max-width: 768px) {
  .leefhub-header-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================================================================
   TWO-COLUMN DASHBOARD LAYOUT
=================================================================== */
.leefhub-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

@media (max-width: 768px) {
  .leefhub-grid-2col {
    grid-template-columns: 1fr;
  }
}

.lh-col-left,
.lh-col-right {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.leefhub-card {
  padding: 24px;
  border-radius: 14px;
}

.leefhub-card-header {
  margin-bottom: 16px;
}

.booking-row {
  padding: 14px 16px;
  margin-bottom: 12px;
}

.leefhub-card.leefhub-bookings {
  padding-top: 28px;
}

