/* ============================================
   PRECIPNODE - UNIFIED STYLESHEET
   ============================================ */

/* Base Styles */
body {
    background-color: #edf2f7;
    margin: 0;
    padding: 0;
    font-family: 'Source Sans Pro', sans-serif;
    color: #1e293b;
    line-height: 1.6;
}

/* Logo and Tagline */
#logo {
    display: flex;
    justify-content: center;
    padding: 20px 0 10px 0;
}

#logo img {
    max-width: 300px;
    height: auto;
}

#tagline {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

#tagline > p {
    font-family: Roboto, sans-serif;
    font-size: 11px;
    font-weight: 400;
    color: #64748b;
    margin: 0;
}

/* Navigation */
#navbar {
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    min-height: 50px;
    width: 100%;
    font-family: Roboto, sans-serif;
    background-color: rgb(40, 42, 53);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 5px 0;
}

#navbar > a,
#navbar > span {
    color: rgb(241, 241, 241);
    padding: 12px 24px;
    font-size: 16px;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 4px;
    margin: 4px;
}

#navbar > a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

#navbar > span {
    background-color: #076AE0;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 2px 8px rgba(7, 106, 224, 0.3);
}

/* Spacer utility */
#spacer {
    height: 50px;
}

/* ============================================
   WEATHER/PRECIPITATION CARDS
   ============================================ */

#weather {
    opacity: 1;
    padding-bottom: 40px;
}

/* Weather Controls (Refresh button & timestamp) */
.weather-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    padding: 15px 20px;
    margin: 20px 0 15px 0;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

#refreshBtn {
    background-color: #076AE0;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

#refreshBtn:hover:not(:disabled) {
    background-color: #0556b3;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(7, 106, 224, 0.3);
}

#refreshBtn:disabled {
    background-color: #cbd5e1;
    cursor: not-allowed;
}

.last-updated {
    font-size: 13px;
    color: #64748b;
    font-style: italic;
}

/* No Precipitation Message */
.no-precip-message {
    background-color: #fff;
    margin: 20px 0;
    padding: 60px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    text-align: center;
}

.no-precip-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: sunny 3s ease-in-out infinite;
}

@keyframes sunny {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.no-precip-message h3 {
    color: #0f172a;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.no-precip-message p {
    color: #64748b;
    font-size: 16px;
    margin: 0;
}

#loadingimage {
    opacity: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 0;
}

/* Header dates */
.headDate {
    font-size: 24px;
    font-weight: 600;
    color: #1e293b;
    margin: 30px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 3px solid #076AE0;
}

/* Event cards */
.eventcard {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 0px;
    background-color: #fff;
    margin: 15px 0;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.eventcard:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.12);
}

.eventcard > div.box1 {
    background-color: #fff7e1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.eventcard > div.box1 > div.time {
    font-size: 12px;
    padding: 8px 10px;
    text-align: center;
    color: #64748b;
}

.eventcard > div.box1 > div.flierbox {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.flier {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-style: none;
}

/* Event content */
.eventcard > div.box2 {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.event_showname {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
}

.event_showvenue {
    font-size: 14px;
    font-weight: 500;
    color: #076AE0;
    margin: 0;
}

.event_showdetails {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    background-color: rgb(247, 250, 252);
    padding: 10px;
    border-radius: 6px;
    margin-top: 4px;
}

.eventcard > div.box3 {
    padding: 0px;
    margin: 0px;
}

/* ============================================
   INFO/FAQ PAGE
   ============================================ */

#infoblock {
    margin-top: 20px;
    padding-bottom: 40px;
}

.questioncard {
    background-color: #fff;
    margin: 20px 0;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.questioncard:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.questioncard > h4 {
    margin: 0;
    padding: 20px 20px 10px 20px;
    font-size: 18px;
    font-weight: 600;
    color: #076AE0;
    border-left: 4px solid #076AE0;
}

.questioncard > p {
    padding: 0 20px 20px 20px;
    margin: 0;
    line-height: 1.7;
    color: #475569;
    font-size: 16px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet and below (768px) */
@media (max-width: 768px) {
    #navbar > a,
    #navbar > span {
        font-size: 14px;
        padding: 10px 16px;
    }

    .headDate {
        font-size: 22px;
        margin: 25px 0 15px 0;
    }
    
    .event_showname {
        font-size: 17px;
    }
    
    .eventcard {
        margin: 12px 0;
    }

    .eventcard > div.box2 {
        padding: 14px;
    }

    /* Info page responsive */
    .questioncard {
        margin: 15px 0;
    }
    
    .questioncard > h4 {
        font-size: 16px;
        padding: 16px 20px 10px 20px;
    }
    
    .questioncard > p {
        font-size: 15px;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    #logo img {
        max-width: 200px;
    }

    #navbar {
        padding: 5px 0;
    }

    .weather-controls {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
        padding: 12px 15px;
    }

    #refreshBtn {
        width: 100%;
    }

    .last-updated {
        text-align: center;
        font-size: 12px;
    }

    .no-precip-message {
        padding: 40px 15px;
    }

    .no-precip-icon {
        font-size: 60px;
    }

    .no-precip-message h3 {
        font-size: 20px;
    }

    .no-precip-message p {
        font-size: 14px;
    }

    .headDate {
        font-size: 20px;
        margin: 20px 0 12px 0;
    }
    
    .eventcard {
        grid-template-columns: 80px 1fr;
        border-radius: 10px;
        margin: 10px 0;
    }

    .eventcard > div.box1 > div.flierbox {
        padding: 8px;
    }

    .flier {
        width: 60px;
        height: 60px;
    }

    .event_showname {
        font-size: 16px;
    }

    .event_showvenue {
        font-size: 13px;
    }

    .event_showdetails {
        font-size: 13px;
        padding: 8px;
    }

    .eventcard > div.box2 {
        padding: 12px;
    }

    /* Info page mobile */
    .questioncard {
        margin: 12px 0;
        border-radius: 10px;
    }
    
    .questioncard > h4 {
        font-size: 15px;
        padding: 14px 16px 8px 16px;
    }
    
    .questioncard > p {
        font-size: 14px;
        padding: 0 16px 14px 16px;
    }
}

/* Extra small devices (390px and below) */
@media (max-width: 390px) {
    #navbar > a,
    #navbar > span {
        font-size: 13px;
        padding: 8px 12px;
    }
}