/**
 * ULTIMATE CLOCK FIX - FORCES SINGLE LINE
 * Load this AFTER all other CSS files
 */

/* NUCLEAR OPTION - Override EVERYTHING */
.header-clock {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    
    /* Position - aligned with header right edge */
    position: relative !important;
    margin-left: auto !important;
    padding-right: 0 !important;
    
    /* Spacing between elements */
    gap: 0.75rem !important;
    padding-left: 2rem !important;
    
    /* Size */
    min-width: 420px !important;
    height: auto !important;
    
    /* No breaking */
    white-space: nowrap !important;
    
    /* Flex behavior */
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    
    /* Vertical alignment to match nav */
    align-self: center !important;
}

/* Each clock element MUST stay inline */
.header-greeting,
.header-time,
.header-date,
.header-clock-divider {
    display: inline-block !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Greeting */
.header-greeting {
    font-size: 0.9rem !important;
    color: #0ea5e9 !important;
}

/* Time */
.header-time {
    font-size: 1rem !important;
    color: #ffffff !important;
    font-weight: 600 !important;
}

/* Date */
.header-date {
    font-size: 0.85rem !important;
    color: #94a3b8 !important;
}

/* Divider - MUST be visible */
.header-clock-divider {
    display: inline-block !important;
    width: 1px !important;
    height: 20px !important;
    background: #475569 !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
}

/* Remove any conflicting margins */
.header-clock > * {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Responsive - but ALWAYS horizontal */
@media (max-width: 1200px) {
    .header-clock {
        min-width: 380px !important;
        gap: 0.6rem !important;
    }
    
    .header-greeting {
        font-size: 0.85rem !important;
    }
    
    .header-time {
        font-size: 0.95rem !important;
    }
    
    .header-date {
        font-size: 0.8rem !important;
    }
}

@media (max-width: 900px) {
    .header-clock {
        order: 3 !important;
        width: 100% !important;
        margin-top: 0.75rem !important;
        margin-left: 0 !important;
        justify-content: flex-start !important;
        /* STILL HORIZONTAL NO MATTER WHAT */
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        min-width: 350px !important;
    }
}
