/*
 * Solar Atlas Caribbean — Theme Extras
 * Loaded after common.css and styles.css.
 * Corrects WordPress-specific rendering differences vs the original HTML.
 */

/* ─────────────────────────────────────────────
   FOOTER — Contact items: icon + text inline
   The original HTML puts plain text next to the SVG.
   WordPress generates <a> tags which the base CSS
   forces to display:block, pushing them below the icon.
   .footer-contact-item keeps icon and text on one line.
───────────────────────────────────────────── */
.footer-contact-item {
  display: flex !important;
  align-items: center;
  gap: 8px;
}

.footer-contact-item svg {
  flex-shrink: 0;
  width: 18px !important;
  height: 18px !important;
}

/* ─────────────────────────────────────────────
   FOOTER — Social icon links
   Wrap SVGs in <a> for accessibility without
   breaking the flex row layout.
───────────────────────────────────────────── */
.social-icon-link {
  display: inline-flex !important;
  line-height: 0;
}

/* Restore natural SVG size for social icons — base CSS
   shrinks all footer SVGs to 18px which crushes the circles */
.social .social-icon-link svg,
.social svg {
  width: 45px !important;
  height: 45px !important;
}

/* ─────────────────────────────────────────────
   FOOTER — Newsletter label
   Matches the original: label.newsletter is a flex
   row with input + svg icon, underlined only.
───────────────────────────────────────────── */
label.newsletter {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line, #dfe5ee);
  cursor: text;
}

label.newsletter input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 13px 0;
  background: transparent;
  font: inherit;
  color: inherit;
}

label.newsletter svg {
  flex-shrink: 0;
  width: 20px !important;
  height: 20px !important;
  cursor: pointer;
}

/* ─────────────────────────────────────────────
   FOOTER — Quick Links nav walker outputs plain
   <a> tags. The base .site-footer a { display:block }
   rule already handles these correctly.
   Just ensure consistent spacing.
───────────────────────────────────────────── */
.site-footer .flex-col > a {
  color: #667085;
  text-decoration: none;
  line-height: 1.6;
}

.site-footer .flex-col > a:hover {
  color: #0250CE;
}

/* ─────────────────────────────────────────────
   DASHBOARD — Vendor pages
───────────────────────────────────────────── */
.dashboard-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 20px;
}

.dashboard-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.dashboard-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.dashboard-stat-card {
  background: #fff;
  border: 1px solid #dfe5ee;
  border-radius: 10px;
  padding: 20px 16px;
  text-align: center;
}

.dashboard-stat-label {
  font-size: 11px;
  font-weight: 700;
  color: #667085;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.dashboard-stat-number {
  font-size: 28px;
  font-weight: 700;
  color: #0250CE;
}

.dashboard-table-card {
  background: #fff;
  border: 1px solid #dfe5ee;
  border-radius: 12px;
  padding: 24px;
}

.dashboard-title {
  font-size: 22px;
}

/* ─────────────────────────────────────────────
   SIDEBAR — Vendor nav
───────────────────────────────────────────── */
aside.sidebar {
  background: #fff;
  border: 1px solid #dfe5ee;
  border-radius: 10px;
  padding: 12px 0;
  display: flex;
  flex-direction: column;
}

aside.sidebar a {
  display: block;
  padding: 12px 20px;
  color: #667085;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all .2s;
}

aside.sidebar a:hover,
aside.sidebar a.active {
  color: #0250CE;
  background: #eaf2ff;
  border-left-color: #0250CE;
}

/* ─────────────────────────────────────────────
   AUTH PAGES — Sign In / Add Business
───────────────────────────────────────────── */
.auth-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background: #f4f7fb;
}

.auth-card {
  background: #fff;
  border: 1px solid #dfe5ee;
  border-radius: 14px;
  padding: 40px 36px;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 12px 40px rgba(16,36,75,.07);
}

.auth-title {
  font-size: 26px;
  font-weight: 700;
  color: #1a2540;
  margin: 0 0 6px;
}

.auth-subtitle {
  color: #667085;
  font-size: 14px;
  margin: 0 0 28px;
}

.auth-row {
  display: flex;
  gap: 16px;
}

.auth-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #667085;
  cursor: pointer;
}

.auth-notice {
  font-size: 12px;
  color: #aeb6c4;
  text-align: center;
}

.auth-submit {
  width: 100%;
  padding: 13px;
  background: #0250CE;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  transition: background .2s;
}

.auth-submit:hover {
  background: #013fa5;
}

.auth-switch {
  text-align: center;
  font-size: 13px;
  color: #667085;
  margin-top: 20px;
}

.auth-switch a {
  color: #0250CE;
  font-weight: 600;
}

/* ─────────────────────────────────────────────
   EVENTS PAGE
───────────────────────────────────────────── */
.event-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #dfe5ee;
  border-radius: 10px;
  padding: 20px;
}

.event-date-box {
  flex-shrink: 0;
  width: 56px;
  text-align: center;
  background: #eaf2ff;
  border-radius: 8px;
  padding: 8px 4px;
}

.event-month {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #0250CE;
  letter-spacing: .06em;
}

.event-day {
  display: block;
  font-size: 26px;
  font-weight: 800;
  color: #1a2540;
  line-height: 1.1;
}

.event-info {
  flex: 1;
}

.event-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #667085;
  margin: 6px 0 12px;
}

.event-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.event-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  flex-wrap: wrap;
}

.event-price {
  font-weight: 700;
  color: #0250CE;
  font-size: 16px;
  margin-left: auto;
}

/* ─────────────────────────────────────────────
   QUOTE FORM
───────────────────────────────────────────── */
.quote-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 640px) {
  .quote-form-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-layout {
    grid-template-columns: 1fr;
  }

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

  .auth-row {
    flex-direction: column;
  }
}
