/**
 * Scootercam Weather Station - Main Styles
 * Allegan County, Michigan
 */

/* ============================================================================
   BANNER & HEADER
============================================================================ */
.banner-gradient {
    background: linear-gradient(to bottom, #38b6fe, #f3b02e);
    height: 120px;
}

.logo-placeholder {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: top;
    font-size: 12px;
    color: #fff;
    text-align: center;
    margin: 10px;
    transition: transform 0.2s ease;
}

.logo-placeholder:hover {
    transform: scale(1.05);
}

.title-text {
    font-family: 'Cherry Cream Soda', cursive;
    color: #1a365d;
    font-size: 28px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
    transition: color 0.2s ease;
}

.title-text:hover {
    color: #0d1b2a;
}

.subtitle-text {
    font-family: 'Roboto Condensed', sans-serif;
    color: #2d3748;
    font-size: 16px;
    font-weight: 400;
    text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.7);
}

/* ============================================================================
   MOBILE NAVIGATION
============================================================================ */
.hamburger-icon {
    font-size: 24px;
    color: #1a365d;
    cursor: pointer;
    padding: 10px;
}

.hamburger-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.dropdown-menu {
    background: #f8f9fa;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid #e9ecef;
    display: none; /* Hidden by default */
}

.dropdown-menu.w3-show {
    display: block !important; /* Show when toggled */
}

/* Hide on large screens */
@media (min-width: 993px) {
    .dropdown-menu {
        display: none !important;
    }
}

.dropdown-item {
    color: #1a365d;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 500;
    padding: 12px 20px;
    margin: 4px 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #e9ecef;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: #e3f2fd;
    text-decoration: none;
    color: #1a365d;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
    border-color: #bbdefb;
}

/* ============================================================================
   DESKTOP NAVIGATION
============================================================================ */
.desktop-menu {
    background: #f8f9fa;
    font-family: 'Roboto Condensed', sans-serif;
    border-bottom: 1px solid #e9ecef;
}

.desktop-menu-item {
    color: #1a365d;
    font-weight: 500;
    padding: 12px 18px;
    margin: 8px 4px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.desktop-menu-item:hover {
    background: #e3f2fd;
    color: #1a365d;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border-color: #bbdefb;
}

/* ============================================================================
   ICONS
============================================================================ */
.icon-placeholder {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a365d;
}

.icon-placeholder svg {
    width: 20px;
    height: 20px;
    stroke: #1a365d;
    fill: none;
}

/* ============================================================================
   CONTENT GRID
============================================================================ */
.flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Standard flex item (2 columns on mobile, 4 on desktop) */
.flex-item {
    flex: 0 0 calc(50% - 6px);
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    color: #1a365d;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 500;
    transition: all 0.2s ease;
}

/* Remove default hover effect - only apply to clickable items */
.flex-item:hover {
    /* No hover effect by default */
}

/* Clickable flex item wrapper */
a.flex-item-link {
    flex: 0 0 calc(50% - 6px);
    text-decoration: none;
    color: inherit;
    display: flex;
    cursor: pointer;
}

/* Hover effect ONLY for clickable items */
a.flex-item-link:hover .flex-item {
    background: #e3f2fd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    border-color: #bbdefb;
}

a.flex-item-link .flex-item {
    flex: 1;
    width: 100%;
    cursor: pointer;
}

/* Wide flex item (full width on mobile, half on desktop) */
.flex-item-wide {
    flex: 0 0 100%;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    color: #1a365d;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 500;
    transition: all 0.2s ease;
}

/* Remove default hover effect for wide items */
.flex-item-wide:hover {
    /* No hover effect by default */
}

/* Clickable wide flex item wrapper */
a.flex-item-wide-link {
    flex: 0 0 100%;
    text-decoration: none;
    color: inherit;
    display: flex;
    cursor: pointer;
}

/* Hover effect ONLY for clickable wide items */
a.flex-item-wide-link:hover .flex-item-wide {
    background: #e3f2fd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    border-color: #bbdefb;
}

a.flex-item-wide-link .flex-item-wide {
    flex: 1;
    width: 100%;
    cursor: pointer;
}

/* Wide flex item with no padding (for images/video) */
.flex-item-wide-np {
    flex: 0 0 100%;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 0;
    text-align: center;
    color: #1a365d;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 500;
    transition: all 0.2s ease;
}

/* Remove default hover effect for wide no-padding items */
.flex-item-wide-np:hover {
    /* No hover effect by default */
}

/* Clickable wide no-padding flex item wrapper */
a.flex-item-wide-np-link {
    flex: 0 0 100%;
    text-decoration: none;
    color: inherit;
    display: flex;
    cursor: pointer;
}

/* Hover effect ONLY for clickable wide no-padding items */
a.flex-item-wide-np-link:hover .flex-item-wide-np {
    background: #e3f2fd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    border-color: #bbdefb;
}

a.flex-item-wide-np-link .flex-item-wide-np {
    flex: 1;
    width: 100%;
    cursor: pointer;
}

/* ============================================================================
   RESPONSIVE BREAKPOINTS
============================================================================ */
@media (min-width: 993px) {
    .title-text {
        font-size: 32px;
    }
    
    .subtitle-text {
        font-size: 18px;
    }
    
    .flex-item,
    a.flex-item-link {
        flex: 0 0 calc(25% - 9px);
    }
    
    .flex-item-wide,
    a.flex-item-wide-link {
        flex: 0 0 calc(50% - 6px);
    }
}
/* ============================================================================
   FLEX ITEM CONTENT
============================================================================ */
.flex-item-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.flex-item-subtitle {
    font-size: 14px;
    font-weight: 600;
    color: #1a365d;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.flex-item-title {
    font-size: clamp(24px, 5vw, 36px);
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.2;
}

.flex-item-title-sm {
    font-size: clamp(20px, 4vw, 28px);
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.2;
}

.flex-item-desc {
    font-size: clamp(16px, 3vw, 20px);
    color: #6c757d;
}

.flex-item-even {
    font-size: clamp(16px, 3vw, 20px);
    color: #6c757d;
    padding-bottom: 10px;
}

.flex-item-odd {
    font-size: clamp(16px, 3vw, 20px);
    color: #6c757d;
    font-weight: 500;
}

/* ============================================================================
   VIDEO CONTAINER
============================================================================ */
.video-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.video-container video {
    width: 100%;
    display: block;
}

.video-container.playing .video-poster {
    opacity: 0;
    pointer-events: none;
}

.video-container.paused .video-poster {
    opacity: 1;
}

/* ============================================================================
   RESPONSIVE BREAKPOINTS
============================================================================ */
@media (min-width: 993px) {
    .title-text {
        font-size: 32px;
    }
    
    .subtitle-text {
        font-size: 18px;
    }
    
    .flex-item,
    a.flex-item-link {
        flex: 0 0 calc(25% - 9px);
    }
    
    .flex-item-wide,
    a.flex-item-wide-link {
        flex: 0 0 calc(50% - 6px);
    }
}

/* ============================================================================
   UTILITY CLASSES
============================================================================ */
.w3-flex {
    display: flex;
}

.w3-align-center {
    align-items: center;
}