/*
Theme Name: Farmall Acres Theme
Theme URI: https://weather.farmallacres.farm
Author: Alex
Description: Custom theme for Farmall Acres Weather Station
Version: 3.3
*/

/* ================= GLOBAL ================= */

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  background: transparent;
  color: #333;
  font-family: "Open Sans", Arial, sans-serif;
  overflow-x: hidden;
}

/* ================= HEADER ================= */

header {
  background: linear-gradient(180deg, #C00026 0%, #A00020 100%);
  color: #FFF9BB;
  text-align: center;
  padding: 25px 0;
  box-shadow: 0 3px 8px rgba(0,0,0,0.4);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 20;
  border-bottom: 4px solid #5A5A5A;
}

.header-container {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  gap: 150px;
}

.tractor-header {
  height: 100px;
  border-radius: 10px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.3);
}

/* ================= HERO BACKGROUND ================= */

.hero {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: url("barn.jpg") center center / cover no-repeat fixed;
  z-index: -1;
}

/* ================= MAIN CONTENT ================= */

main {
  flex: 1;
  margin-top: 220px;
  text-align: center;
  position: relative;
  padding-bottom: 40px;
}

/* ============================================================= */
/* ======================== GRID LAYOUT ========================= */
/* ============================================================= */

.weather-panels-grid {
  display: grid;
  grid-template-columns: 500px 1fr;
  gap: 40px;
  max-width: 1800px;
  margin: 0 auto;
  padding: 30px 0;
}

.left-column {
  display: grid;
  grid-template-rows: 600px 300px;
  gap: 45px;
}

.right-column {
  display: grid;
  grid-template-columns: repeat(2, 480px);
  gap: 45px;
  align-content: start;
}

/* ================= PANELS ================= */

.weather-panel {
  width: 480px;
  height: 300px;
  padding: 14px;
  background: #ffffffdd;
  border-radius: 12px;
  border: 3px solid #5A5A5A;
  box-shadow: 0 6px 14px rgba(0,0,0,0.35);
  text-align: left;
  margin: 0;
  display: flex;
  flex-direction: column;
  position: relative;

  /* Needed for all panels that use tabs */
  padding-bottom: 48px !important;
}

/* ========================================================= */
/* ======================= RADAR PANEL ====================== */
/* ========================================================= */

#panelRadar {
  width: 500px !important;
  height: 600px !important;
  min-height: 600px !important;
  max-height: 600px !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: 12px;
  border: 3px solid #5A5A5A;
  box-shadow: 0 6px 14px rgba(0,0,0,0.35);
  background: #fff;
}

/* Iframe inside radar panel */
#panelRadar iframe {
  width: 100% !important;
  height: 100% !important;
  border: none !important;
  overflow: hidden !important;
  display: block !important;
}

/* ================= TITLES ================= */

.weather-panel-title {
  font-family: "Georgia", serif;
  font-size: 1.8rem;
  margin-top: -6px;
  margin-bottom: 10px;
  color: #A00020;
}

/* ================= GRID INSIDE PANELS ================= */

.weather-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 18px;
  margin-top: -5px;
  flex: 1;
  margin-bottom: 12px;
}

.weather-card {
  text-align: left;
}

.weather-icon {
  font-size: 32px;
}

.weather-value {
  font-size: 22px;
  font-weight: bold;
  color: #333;
}

.weather-label {
  font-size: 15px;
  color: #555;
}

/* ================= TABS ================= */

.temp-tabs {
  position: absolute;
  bottom: 10px !important;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 14px;
}

.temp-tab {
  padding: 6px 16px;
  background: #ccc;
  border: 2px solid #5A5A5A;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
}

.temp-tab.active {
  background: #A00020;
  color: #FFF9BB;
}

.temp-section,
.wind-section,
.sunmoon-section {
  display: none;
}

.temp-section.active,
.wind-section.active,
.sunmoon-section.active {
  display: block;
}

/* ================= WEATHER CAM ================= */

#panelWeatherCam {
  width: 500px !important;
  height: 300px !important;
}

#panelWeatherCam video {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-top: 10px;
  box-shadow: 0 5px 12px rgba(0,0,0,0.5);
}

/* ================= FOOTER ================= */

footer {
  background: linear-gradient(180deg, #C00026 0%, #A00020 100%);
  color: #FFF9BB;
  text-align: center;
  padding: 25px 0 20px;
  font-size: 0.9rem;
  border-top: 4px solid #5A5A5A;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.15),
              0 -2px 6px rgba(0,0,0,0.4);
}
/* ================= WEATHER CAM WIDTH FIX ================= */
/* Make WeatherCam exactly match Radar width (500px) */
#panelWeatherCam {
  width: 500px !important;
}
/* Force WeatherCam panel to EXACTLY match radar width */
#panelWeatherCam {
    width: 500px !important;
    max-width: 500px !important;
    min-width: 500px !important;
    box-sizing: border-box;
}

/* Remove extra inner padding pushing the video inward */
#panelWeatherCam .weather-grid {
    padding: 0 !important;
    margin: 0 !important;
}

/* Make the video stretch fully */
#panelWeatherCam video {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}
/* Make WeatherCam panel visually match Radar width */
#panelWeatherCam {
    width: 500px !important;
    padding: 0 !important;           /* Remove interior padding */
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* Title spacing restored manually */
#panelWeatherCam .weather-panel-title {
    padding: 14px 14px 0 14px !important;
}

/* Remove extra margin/padding inside grid */
#panelWeatherCam .weather-grid {
    padding: 0 !important;
    margin: 0 !important;
}

/* Video full width flush inside panel */
#panelWeatherCam video {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 0 0 12px 12px;
    margin: 0 !important;
}
/* Remove WeatherCam icon + label row */
#panelWeatherCam .weather-grid {
    display: none !important;
}

/* Clean title spacing like other panels */
#panelWeatherCam .weather-panel-title {
    padding: 14px !important;
    margin-bottom: 0 !important;
}

/* Full-width video to match radar */
#panelWeatherCam video {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    border-radius: 0 0 12px 12px;
}/* Completely remove WeatherCam title */
#panelWeatherCam .weather-panel-title {
    display: none !important;
}
/* Make WeatherCam video fill the entire panel */
#panelWeatherCam {
    width: 500px !important;
    height: 300px !important;
    padding: 0 !important;      /* remove inner padding */
    overflow: hidden !important;
}

#panelWeatherCam video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; 
    border-radius: 10px !important;
    margin: 0 !important;
    display: block !important;
}