/**
 * Government Top Bar Widget Styles
 */

/* ==========================================================================
   GOVERNMENT TOP BAR WIDGET
   ========================================================================== */

.gov-top-bar-widget {
    width: 100%;
}

/* Top Bar Section */

.gov-top-bar-widget .gov-top-bar .container {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.gov-top-bar-widget .gov-top-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Date and Weather Section */
.gov-top-bar-widget .gov-date-weather {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.gov-top-bar-widget .gov-calendar-icon {
    font-size: 16px;
    color: var(--gov-primary);
}

.gov-top-bar-widget .gov-date {
    font-weight: 600;
    color: #ffffff;
}

.gov-top-bar-widget .gov-weather-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gov-top-bar-widget .gov-weather-separator {
    color: #ffffff;
    font-weight: 300;
}

.gov-top-bar-widget .gov-temperature {
    font-weight: 600;
    color: #ffffff;
}

.gov-top-bar-widget .gov-weather-icon {
    font-size: 16px;
    color: var(--gov-primary);
    display: flex;
    align-items: center;
}

.gov-top-bar-widget .gov-weather-icon img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

/* Search Section */

.gov-top-bar-widget .gov-search-section .container {
    display: flex;
    justify-content: right;
    align-items: center;
    margin-top: 16px;
}

.gov-top-bar-widget .gov-search-container {
    width: 100%;
    max-width: 308px;
    position: relative;
}

.gov-top-bar-widget .gov-search-form {
    display: flex;
    width: 100%;
    position: relative;
}

.gov-top-bar-widget .gov-search-input {
    font-size: 14px;
    color: var(--gov-secondary);
    transition: all 0.3s ease;
    outline: none;
    display: flex;
    width: 308px;
    height: 48px;
    padding: 7px 0 7px 12px;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    border-radius: 100px;
    border: 1px solid var(--Prim-1, #0065B3);
    background: var(--neutral-color-light, #FFF);
}

.gov-top-bar-widget .gov-search-input:focus {
    border-color: var(--gov-primary);
    box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.1);
}

.gov-top-bar-widget .gov-search-input::placeholder {
    color: var(--gov-gray);
    font-style: italic;
}

.gov-top-bar-widget .gov-search-button {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gov-white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    border-radius: 0 23.5px 23.5px 0;
    background: var(--Prim-1, #0065B3);
    width: 56px;
    height: 48px;
    flex-shrink: 0;
}

.gov-top-bar-widget .gov-search-button:hover {
    background: var(--gov-primary-dark);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.gov-top-bar-widget .gov-search-button svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {
    .gov-top-bar-widget .gov-top-bar .container {
        justify-content: center;
    }
    
    .gov-top-bar-widget .gov-top-info {
        gap: 10px;
        text-align: center;
    }
    
    .gov-top-bar-widget .gov-weather-separator {
        display: none;
    }
    
    .gov-top-bar-widget .gov-search-container {
        max-width: 100%;
    }
    
    .gov-top-bar-widget .gov-search-input {
        padding: 10px 45px 10px 15px;
        font-size: 13px;
    }
    
    .gov-top-bar-widget .gov-search-button {
        width: 35px;
        height: 35px;
    }
    
    .gov-top-bar-widget .gov-search-button svg {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 480px) {
    .gov-top-bar-widget .gov-top-bar {
        padding: 6px 0;
        font-size: 12px;
    }
    
    .gov-top-bar-widget .gov-search-section {
        padding: 15px 0;
    }
    
    .gov-top-bar-widget .gov-search-input {
        padding: 8px 40px 8px 12px;
        font-size: 12px;
        border-radius: 20px;
    }
    
    .gov-top-bar-widget .gov-search-button {
        width: 30px;
        height: 30px;
    }
    
    .gov-top-bar-widget .gov-search-button svg {
        width: 12px;
        height: 12px;
    }
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

.gov-top-bar-widget .gov-search-input:focus + .gov-search-button {
    animation: pulse 0.3s ease-in-out;
}

@keyframes pulse {
    0% {
        transform: translateY(-50%) scale(1);
    }
    50% {
        transform: translateY(-50%) scale(1.1);
    }
    100% {
        transform: translateY(-50%) scale(1);
    }
}

/* ==========================================================================
   ELEMENTOR EDITOR STYLES
   ========================================================================== */

.elementor-editor-active .gov-top-bar-widget {
    border: 2px dashed var(--gov-primary);
    padding: 10px;
    margin: 10px 0;
}

.elementor-editor-active .gov-top-bar-widget::before {
    content: "Government Top Bar Widget";
    display: block;
    background: var(--gov-primary);
    color: var(--gov-white);
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 10px;
    border-radius: 4px;
}

/* ==========================================================================
   CUSTOMIZATION HELPERS
   ========================================================================== */

/* Alternative color schemes */
.gov-top-bar-widget.gov-theme-dark .gov-top-bar {
    background: var(--gov-secondary);
    color: var(--gov-white);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.gov-top-bar-widget.gov-theme-dark .gov-date,
.gov-top-bar-widget.gov-theme-dark .gov-temperature {
    color: var(--gov-white);
}

.gov-top-bar-widget.gov-theme-dark .gov-search-section {
    background: rgba(255, 255, 255, 0.05);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

/* Compact mode */
.gov-top-bar-widget.gov-compact .gov-top-bar {
    padding: 4px 0;
    font-size: 12px;
}

.gov-top-bar-widget.gov-compact .gov-search-section {
    padding: 10px 0;
}

.gov-top-bar-widget.gov-compact .gov-search-input {
    padding: 8px 40px 8px 15px;
    font-size: 13px;
}

/* Large mode */
.gov-top-bar-widget.gov-large .gov-top-bar {
    padding: 12px 0;
    font-size: 14px;
}

.gov-top-bar-widget.gov-large .gov-search-section {
    padding: 30px 0;
}

.gov-top-bar-widget.gov-large .gov-search-input {
    padding: 15px 60px 15px 25px;
    font-size: 16px;
    border-radius: 30px;
}

.gov-top-bar-widget.gov-large .gov-search-button {
    width: 50px;
    height: 50px;
}

.gov-top-bar-widget.gov-large .gov-search-button svg {
    width: 20px;
    height: 20px;
} 