/* Surf Weather Widget — wakesurf.com.ua */

.sw-card {
  background: linear-gradient(135deg, #0a1628 0%, #132744 100%);
  border-radius: 20px;
  padding: 24px;
  color: #fff;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.08);
}

.sw-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 8px;
}

.sw-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sw-live-dot {
  width: 8px; height: 8px;
  background: #22c55e;
  border-radius: 50%;
  display: inline-block;
  animation: sw-pulse 2s infinite;
}

@keyframes sw-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.sw-location {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

.sw-main { margin-bottom: 20px; }

.sw-status-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.sw-score-circle {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 4px solid;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sw-score-num {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.sw-score-label {
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 1px;
}

.sw-status-info { flex: 1; }

.sw-status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #000;
}

.sw-status-msg {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  line-height: 1.4;
}

.sw-conditions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.sw-cond-item {
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
}

.sw-cond-icon {
  display: block;
  font-size: 20px;
  margin-bottom: 4px;
}

.sw-cond-val {
  font-size: 13px;
  font-weight: 600;
}

.sw-forecast {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 16px;
  margin-bottom: 16px;
}

.sw-fc-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 12px;
}

.sw-fc-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.sw-fc-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 56px;
  padding: 8px 4px;
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
}

.sw-fc-time {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
}

.sw-fc-icon { font-size: 18px; }

.sw-fc-temp {
  font-size: 14px;
  font-weight: 700;
}

.sw-fc-rain {
  font-size: 10px;
  color: #60a5fa;
  min-height: 14px;
}

.sw-cta {
  display: block;
  text-align: center;
  padding: 14px;
  border-radius: 100px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.2s;
}

.sw-cta:hover { transform: scale(1.02); }

.sw-cta-alt {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.sw-error {
  text-align: center;
  padding: 40px;
  color: rgba(255,255,255,0.5);
}

@media (max-width: 480px) {
  .sw-card { padding: 16px; border-radius: 16px; }
  .sw-conditions { grid-template-columns: repeat(2, 1fr); }
  .sw-score-circle { width: 64px; height: 64px; }
  .sw-score-num { font-size: 22px; }
}

/* Emotional phrase */
.sw-phrase {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.4;
  padding: 16px;
  background: rgba(255,255,255,0.04);
  border-radius: 14px;
  border-left: 4px solid rgba(255,255,255,0.15);
}

/* Best hour tip */
.sw-tip {
  text-align: center;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  padding: 10px 16px;
  margin-bottom: 16px;
  background: rgba(34,197,94,0.1);
  border-radius: 10px;
  border: 1px solid rgba(34,197,94,0.2);
}

@media (max-width: 480px) {
  .sw-phrase { font-size: 17px; padding: 12px; }
}
