/* GetOutside WordPress Plugin - Frontend Stylesheet */

:root {
  --getoutside-excellent: #2e7d32;
  --getoutside-good: #0288d1;
  --getoutside-fair: #fbc02d;
  --getoutside-caution: #f57c00;
  --getoutside-not-recommended: #d32f2f;
  
  --getoutside-bg-light: #f9f9f9;
  --getoutside-border: #e0e0e0;
  --getoutside-text: #333333;
  --getoutside-text-muted: #666666;
}

.getoutside-widget {
  font-family: inherit;
  color: var(--getoutside-text);
  margin-bottom: 2rem;
  width: 100%;
  box-sizing: border-box;
}

.getoutside-widget * {
  box-sizing: border-box;
}

/* Current Conditions */
.getoutside-current-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  background-color: var(--getoutside-bg-light);
  border: 1px solid var(--getoutside-border);
  border-radius: 6px;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.getoutside-current-left {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.getoutside-current-symbol {
  font-size: 3rem;
  line-height: 1;
}

.getoutside-current-temp {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}

.getoutside-current-cond {
  font-size: 1.2rem;
  font-weight: 500;
}

.getoutside-current-meta {
  font-size: 0.85rem;
  color: var(--getoutside-text-muted);
  text-align: right;
}

@media (max-width: 600px) {
  .getoutside-current-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .getoutside-current-meta {
    text-align: left;
  }
}

/* Forecast Grid */
.getoutside-forecast-container {
  margin-bottom: 1.5rem;
}

.getoutside-forecast-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.75rem;
  width: 100%;
}

.getoutside-forecast-card {
  background: #ffffff;
  border: 1px solid var(--getoutside-border);
  border-radius: 6px;
  padding: 1rem 0.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 140px;
}

.getoutside-forecast-day {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--getoutside-text);
  white-space: nowrap;
}

.getoutside-forecast-symbol {
  font-size: 2rem;
  margin: 0.5rem 0;
  line-height: 1;
}

.getoutside-forecast-temps {
  display: flex;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.getoutside-temp-high {
  font-weight: 700;
  color: #c62828;
}

.getoutside-temp-low {
  color: #1565c0;
}

.getoutside-forecast-pop {
  font-size: 0.75rem;
  color: var(--getoutside-good);
  font-weight: 600;
  margin-top: 0.25rem;
}

/* Scrollable container on mobile */
@media (max-width: 768px) {
  .getoutside-forecast-grid-scroll-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-left: -15px;
    margin-right: -15px;
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 1.5rem;
  }
  
  .getoutside-forecast-grid {
    grid-template-columns: repeat(7, 120px);
    width: max-content;
    padding-bottom: 0.5rem;
  }
}

/* SVG Trend Graph */
.getoutside-trend-container {
  border: 1px solid var(--getoutside-border);
  border-radius: 6px;
  padding: 1.5rem;
  background-color: #ffffff;
  margin-bottom: 1.5rem;
}

.getoutside-trend-title {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--getoutside-text);
}

.getoutside-trend-svg-wrapper {
  position: relative;
  width: 100%;
  height: auto;
}

.getoutside-trend-svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Active Alerts */
.getoutside-alerts-container {
  margin-bottom: 1.5rem;
}

.getoutside-alert-card {
  border-left: 4px solid var(--getoutside-not-recommended);
  background-color: #fff8f8;
  border: 1px solid var(--getoutside-border);
  border-left-width: 4px;
  border-radius: 4px;
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.getoutside-alert-headline {
  font-weight: 700;
  color: var(--getoutside-not-recommended);
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
}

.getoutside-alert-description {
  font-size: 0.9rem;
  margin: 0;
  color: var(--getoutside-text);
  white-space: pre-line;
}

.getoutside-alert-meta {
  font-size: 0.8rem;
  color: var(--getoutside-text-muted);
  margin-top: 0.5rem;
}

/* Activity Score Display */
.getoutside-activity-card {
  border: 1px solid var(--getoutside-border);
  border-radius: 6px;
  padding: 1.5rem;
  background-color: #ffffff;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.getoutside-activity-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  border-bottom: 1px solid var(--getoutside-border);
  padding-bottom: 0.75rem;
}

.getoutside-activity-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
}

.getoutside-activity-badge {
  color: #ffffff;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.getoutside-activity-badge.excellent { background-color: var(--getoutside-excellent); }
.getoutside-activity-badge.good { background-color: var(--getoutside-good); }
.getoutside-activity-badge.fair { background-color: var(--getoutside-fair); color: #333333; }
.getoutside-activity-badge.caution { background-color: var(--getoutside-caution); }
.getoutside-activity-badge.not-recommended { background-color: var(--getoutside-not-recommended); }

.getoutside-activity-score-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.getoutside-activity-score {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
}

.getoutside-activity-score-max {
  font-size: 1rem;
  color: var(--getoutside-text-muted);
}

.getoutside-activity-reason {
  font-size: 1.05rem;
  line-height: 1.5;
  margin: 0;
}

.getoutside-activity-factors {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.getoutside-activity-factor-item {
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.getoutside-factor-pass::before { content: "✓"; color: var(--getoutside-excellent); font-weight: bold; }
.getoutside-factor-caution::before { content: "⚠"; color: var(--getoutside-caution); font-weight: bold; }
.getoutside-factor-fail::before { content: "✗"; color: var(--getoutside-not-recommended); font-weight: bold; }

/* Rankings */
.getoutside-ranking-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.getoutside-ranking-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem;
  border: 1px solid var(--getoutside-border);
  border-radius: 6px;
  background-color: #ffffff;
  gap: 1rem;
}

.getoutside-ranking-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--getoutside-text-muted);
  min-width: 2.5rem;
}

.getoutside-ranking-info {
  flex-grow: 1;
}

.getoutside-ranking-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.25rem 0;
}

.getoutside-ranking-name a {
  text-decoration: none;
  color: inherit;
}

.getoutside-ranking-name a:hover {
  text-decoration: underline;
}

.getoutside-ranking-reason {
  font-size: 0.9rem;
  color: var(--getoutside-text-muted);
  margin: 0;
}

.getoutside-ranking-badge-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.getoutside-ranking-sponsor-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--getoutside-text-muted);
  background-color: #eee;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  letter-spacing: 0.5px;
}

@media (max-width: 600px) {
  .getoutside-ranking-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .getoutside-ranking-badge-wrap {
    align-items: flex-start;
    width: 100%;
    margin-top: 0.5rem;
  }
}

/* Sponsor Placement */
.getoutside-sponsor-card {
  border: 1px dashed var(--getoutside-border);
  border-radius: 6px;
  padding: 1.2rem;
  background-color: #fbfbfb;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.getoutside-sponsor-logo-wrap {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid var(--getoutside-border);
  border-radius: 4px;
  overflow: hidden;
}

.getoutside-sponsor-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.getoutside-sponsor-content {
  flex-grow: 1;
}

.getoutside-sponsor-disclosure {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--getoutside-text-muted);
  text-transform: uppercase;
  margin-bottom: 0.2rem;
  display: block;
}

.getoutside-sponsor-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.3rem 0;
}

.getoutside-sponsor-title a {
  color: var(--getoutside-good);
  text-decoration: none;
}

.getoutside-sponsor-title a:hover {
  text-decoration: underline;
}

.getoutside-sponsor-desc {
  font-size: 0.9rem;
  margin: 0;
  color: var(--getoutside-text);
}

@media (max-width: 480px) {
  .getoutside-sponsor-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .getoutside-sponsor-logo-wrap {
    width: 60px;
    height: 60px;
  }
}

/* Source Note */
.getoutside-source-note {
  font-size: 0.8rem;
  color: var(--getoutside-text-muted);
  margin-top: 1rem;
  border-top: 1px solid var(--getoutside-border);
  padding-top: 0.5rem;
}
