/* FILE: ProjectRoot/web/css/club.css */

/* ===========================
   GLOBAL PAGE STYLING
   =========================== */
html {
    font-size: 12px;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #FFFFFF;
    margin: 0;
    padding: 0;
}

.page-title {
    font-size: 1.4em;
    font-weight: 600;
    margin: 12px 0 4px 0;
    text-align: center;
    color: #444;
}

/* ===========================
   FLEX LAYOUT (replaces grid)
   =========================== */
.grid-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    column-gap: 8px;   /* small horizontal gap */
    row-gap: 12px;     /* vertical gap */

    padding: 10px;
    margin: 20px auto 40px auto;
}

/* ===========================
   STATION CARD (legacy)
   =========================== */
.station-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #333;
    border-radius: 6px;
    padding: 10px;
    text-align: center;
    max-width: 260px;
    margin: 0 auto;
}

.station-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 8px;
    color: #04AA6D;
}

/* Container for the widget instance */
.station-widget-container {
    display: inline-flex;
    flex: 0 0 auto;
}

/* ===========================
   STATION LINKS (legacy)
   =========================== */
.station-links {
    margin-top: 8px;
    display: flex;
    justify-content: space-around;
    font-size: 1.5rem;
}

.station-links a {
    color: #04AA6D;
    text-decoration: none;
}

.station-links a:hover { 
    font-weight: bold; 
}

/* ===========================
   BATTERY (legacy)
   =========================== */
.station-battery { 
    margin-top: 10px; 
}

.batteryContainer {
    display: flex;
    justify-content: center;
    flex-direction: row;
    align-items: center;
    margin-top: 5px;
}

.batteryOuter {
    border-radius: 6px;
    border: 3px solid #444;
    padding: 1px;
    width: 100px;
    height: 20px;
}

.batteryBump {
    border-radius: 5px;
    background-color: #444;
    margin: 0px;
    width: 5px;
    height: 16px;
}

.batteryLevel {
    border-radius: 2px;
    background-color: #04AA6D;
    width: 95px;
    height: 20px;
}

/* ===========================
   TOOLTIP (legacy)
   =========================== */
.tooltip { 
    position: relative; 
    display: inline-block; 
    justify-content: center; 
}

.tooltip .tooltiptext {
    font-size: 0.8rem;
    visibility: hidden;
    width: 120px;
    color: black;
    text-align: center;
    position: absolute;
    z-index: 1;
    top: 35%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 500ms;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* ===========================
   VALUE ROWS AROUND WIDGET (legacy)
   =========================== */
.station-values-top,
.station-values-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    margin: 4px 0;
}

.stn-wind-speed,
.stn-wind-dir,
.stn-temp,
.stn-humidity {
    min-width: 40%;
}

.stn-wind-speed,
.stn-temp {
    text-align: left;
}

.stn-wind-dir,
.stn-humidity {
    text-align: right;
}

/* ===========================
   SHRUNK WIDGET (legacy)
   =========================== */
/* Removed .station-widget entirely — no longer used */

/* ===========================
   WIDGET OVERLAY VALUES
   =========================== */
.widget-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    align-items: center;
    justify-items: center;
}

.widget-overlay div {
    font-size: 1.8rem;
    font-weight: 300;
    color: #000;
    text-shadow: none;
}

.overlay-speed {
    grid-column: 1;
    grid-row: 1;
    transform: translate(-15%, -125%);
}

.overlay-dir {
    grid-column: 2;
    grid-row: 1;
    transform: translate(15%, -125%);
}

.overlay-temp {
    grid-column: 1;
    grid-row: 2;
    transform: translate(-15%, 125%);
}

.overlay-hum {
    grid-column: 2;
    grid-row: 2;
    transform: translate(15%, 125%);
}

/* ===========================
   COUNTDOWN TIMER (legacy)
   =========================== */
.station-timer {
    margin-top: 4px;
    font-size: 1.5rem;
    text-align: center;
    color: #333;
}
