/* RatingHero Component Styles - Clean Fixed Layout */
.rating-hero {
  background: var(--modal-bg-light, #f9f9f9);
  border-radius: 8px;
  padding: 12px;
  color: var(--modal-text, #333);
  margin: 4px;
  border: 1px solid var(--modal-border, #e0e0e0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  display: block;
  width: auto;
  max-width: 100%;
}

/* Dark mode support */
html.dark-theme .rating-hero {
  background: var(--modal-bg-dark, #444);
  color: var(--modal-text, ivory);
  border-color: var(--modal-border, #555);
}

/* Responsive rating hero */
@media (max-width: 768px) {
  .rating-hero {
    padding: 10px;
    margin: 2px;
  }
}

@media (max-width: 480px) {
  .rating-hero {
    padding: 8px;
    margin: 2px;
    border-width: 4px;
    outline-width: 2px;
    border-radius: 6px;
  }
}

/* Dark mode support */
html.dark-theme .rating-hero {
  color: ivory;
}

html:not(.dark-theme) .rating-hero {
  color: #333;
}

.skill-level-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.header-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  justify-content: flex-start;
}

/* Responsive header layout */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
}

.rating-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  margin-right: 24px;
}

/* Responsive rating section */
@media (max-width: 768px) {
  .rating-section {
    margin-right: 0;
    margin-bottom: 8px;
  }
}

.rating-circle {
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
  border: 3px solid white;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.rating-number {
  font-size: 32px;
  font-weight: bold;
  line-height: 1;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  /* Ensure readability on all background colors */
}

.now-indicator {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: white;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  margin-top: 4px;
  opacity: 0.9;
  text-align: center;
}

/* Theme support for rating number */
html.dark-theme .rating-number {
  color: ivory;
}

html:not(.dark-theme) .rating-number {
  color: black;
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.7);
}

/* Theme support for NOW indicator */
html.dark-theme .now-indicator {
  color: ivory;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

html:not(.dark-theme) .now-indicator {
  color: #fff;
  text-shadow: none;
}

.paddle-score-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: white;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
  text-align: center;
  margin-bottom: 4px;
}

/* Theme support for paddle score label */
html.dark-theme .paddle-score-label {
  color: ivory;
}

html:not(.dark-theme) .paddle-score-label {
  color: #fff;
  text-shadow: none;
}

.skill-info {
  flex: 1;
  min-width: 0;
}

/* Units Toggle */
.units-toggle {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  margin-bottom: 0;
  justify-content: center;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* Responsive units toggle */
@media (max-width: 480px) {
  .units-toggle {
    gap: 12px;
    margin-top: 16px;
  }
}

.units-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.8);
  padding: 6px 12px;
  font-size: 12px;
  font-family: 'JosefinSans-Medium', 'Josefin Sans', sans-serif;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  letter-spacing: 0.3px;
  min-width: 80px;
  text-align: center;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive units button */
@media (max-width: 480px) {
  .units-btn {
    padding: 8px 16px;
    font-size: 13px;
    min-width: 90px;
  }
}

.units-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.units-btn.active {
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.9), rgba(59, 130, 246, 0.8));
  border-color: rgba(29, 78, 216, 1);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(29, 78, 216, 0.3);
}

/* Theme support for units toggle */
html.dark-theme .units-btn {
  color: rgba(255, 250, 240, 0.7);
}

html.dark-theme .units-btn:hover {
  color: rgba(255, 250, 240, 0.9);
}

html.dark-theme .units-btn.active {
  color: ivory;
}

html:not(.dark-theme) .units-btn {
  color: rgba(0, 0, 0, 0.7);
  background: rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.2);
}

html:not(.dark-theme) .units-btn:hover {
  color: rgba(0, 0, 0, 0.9);
  background: rgba(0, 0, 0, 0.15);
}

html:not(.dark-theme) .units-btn.active {
  color: black;
}

/* PENALTY INFORMATION DISPLAY */
.penalty-info {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 12px;
  margin: 8px 0;
  font-size: 12px;
}

.penalty-info-none {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.05));
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 8px;
  padding: 8px 12px;
  margin: 8px 0;
  font-size: 12px;
  color: #10b981;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.penalty-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-weight: 600;
}

.penalty-icon {
  font-size: 14px;
}

.penalty-title {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
}

.penalty-impact {
  font-size: 12px;
  font-weight: 700;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.penalty-calculation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 6px 0;
  padding: 6px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
}

.original-score {
  color: #10b981;
  font-weight: 700;
}

.penalty-arrow {
  color: #6b7280;
  font-weight: 400;
}

.final-score {
  color: #ef4444;
  font-weight: 700;
}

.penalty-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 4px;
}

.penalty-item {
  font-size: 11px;
  line-height: 1.3;
  opacity: 0.9;
  color: rgba(255, 255, 255, 0.8);
}

/* Dark theme adjustments for penalties */
html.dark-theme .penalty-info {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border-color: rgba(255, 255, 255, 0.1);
}

html.dark-theme .penalty-info-none {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.08));
  border-color: rgba(16, 185, 129, 0.25);
  color: #34d399;
}

html.dark-theme .penalty-item {
  color: rgba(255, 250, 240, 0.8);
}

html.dark-theme .penalty-calculation {
  background: rgba(0, 0, 0, 0.2);
}

html:not(.dark-theme) .penalty-info {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.02));
  border-color: rgba(0, 0, 0, 0.1);
}

html:not(.dark-theme) .penalty-info-none {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(5, 150, 105, 0.04));
  border-color: rgba(16, 185, 129, 0.15);
  color: #059669;
}

html:not(.dark-theme) .penalty-item {
  color: rgba(0, 0, 0, 0.7);
}

html:not(.dark-theme) .penalty-calculation {
  background: rgba(0, 0, 0, 0.05);
}

html:not(.dark-theme) .penalty-header,
html:not(.dark-theme) .penalty-title {
  color: rgba(0, 0, 0, 0.8);
}

html.dark-theme .penalty-header,
html.dark-theme .penalty-title {
  color: rgba(255, 250, 240, 0.9);
}

/* Mobile responsiveness for penalty info */
@media (max-width: 768px) {
  .penalty-info {
    padding: 10px;
    font-size: 11px;
  }
  
  .penalty-header {
    gap: 4px;
  }
  
  .penalty-title {
    font-size: 12px;
  }
  
  .penalty-impact {
    font-size: 11px;
    padding: 1px 4px;
  }
  
  .penalty-calculation {
    font-size: 12px;
    gap: 6px;
  }
}

@media (max-width: 480px) {
  .penalty-info {
    padding: 8px;
  }
  
  .penalty-calculation {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }
  
  .penalty-arrow {
    transform: rotate(90deg);
  }
}

/* MODERN SKILL LEVEL DISPLAY */
.skill-recommendation-modern {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 16px;
  margin-top: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.skill-level-display {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skill-level-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.skill-icon {
  font-size: 24px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.skill-level-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.skill-level-badge-modern {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
}

.skill-confidence {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.8;
  letter-spacing: 0.3px;
}

.skill-description {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  margin: 4px 0;
  opacity: 0.9;
}

.conditions-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 8px 0;
}

.condition-item {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-left: 3px solid rgba(255, 255, 255, 0.4);
  color: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* CRITICAL/DANGEROUS condition highlighting */
.condition-item.dangerous-condition {
  background: rgba(255, 59, 48, 0.25) !important;
  border-left-color: #FF3B30 !important;
  border-left-width: 4px !important;
  font-weight: 600 !important;
  animation: pulse-danger 2s infinite;
  color: #FFFFFF !important;
}

@keyframes pulse-danger {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

/* Color coding based on rating theme */
.skill-recommendation-modern.skill-danger .condition-item {
  background: rgba(255, 59, 48, 0.15);
  border-left-color: #FF3B30;
  color: #FFE5E5;
}

.skill-recommendation-modern.skill-expert .condition-item {
  background: rgba(255, 149, 0, 0.15);
  border-left-color: #FF9500;
  color: #FFF4E5;
}

.skill-recommendation-modern.skill-experienced .condition-item {
  background: rgba(255, 204, 0, 0.15);
  border-left-color: #FFCC00;
  color: #FFFAE5;
}

.skill-recommendation-modern.skill-intermediate .condition-item {
  background: rgba(52, 199, 89, 0.15);
  border-left-color: #34C759;
  color: #E5F9E8;
}

.skill-recommendation-modern.skill-beginner .condition-item {
  background: rgba(0, 122, 255, 0.15);
  border-left-color: #007AFF;
  color: #E5F3FF;
}

/* Dark mode adjustments */
html.dark-theme .condition-item {
  background: rgba(255, 255, 255, 0.08);
  border-left-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.9);
}

.skill-advice {
  font-size: 13px;
  font-style: italic;
  opacity: 0.85;
  padding-left: 12px;
  border-left: 2px solid rgba(255, 255, 255, 0.3);
  margin-top: 8px;
}

/* Color schemes for different skill levels */
.skill-recommendation-modern.skill-beginner {
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.15), rgba(16, 185, 129, 0.1));
  border-color: rgba(52, 211, 153, 0.3);
}

.skill-beginner .skill-level-badge-modern {
  color: #10b981;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.skill-beginner .skill-confidence {
  color: #059669;
}

.skill-beginner .skill-advice {
  border-left-color: #10b981;
}

.skill-recommendation-modern.skill-intermediate {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.1));
  border-color: rgba(251, 191, 36, 0.3);
}

.skill-intermediate .skill-level-badge-modern {
  color: #f59e0b;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.skill-intermediate .skill-confidence {
  color: #d97706;
}

.skill-intermediate .skill-advice {
  border-left-color: #f59e0b;
}

.skill-recommendation-modern.skill-experienced {
  background: linear-gradient(135deg, rgba(248, 113, 113, 0.15), rgba(239, 68, 68, 0.1));
  border-color: rgba(248, 113, 113, 0.3);
}

.skill-experienced .skill-level-badge-modern {
  color: #ef4444;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.skill-experienced .skill-confidence {
  color: #dc2626;
}

.skill-experienced .skill-advice {
  border-left-color: #ef4444;
}

.skill-recommendation-modern.skill-expert {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(147, 51, 234, 0.1));
  border-color: rgba(168, 85, 247, 0.3);
}

.skill-expert .skill-level-badge-modern {
  color: #a855f7;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.skill-expert .skill-confidence {
  color: #9333ea;
}

.skill-expert .skill-advice {
  border-left-color: #a855f7;
}

.skill-recommendation-modern.skill-danger {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.2), rgba(185, 28, 28, 0.15));
  border-color: rgba(220, 38, 38, 0.4);
}

.skill-danger .skill-level-badge-modern {
  color: #dc2626;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.skill-danger .skill-confidence {
  color: #b91c1c;
}

.skill-danger .skill-advice {
  border-left-color: #dc2626;
}

/* Dark theme adjustments */
html.dark-theme .skill-recommendation-modern {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  border-color: rgba(255, 255, 255, 0.15);
}

html.dark-theme .skill-description,
html.dark-theme .skill-advice,
html.dark-theme .skill-confidence {
  color: rgba(255, 250, 240, 0.9);
}

html:not(.dark-theme) .skill-description,
html:not(.dark-theme) .skill-advice,
html:not(.dark-theme) .skill-confidence {
  color: rgba(0, 0, 0, 0.8);
}

html:not(.dark-theme) .skill-recommendation-modern {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.04));
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .skill-recommendation-modern {
    padding: 12px;
    margin-top: 12px;
  }
  
  .skill-level-header {
    gap: 8px;
  }
  
  .skill-icon {
    font-size: 20px;
  }
  
  .skill-level-badge-modern {
    font-size: 14px;
  }
  
  .skill-description {
    font-size: 13px;
  }
  
  .skill-advice {
    font-size: 12px;
    padding-left: 8px;
  }
}

@media (max-width: 480px) {
  .skill-recommendation-modern {
    padding: 10px;
    border-radius: 8px;
  }
  
  .skill-level-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
  }
  
  .skill-level-text {
    align-items: center;
    text-align: center;
  }
}

/* Legacy skill recommendation styles - keep for backward compatibility */
.rating-circle {
  /* Colors will be set dynamically by RatingHero.js to match paddlingout.js */
  transition: all 0.3s ease;
}

.rating-circle:hover {
  transform: scale(1.05);
}

.skill-title {
  display: block;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.95);
}

/* Theme support for skill title */
html.dark-theme .skill-title {
  color: ivory;
}

html:not(.dark-theme) .skill-title {
  color: black;
}

/* Skill level badge with color tint for skill title */
.skill-level-badge.skill-beginner ~ .skill-title,
.skill-title.skill-beginner {
  color: #34d399;
}

.skill-level-badge.skill-intermediate ~ .skill-title,
.skill-title.skill-intermediate {
  color: #fbbf24;
}

.skill-level-badge.skill-advanced ~ .skill-title,
.skill-title.skill-advanced {
  color: #f87171;
}

.skill-level-badge.skill-expert ~ .skill-title,
.skill-title.skill-expert {
  color: #a855f7;
}

.skill-level-badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  flex-shrink: 0;
}

/* Smaller version when inline with recommendation */
.skill-recommendation .skill-level-badge {
  padding: 4px 12px;
  font-size: 12px;
  margin-bottom: 0;
}

.skill-level-badge.skill-beginner {
  background: transparent;
  color: #34d399;
  border: 1px solid #34d399;
}

.skill-level-badge.skill-intermediate {
  background: transparent;
  color: #fbbf24;
  border: 1px solid #fbbf24;
}

.skill-level-badge.skill-advanced {
  background: transparent;
  color: #f87171;
  border: 1px solid #f87171;
}

.skill-level-badge.skill-expert {
  background: transparent;
  color: #a855f7;
  border: 1px solid #a855f7;
}

.core-weather-inline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 6px;
  margin-top: 6px;
  padding-left: 24px;
  padding-right: 24px;
  width: 100%;
  box-sizing: border-box;
}

/* Responsive grid layout - ALWAYS 2 rows, 3 columns */
@media (max-width: 768px) {
  .core-weather-inline {
    grid-template-columns: repeat(3, 1fr) !important;
    grid-template-rows: repeat(2, auto) !important;
    gap: 4px;
    padding-left: 4px;
    padding-right: 4px;
  }
}

@media (max-width: 480px) {
  .core-weather-inline {
    grid-template-columns: repeat(3, 1fr) !important;
    grid-template-rows: repeat(2, auto) !important;
    gap: 2px;
    padding-left: 2px;
    padding-right: 2px;
  }
}

@media (min-width: 1200px) {
  .core-weather-inline {
    padding-left: 32px;
    padding-right: 32px;
    gap: 8px;
  }
}

.weather-stat {
  display: flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  padding: 4px 6px;
  border-radius: 4px;
  transition: all 0.2s ease;
  min-width: 0;
}

/* Responsive weather stat adjustments - compact for smaller grid cells */
@media (max-width: 768px) {
  .weather-stat {
    padding: 2px 1px;
    gap: 1px;
    flex-direction: column;
    text-align: center;
  }
  
  .weather-stat .weather-data {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .weather-stat {
    padding: 1px;
    gap: 1px;
  }
  
  .weather-icon {
    font-size: 12px;
  }
  
  .weather-value {
    font-size: 11px;
  }
  
  .weather-label {
    font-size: 9px;
  }
}

.weather-stat:hover {
  background: rgba(255, 255, 255, 0.1);
}

.weather-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.weather-data {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.weather-value {
  font-size: 14px;
  font-weight: 600;
  color: white;
}

/* Theme support for weather value */
html.dark-theme .weather-value {
  color: ivory;
}

html:not(.dark-theme) .weather-value {
  color: black;
}

.weather-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Theme support for weather label */
html.dark-theme .weather-label {
  color: rgba(255, 250, 240, 0.7); /* Ivory with transparency */
}

html:not(.dark-theme) .weather-label {
  color: rgba(0, 0, 0, 0.7); /* Black with transparency */
}

.skill-recommendation {
  background: transparent;
  border-left: 3px solid rgba(255, 255, 255, 0.3);
  padding: 8px 12px;
  border-radius: 0;
  font-style: italic;
  font-size: 14px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Color-coded border notch based on skill level */
.skill-recommendation.skill-beginner {
  border-left-color: #34d399;
}

.skill-recommendation.skill-intermediate {
  border-left-color: #fbbf24;
}

.skill-recommendation.skill-experienced {
  border-left-color: #f87171;
}

.skill-recommendation.skill-expert {
  border-left-color: #a855f7;
}

.skill-recommendation.skill-danger {
  border-left-color: #dc3545;
}

.recommendation-text {
  flex: 1;
}

/* Theme support for recommendation text */
html.dark-theme .recommendation-text {
  color: ivory;
}

html:not(.dark-theme) .recommendation-text {
  color: black;
}

.skill-details {
  font-size: 12px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  background: transparent;
  padding: 8px 12px;
  border-radius: 0;
}

/* Theme support for skill details */
html.dark-theme .skill-details {
  color: rgba(255, 250, 240, 0.8); /* Ivory with transparency */
}

html:not(.dark-theme) .skill-details {
  color: rgba(0, 0, 0, 0.8); /* Black with transparency */
}

/* Mobile Responsive - REMOVED CONFLICTING RULES */
@media (max-width: 768px) {
  .rating-hero {
    padding: 20px;
  }
  
  .header-content {
    flex-direction: column;
    gap: 16px;
    align-items: center;
    text-align: center;
  }
  
  .rating-circle {
    width: 80px;
    height: 80px;
  }
  
  .rating-number {
    font-size: 28px;
  }
  
  .rating-label {
    font-size: 10px;
  }
  
  .weather-stat {
    padding: 8px 10px;
  }
}

/* ── Paddle Feedback Widget ─────────────────────────────────────────── */
.paddle-feedback {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 12px 6px;
  margin-top: 8px;
  border-top: 1px solid var(--modal-border, #e0e0e0);
  flex-wrap: wrap;
}

.paddle-feedback[data-submitted="true"] {
  opacity: 0.7;
  pointer-events: none;
}

.feedback-prompt {
  font-size: 12px;
  color: var(--modal-text, #666);
  font-weight: 500;
  white-space: nowrap;
}

.feedback-buttons {
  display: flex;
  gap: 4px;
}

.feedback-btn {
  background: none;
  border: 1px solid var(--modal-border, #ddd);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  line-height: 1;
}

.feedback-btn:hover {
  background: rgba(0, 0, 0, 0.06);
  transform: scale(1.15);
}

.feedback-btn:active {
  transform: scale(0.95);
}

.feedback-thanks {
  font-size: 12px;
  color: #2D5A32;
  font-weight: 600;
}

html.dark-theme .paddle-feedback {
  border-top-color: #555;
}

html.dark-theme .feedback-prompt {
  color: #bbb;
}

html.dark-theme .feedback-btn {
  border-color: #555;
  color: #eee;
}

html.dark-theme .feedback-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

html.dark-theme .feedback-thanks {
  color: #6abf7b;
}

/* Forecast detail premium layout override */
#ratingHeroContainer .rating-hero {
  margin: 0;
}

#ratingHeroContainer .skill-level-section {
  gap: 1rem;
}

#ratingHeroContainer .header-content {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
}

#ratingHeroContainer .rating-section {
  width: 100%;
  min-height: 210px;
  margin: 0;
  justify-content: center;
  border-right: 1px solid rgba(217,189,123,0.18);
}

#ratingHeroContainer .paddle-score-label {
  margin-bottom: 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

#ratingHeroContainer .score-ring-wrapper {
  width: 152px;
  height: 152px;
}

#ratingHeroContainer .score-ring {
  width: 152px;
  height: 152px;
}

#ratingHeroContainer .ring-number {
  font-size: 2.3rem;
}

#ratingHeroContainer .ring-denom {
  font-size: 1rem;
}

#ratingHeroContainer .ring-label {
  margin-top: 0.55rem;
  font-size: 0.9rem;
}

#ratingHeroContainer .now-indicator {
  margin-top: 0.15rem;
  font-size: 0.78rem;
}

#ratingHeroContainer .skill-info {
  width: 100%;
}

#ratingHeroContainer .core-weather-inline {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(217,189,123,0.16);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255,255,255,0.025);
}

#ratingHeroContainer .weather-stat {
  min-height: 68px;
  padding: 0.78rem 0.9rem;
  border: 0;
  border-right: 1px solid rgba(217,189,123,0.12);
  border-bottom: 1px solid rgba(217,189,123,0.12);
  border-radius: 0;
  background: transparent;
}

#ratingHeroContainer .weather-stat:hover {
  background: rgba(217,189,123,0.055);
}

#ratingHeroContainer .weather-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(217,189,123,0.2);
  border-radius: 50%;
  font-family: 'Josefin_Bold', Arial, sans-serif;
  font-size: 0.52rem;
  letter-spacing: 0.08em;
  color: var(--gold, #b5935a);
  background: rgba(181,147,90,0.07);
}

#ratingHeroContainer .weather-value {
  font-size: 1.05rem;
  line-height: 1.1;
  color: ivory !important;
}

#ratingHeroContainer .weather-label {
  margin-top: 0.2rem;
  font-size: 0.66rem;
  letter-spacing: 0.11em;
  color: rgba(237,232,223,0.6) !important;
}

#ratingHeroContainer .units-toggle {
  justify-content: flex-start;
  margin-top: 0.95rem;
}

#ratingHeroContainer .units-btn {
  border-radius: 999px;
  min-width: 98px;
}

#ratingHeroContainer .units-btn.active {
  background: rgba(181,147,90,0.2);
  border-color: rgba(217,189,123,0.56);
  box-shadow: 0 0 18px rgba(181,147,90,0.16);
}

#ratingHeroContainer .paddler-briefing {
  margin-top: 0;
}

#ratingHeroContainer .verdict-title,
#ratingHeroContainer .cr-label {
  color: ivory !important;
}

#ratingHeroContainer .verdict-subtitle,
#ratingHeroContainer .cr-detail {
  color: rgba(237,232,223,0.72) !important;
}

#ratingHeroContainer .paddle-feedback {
  padding-top: 0.95rem;
}

@media (max-width: 780px) {
  #ratingHeroContainer .header-content {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  #ratingHeroContainer .rating-section {
    min-height: 176px;
    border-right: 0;
    border-bottom: 1px solid rgba(217,189,123,0.18);
    padding-bottom: 1rem;
  }

  #ratingHeroContainer .core-weather-inline {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  #ratingHeroContainer .weather-stat {
    flex-direction: row;
    text-align: left;
    align-items: center;
    min-height: 62px;
  }

  #ratingHeroContainer .weather-stat .weather-data {
    align-items: flex-start;
  }

  #ratingHeroContainer .units-toggle {
    justify-content: center;
  }
}

@media (max-width: 430px) {
  #ratingHeroContainer .score-ring-wrapper,
  #ratingHeroContainer .score-ring {
    width: 128px;
    height: 128px;
  }

  #ratingHeroContainer .ring-number {
    font-size: 1.95rem;
  }

  #ratingHeroContainer .weather-stat {
    padding: 0.68rem 0.58rem;
  }

  #ratingHeroContainer .weather-icon {
    width: 30px;
    height: 30px;
    font-size: 0.48rem;
  }

  #ratingHeroContainer .weather-value {
    font-size: 0.88rem;
  }
}

/* ── Score Ring (SVG Donut) ────────────────────────────────────────────── */

.score-ring-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.score-ring {
  width: 120px;
  height: 120px;
  display: block;
  transform: rotate(-90deg); /* start arc at 12 o'clock via JS offset instead */
  transform: none; /* offset handled by stroke-dashoffset in JS */
}

/* Track — background circle, clear groove in both themes */
.ring-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.15);  /* dark mode default */
  stroke-width: 10;
}

html:not(.dark-theme) .ring-track {
  stroke: rgba(0, 0, 0, 0.12);  /* light mode */
}

/* Progress — animated fill */
.ring-progress {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dasharray 1.1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Center overlay */
.ring-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.ring-number {
  font-family: 'Josefin_Bold', Arial, sans-serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
}

.ring-denom {
  font-family: 'Josefin_Light', Arial, sans-serif;
  font-size: 11px;
  opacity: 0.6;
  line-height: 1;
  margin-top: 1px;
  color: var(--modal-text, #333);
}

/* always white — ring sits on its own colored background context */
html.dark-theme .ring-denom,
html:not(.dark-theme) .ring-denom {
  color: rgba(255, 255, 255, 0.6);
}

.ring-pct {
  font-family: 'Josefin_Bold', Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-top: 3px;
  line-height: 1;
}

/* Label below ring */
.ring-label {
  font-family: 'Josefin_Bold', Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
  margin-top: 4px;
}

/* Mobile */
@media (max-width: 480px) {
  .score-ring-wrapper {
    width: 100px;
    height: 100px;
  }
  .score-ring {
    width: 100px;
    height: 100px;
  }
  .ring-number {
    font-size: 22px;
  }
}

/* ── Paddler's Briefing ─────────────────────────────────────────────────── */

.paddler-briefing {
  border-radius: 12px;
  padding: 14px;
  margin-top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

html:not(.dark-theme) .paddler-briefing {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
}

/* Verdict variants — tint the briefing card */
.paddler-briefing.verdict-excellent {
  border-left: 4px solid #22C55E;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(34, 197, 94, 0.04));
}
.paddler-briefing.verdict-great {
  border-left: 4px solid #4ADE80;
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.10), rgba(74, 222, 128, 0.03));
}
.paddler-briefing.verdict-good {
  border-left: 4px solid #CD853F;
  background: linear-gradient(135deg, rgba(205, 133, 63, 0.12), rgba(205, 133, 63, 0.04));
}
.paddler-briefing.verdict-fair {
  border-left: 4px solid #E36414;
  background: linear-gradient(135deg, rgba(227, 100, 20, 0.12), rgba(227, 100, 20, 0.04));
}
.paddler-briefing.verdict-risky {
  border-left: 4px solid #C0392B;
  background: linear-gradient(135deg, rgba(192, 57, 43, 0.15), rgba(192, 57, 43, 0.05));
}
.paddler-briefing.verdict-poor {
  border-left: 4px solid #A01010;
  background: linear-gradient(135deg, rgba(160, 16, 16, 0.18), rgba(160, 16, 16, 0.06));
}
.paddler-briefing.verdict-danger {
  border-left: 4px solid #8B0000;
  background: linear-gradient(135deg, rgba(139, 0, 0, 0.22), rgba(139, 0, 0, 0.08));
  animation: pulse-danger-bg 3s ease-in-out infinite;
}

@keyframes pulse-danger-bg {
  0%, 100% { background: linear-gradient(135deg, rgba(139, 0, 0, 0.22), rgba(139, 0, 0, 0.08)); }
  50%       { background: linear-gradient(135deg, rgba(139, 0, 0, 0.28), rgba(139, 0, 0, 0.12)); }
}

/* Verdict header */
.briefing-verdict {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.verdict-icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 1px;
}

.verdict-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.verdict-title {
  font-family: 'Josefin_Bold', Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--modal-text, #111);
  line-height: 1.2;
}

html.dark-theme .verdict-title {
  color: ivory;
}
html:not(.dark-theme) .verdict-title {
  color: #111;
}

.verdict-subtitle {
  font-family: 'Josefin_Light', Arial, sans-serif;
  font-size: 13px;
  opacity: 0.8;
  line-height: 1.3;
}

html.dark-theme .verdict-subtitle {
  color: rgba(255, 250, 240, 0.8);
}
html:not(.dark-theme) .verdict-subtitle {
  color: rgba(0, 0, 0, 0.65);
}

/* Condition rows */
.briefing-conditions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.condition-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  border-left: 3px solid transparent;
  background: rgba(255, 255, 255, 0.06);
}

html:not(.dark-theme) .condition-row {
  background: rgba(0, 0, 0, 0.04);
}

/* Severity left-border colors */
.condition-row.row-severe  { border-left-color: #DC2626; background: rgba(220, 38, 38, 0.12);  }
.condition-row.row-danger  { border-left-color: #EA580C; background: rgba(234, 88, 12, 0.10);  }
.condition-row.row-warning { border-left-color: #D97706; background: rgba(217, 119, 6, 0.09);  }
.condition-row.row-caution { border-left-color: #CA8A04; background: rgba(202, 138, 4, 0.08);  }
.condition-row.row-good    { border-left-color: #16A34A; background: rgba(22, 163, 74, 0.08);  }

html:not(.dark-theme) .condition-row.row-severe  { background: rgba(220, 38, 38, 0.08);  }
html:not(.dark-theme) .condition-row.row-danger  { background: rgba(234, 88, 12, 0.07);  }
html:not(.dark-theme) .condition-row.row-warning { background: rgba(217, 119, 6, 0.07);  }
html:not(.dark-theme) .condition-row.row-caution { background: rgba(202, 138, 4, 0.06);  }
html:not(.dark-theme) .condition-row.row-good    { background: rgba(22, 163, 74, 0.06);  }

.cr-icon {
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 1px;
}

.cr-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.cr-label {
  font-family: 'Josefin_Bold', Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--modal-text, #111);
}

html.dark-theme .cr-label {
  color: rgba(255, 250, 240, 0.95);
}
html:not(.dark-theme) .cr-label {
  color: #111;
}

.cr-detail {
  font-family: 'Josefin_Light', Arial, sans-serif;
  font-size: 12px;
  line-height: 1.3;
  opacity: 0.75;
}

html.dark-theme .cr-detail {
  color: rgba(255, 250, 240, 0.75);
}
html:not(.dark-theme) .cr-detail {
  color: rgba(0, 0, 0, 0.6);
}

/* Forecast suggestion */
.briefing-suggestion {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

html:not(.dark-theme) .briefing-suggestion {
  background: rgba(59, 130, 246, 0.07);
  border-color: rgba(59, 130, 246, 0.15);
}

.suggestion-icon {
  font-size: 16px;
  flex-shrink: 0;
  line-height: 1.2;
}

.suggestion-text {
  font-family: 'Josefin_Light', Arial, sans-serif;
  font-size: 12px;
  line-height: 1.4;
  flex: 1;
  color: #60A5FA;
}

html:not(.dark-theme) .suggestion-text {
  color: #2563EB;
}

.suggestion-text strong {
  font-family: 'Josefin_Bold', Arial, sans-serif;
  font-weight: 700;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .paddler-briefing {
    padding: 12px;
    gap: 8px;
    margin-top: 10px;
  }
  .verdict-title {
    font-size: 15px;
  }
  .verdict-subtitle {
    font-size: 12px;
  }
  .condition-row {
    padding: 6px 8px;
  }
  .cr-label {
    font-size: 12px;
  }
  .cr-detail {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .paddler-briefing {
    padding: 10px;
    border-radius: 8px;
  }
  .verdict-icon {
    font-size: 18px;
  }
  .verdict-title {
    font-size: 14px;
  }
}
