/* ========================================
   CARD STYLES
   ======================================== */

/* ========================================
   WEATHER CARDS
   ======================================== */

.weather-card {
  background-color: #004d97;
  border-radius: 30px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
  text-overflow: ellipsis;
  min-height: 120px;
  height: 100%;
  width: 100%;
  cursor: grab;
  transition: all 0.3s ease;
  user-select: none;
  flex: 1;
}

.weather-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.weather-card:active {
  cursor: grabbing;
  transform: scale(0.98);
}

.weather-card.dragging {
  opacity: 0.8;
  transform: rotate(5deg);
  z-index: 1000;
}

.weather-card.drag-over {
  background-color: #0056b3;
  border: 2px dashed #FFFFFF;
}

/* ========================================
   WARNING CARDS
   ======================================== */

.weather-card.warning {
  background-color: #ffbc00;
  animation: pulse 2s infinite;
}

.weather-card.warning h2 {
  color: #000000;
}

/* ========================================
   ICONS
   ======================================== */

.weather-card i,
.weather-card .small-icon {
  font-size: 60px;
  color: #FFFFFF;
  margin-bottom: 10px;
}

.weather-card.warning i {
  color: #000000;
}

/* ========================================
   COMPASS ROSE
   ======================================== */

#compass-rose {
  display: block;
  margin: 0 auto;
  width: 180px;
  height: 180px;
}

/* ========================================
   TIDAL ICONS GRID
   ======================================== */

.tidal-icons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: 100%;
  margin-top: 10px;
}

.tidal-icon {
  text-align: center;
  padding: 10px;
}

.tidal-icon i {
  font-size: 40px;
  color: #FFFFFF;
  margin-bottom: 5px;
}

.tidal-data {
  font-size: 0.9em;
  color: #FFFFFF;
  line-height: 1.2;
}

/* ========================================
   WARNING CARDS
   ======================================== */

.warning-card {
  background-color: #ffbc00;
  border-radius: 30px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.warning-card i {
  font-size: 60px;
  color: #000000;
}

.warning-content {
  background-color: #ffbc00;
  border-radius: 30px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.warning-content h2 {
  font-size: 1.4em;
  color: #000000;
  text-align: center;
  margin: 0;
}

/* ========================================
   EMERGENCY CARDS
   ======================================== */

.emergency-card {
  background-color: #004d97;
  border-radius: 30px;
  padding: 20px;
}

.emergency-card h1 {
  font-size: 2em;
  color: #FFFFFF;
  margin: 0 0 15px 0;
}

.emergency-card h3 {
  font-size: 1.2em;
  color: #FFFFFF;
  margin: 10px 0;
}

.emergency-card ul {
  padding-left: 20px;
  margin: 10px 0;
}

.emergency-card li {
  margin: 5px 0;
  line-height: 1.4;
  color: #FFFFFF;
}

/* ========================================
   QR CODE CONTAINER
   ======================================== */

#qr-code-container {
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  margin: 10px 0;
  display: inline-block;
}

#qr-code-image {
  width: 150px;
  height: 150px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

#qr-code-image:hover {
  transform: scale(1.05);
}

/* ========================================
   VISIBILITY CLASSIFICATIONS
   ======================================== */

.weather-card.excellent {
  background-color: #28a745;
}

.weather-card.very_good {
  background-color: #20c997;
}

.weather-card.good {
  background-color: #17a2b8;
}

.weather-card.moderate {
  background-color: #ffc107;
}

.weather-card.poor {
  background-color: #fd7e14;
}

.weather-card.very_poor {
  background-color: #e83e8c;
}

.weather-card.fog {
  background-color: #6f42c1;
}

.weather-card.dense_fog {
  background-color: #dc3545;
}

/* ========================================
   TEMPERATURE CLASSIFICATIONS
   ======================================== */

.weather-card.very_hot {
  background-color: #dc3545;
}

.weather-card.hot {
  background-color: #fd7e14;
}

.weather-card.warm {
  background-color: #ffc107;
}

.weather-card.mild {
  background-color: #28a745;
}

.weather-card.cool {
  background-color: #17a2b8;
}

.weather-card.cold {
  background-color: #6f42c1;
}

.weather-card.very_cold {
  background-color: #e83e8c;
}

.weather-card.freezing {
  background-color: #6c757d;
}

/* ========================================
   WIND CLASSIFICATIONS
   ======================================== */

.weather-card.calm {
  background-color: #28a745;
}

.weather-card.light_air {
  background-color: #20c997;
}

.weather-card.light_breeze {
  background-color: #17a2b8;
}

.weather-card.gentle_breeze {
  background-color: #28a745;
}

.weather-card.moderate_breeze {
  background-color: #20c997;
}

.weather-card.fresh_breeze {
  background-color: #ffc107;
}

.weather-card.strong_breeze {
  background-color: #fd7e14;
}

.weather-card.near_gale {
  background-color: #e83e8c;
}

.weather-card.gale {
  background-color: #dc3545;
}

.weather-card.strong_gale {
  background-color: #6f42c1;
}

.weather-card.storm {
  background-color: #6c757d;
}

/* Wind Gust Classifications */
.weather-card.light_gusts {
  background-color: #28a745;
}

.weather-card.moderate_gusts {
  background-color: #ffc107;
}

.weather-card.strong_gusts {
  background-color: #fd7e14;
}

.weather-card.severe_gusts {
  background-color: #dc3545;
}

/* ========================================
   WAVE CLASSIFICATIONS
   ======================================== */

.weather-card.calm_seas {
  background-color: #28a745;
}

.weather-card.smooth_waves {
  background-color: #20c997;
}

.weather-card.slight_waves {
  background-color: #17a2b8;
}

.weather-card.moderate_waves {
  background-color: #ffc107;
}

.weather-card.rough_seas {
  background-color: #fd7e14;
}

.weather-card.very_rough_seas {
  background-color: #e83e8c;
}

.weather-card.high_waves {
  background-color: #dc3545;
}

.weather-card.phenomenal_waves {
  background-color: #6c757d;
}

/* Wave Period Classifications */
.weather-card.poor_swell {
  background-color: #6c757d;
}

.weather-card.fair_swell {
  background-color: #fd7e14;
}

.weather-card.good_swell {
  background-color: #ffc107;
}

.weather-card.very_good_swell {
  background-color: #20c997;
}

.weather-card.excellent_swell {
  background-color: #28a745;
}

/* Wave Direction Classifications */
.weather-card.north_waves {
  background-color: #17a2b8;
}

.weather-card.east_waves {
  background-color: #28a745;
}

.weather-card.south_waves {
  background-color: #20c997;
}

.weather-card.west_waves {
  background-color: #ffc107;
}

/* ========================================
   SEA TEMPERATURE CLASSIFICATIONS
   ======================================== */

.weather-card.very_warm_sea {
  background-color: #dc3545;
}

.weather-card.warm_sea {
  background-color: #fd7e14;
}

.weather-card.pleasant_sea {
  background-color: #ffc107;
}

.weather-card.cool_sea {
  background-color: #17a2b8;
}

.weather-card.cold_sea {
  background-color: #6f42c1;
}

.weather-card.very_cold_sea {
  background-color: #e83e8c;
}

.weather-card.icy_sea {
  background-color: #6c757d;
}

.weather-card.freezing_sea {
  background-color: #343a40;
}

/* ========================================
   UV INDEX CLASSIFICATIONS
   ======================================== */

.weather-card.uv_low {
  background-color: #28a745;
}

.weather-card.uv_moderate {
  background-color: #ffc107;
}

.weather-card.uv_high {
  background-color: #fd7e14;
}

.weather-card.uv_very_high {
  background-color: #e83e8c;
}

.weather-card.uv_extreme {
  background-color: #dc3545;
}

/* ========================================
   VISIBILITY ADVICE
   ======================================== */

.visibility-advice {
  font-size: 0.8em;
  color: #FFFFFF;
  text-align: center;
  margin-top: 5px;
  line-height: 1.2;
  max-width: 100%;
  word-wrap: break-word;
}

/* ========================================
   ADVERT BOX
   ======================================== */

#advert-box {
  width: 100%;
  height: auto;
  background-color: #000000;
  text-align: center;
  padding: 0;
  opacity: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

#advert-image,
#advert-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
} 