/* Fishing Weather Widget CSS (v1.1.0) */

.fw-banner {
    background: #1d1e21;
    color: #fff;
    padding: 25px;
    border-radius: 12px;
    display: flex;
    width: 98%;
    max-width: 1000px;
    margin: 20px auto;
    font-family: "Helvetica Neue", Arial, sans-serif;
    border: 1px solid rgba(255,255,255,0.15);
    box-sizing: border-box;
    line-height: 1.4;
    position: relative;
}

/* Columns */
.fw-col {
    flex: 1;
    border-right: 1px solid rgba(255,255,255,0.15);
    padding: 0 20px;
    box-sizing: border-box;
}

/* The credit is the last child, so the final data column is targeted directly. */
.fw-col-index {
    border-right: none;
}

/* Labels */
.fw-label {
    font-size: 10px;
    opacity: 0.5;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

/* Time / Location Column */
.fw-date {
    font-size: 18px;
    font-weight: bold;
}

.fw-clock {
    font-size: 38px;
    font-weight: bold;
    margin-top: 5px;
    letter-spacing: 1px;
}

.fw-location {
    color: #adff2f;
    font-size: 15px;
    font-weight: bold;
}

/* Sun Times */
.fw-sun-times {
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.fw-sun-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
}

.fw-sun-label {
    font-size: 11px;
    color: #ffcc00;
    font-weight: bold;
    letter-spacing: 1px;
}

.fw-sun-time {
    font-size: 14px;
    font-weight: bold;
    color: rgba(255,255,255,0.9);
}

/* Update Time */
.fw-update-time {
    margin-top: 12px;
    font-size: 12px;
    color: rgba(255,255,255,0.65);
}

/* Stale Notice */
.fw-stale-notice {
    margin-top: 8px;
    font-size: 11px;
    line-height: 1.5;
    color: #ffcc00;
    opacity: 0.9;
}

/* Main Weather Column */
.fw-weather-row {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.fw-icon-img {
    width: 80px;
    filter: brightness(0) invert(1) contrast(1.2);
}

.fw-icon-svg {
    width: 80px;
    height: 80px;
    margin-right: 10px;
}

.fw-icon-svg circle,
.fw-icon-svg line {
    stroke: #fff;
    stroke-width: 3.5;
    stroke-linecap: round;
    fill: none;
}

.fw-temp {
    font-size: 58px;
    font-weight: bold;
    line-height: 1;
}

.fw-temp small {
    font-size: 20px;
    vertical-align: super;
    margin-left: 2px;
}

.fw-desc {
    font-size: 14px;
    margin-bottom: 10px;
}

/* Stats */
.fw-stats {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.fw-pop {
    font-size: 22px;
    font-weight: bold;
    color: #7ecbff;
    display: flex;
    align-items: center;
}

.fw-pop svg {
    width: 12px;
    height: 16px;
    fill: #7ecbff;
    margin-right: 5px;
}

.fw-pop small {
    display: block;
    font-size: 10px;
    opacity: 0.65;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.fw-wind {
    font-size: 18px;
    font-weight: bold;
    color: #ffcc00;
}

.fw-wind small {
    font-size: 10px;
    opacity: 0.6;
    letter-spacing: 1px;
}

.fw-wind-dir {
    display: inline-block;
    margin-left: 4px;
    font-size: 12px;
    color: rgba(255,255,255,0.8);
}

.fw-gust {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: rgba(255,255,255,0.78);
}

.fw-divider {
    opacity: 0.2;
}

/* Rain Label */
.fw-rain-label {
    margin-top: 8px;
    font-size: 12px;
    color: rgba(255,255,255,0.75);
}

/* Tomorrow / Fishing Index Column */
.fw-tomorrow-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.fw-icon-sub {
    width: 40px;
    filter: brightness(0) invert(1);
}

.fw-temp-sub {
    font-size: 22px;
    font-weight: bold;
    margin-left: 10px;
}

.fw-status-box {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 15px;
}

.fw-score {
    color: #adff2f;
    font-size: 26px;
    font-weight: bold;
}

.fw-score-text {
    font-size: 11px;
    margin-top: 4px;
    opacity: 0.8;
}

/* Fishing Comment */
.fw-fishing-comment {
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.6;
    color: rgba(255,255,255,0.82);
}

.fw-index-note {
    margin: 8px 0 0;
    font-size: 10px;
    line-height: 1.5;
    color: rgba(255,255,255,0.58);
}

/* Right Bottom Credit */
.fw-credit {
    position: absolute;
    bottom: 8px;
    right: 15px;
    font-size: 10px;
    color: rgba(255,255,255,0.4);
    letter-spacing: 1px;
    pointer-events: none;
}

/* Preview Box */
.fw-preview-notice {
    padding: 20px;
    background: #222;
    color: #adff2f;
    border: 1px dashed #adff2f;
    border-radius: 8px;
    text-align: center;
    font-size: 13px;
}

/* Debug Box */
.fw-debug-box {
    width: 98%;
    max-width: 1000px;
    margin: -10px auto 20px;
    padding: 14px 16px;
    background: #111;
    color: #adff2f;
    border: 1px dashed rgba(173,255,47,0.7);
    border-radius: 8px;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 12px;
    line-height: 1.7;
    box-sizing: border-box;
}

.fw-hourly {
    width: 98%;
    max-width: 1000px;
    margin: 0 auto 12px;
    font-family: "Helvetica Neue", Arial, sans-serif;
}

.fw-hourly h3 {
    margin: 0 0 10px;
    font-size: 16px;
    color: #123047;
}

.fw-hourly-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid #d8e1e8;
    border-bottom: 1px solid #d8e1e8;
}

.fw-hourly-item {
    display: grid;
    justify-items: center;
    gap: 3px;
    padding: 12px 8px;
    border-right: 1px solid #d8e1e8;
    color: #203849;
    font-size: 12px;
    text-align: center;
}

.fw-hourly-item:last-child {
    border-right: 0;
}

.fw-hourly-item time {
    font-weight: 700;
}

.fw-hourly-item img {
    width: 48px;
    height: 48px;
}

.fw-hourly-item strong {
    font-size: 18px;
}

.fw-provider {
    width: 98%;
    max-width: 1000px;
    margin: 8px auto 0;
    color: #617383;
    font-size: 11px;
    line-height: 1.6;
}

.fw-provider a {
    color: #176c9c;
}

.fw-unavailable {
    padding: 18px 20px;
    border-left: 4px solid #e98a2d;
    background: #fff8ef;
    color: #4a3827;
}

.fw-unavailable p {
    margin: 0 0 6px;
}

.fw-unavailable p:last-child {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .fw-banner {
        flex-direction: column;
        width: 96%;
        padding: 22px;
    }

    .fw-col {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding: 15px 0;
    }

    .fw-col-index {
        border-bottom: none;
    }

    .fw-clock {
        font-size: 36px;
    }

    .fw-temp {
        font-size: 54px;
    }

    .fw-credit {
        position: static;
        text-align: right;
        margin-top: 10px;
    }

    .fw-debug-box {
        width: 96%;
        margin: -5px auto 20px;
    }

    .fw-hourly-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fw-hourly-item:nth-child(2) {
        border-right: 0;
    }

    .fw-hourly-item:nth-child(-n+2) {
        border-bottom: 1px solid #d8e1e8;
    }
}

@media (max-width: 480px) {
    .fw-banner {
        width: 100%;
        padding: 18px;
        border-radius: 10px;
    }

    .fw-clock {
        font-size: 34px;
    }

    .fw-temp {
        font-size: 50px;
    }

    .fw-icon-img,
    .fw-icon-svg {
        width: 72px;
        height: 72px;
    }

    .fw-stats {
        gap: 10px;
    }

    .fw-pop {
        font-size: 20px;
    }

    .fw-wind {
        font-size: 16px;
    }

    .fw-fishing-comment {
        font-size: 12px;
    }

    .fw-hourly,
    .fw-provider {
        width: 100%;
    }
}

/* Fishing Index Star Display */
.fw-fishing-index-line {
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.5;
}

.fw-fishing-index-title {
    color: rgba(255,255,255,0.75);
    font-weight: bold;
}

.fw-fishing-stars {
    color: #adff2f;
    font-size: 17px;
    font-weight: bold;
    letter-spacing: 1px;
}

.fw-fishing-index-text {
    color: rgba(255,255,255,0.85);
    font-size: 12px;
}
