/**
 * Beautiful Gradient Background for Header
 * Professional blue-red gradient theme
 */

/* Professional gradient based on #5a6268 */
.new-header-gradient {
    background: linear-gradient(135deg, 
        #2d3436 0%,     /* Dark slate */
        #5a6268 20%,    /* Base color */
        #4a5568 40%,    /* Slate gray */
        #3b82f6 60%,    /* Bright blue accent */
        #60a5fa 80%,    /* Light blue */
        #93c5fd 100%    /* Sky blue */
    );
    background-size: 400% 400%;
    animation: gradientShift 20s ease infinite;
    position: relative;
    overflow: hidden;
    min-height: 600px;
}

/* Animated gradient shift */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Pure blue gradient alternative */
.new-header-gradient.pure-blue {
    background: linear-gradient(135deg, 
        #0f172a 0%,     /* Dark navy */
        #1e40af 30%,    /* Deep blue */
        #3b82f6 60%,    /* Bright blue */
        #60a5fa 100%    /* Light blue */
    );
}

/* Blue to cyan gradient */
.new-header-gradient.blue-cyan {
    background: linear-gradient(135deg, 
        #1e3a8a 0%, 
        #2563eb 33%, 
        #06b6d4 66%, 
        #22d3ee 100%
    );
}

/* Overlay pattern for depth */
.new-header-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

/* Geometric pattern overlay (optional) */
.new-header-gradient::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(30deg, rgba(255, 255, 255, 0.05) 12%, transparent 12.5%, transparent 87%, rgba(255, 255, 255, 0.05) 87.5%, rgba(255, 255, 255, 0.05)),
        linear-gradient(150deg, rgba(255, 255, 255, 0.05) 12%, transparent 12.5%, transparent 87%, rgba(255, 255, 255, 0.05) 87.5%, rgba(255, 255, 255, 0.05)),
        linear-gradient(30deg, rgba(255, 255, 255, 0.05) 12%, transparent 12.5%, transparent 87%, rgba(255, 255, 255, 0.05) 87.5%, rgba(255, 255, 255, 0.05)),
        linear-gradient(150deg, rgba(255, 255, 255, 0.05) 12%, transparent 12.5%, transparent 87%, rgba(255, 255, 255, 0.05) 87.5%, rgba(255, 255, 255, 0.05));
    background-size: 80px 140px;
    background-position: 0 0, 0 0, 40px 70px, 40px 70px;
    pointer-events: none;
    opacity: 0.3;
}

/* Ensure text is readable on gradient */
.new-header-gradient .header-inner {
    position: relative;
    z-index: 2;
    padding: 40px 0;
}

/* Main title styling */
.new-header-gradient .main-title {
    color: #ffffff;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.5px;
}

/* Description text styling */
.new-header-gradient .info {
    color: rgba(255, 255, 255, 0.95);
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 24px;
    text-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.3),
        0 1px 4px rgba(0, 0, 0, 0.2);
    /*max-width: 600px;*/
}

/* Red alert/notice box styling */
.new-header-gradient .alert,
.new-header-gradient [style*="background"] {
    background: rgba(239, 68, 68, 0.95) !important;
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 16px 24px;
    color: white;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    box-shadow: 
        0 8px 24px rgba(239, 68, 68, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 20px;
}

/* Search form styling with glassmorphism */
.new-header-gradient .search-bar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 24px 28px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 20px;
}

.new-header-gradient .menu-car-form {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 24px 28px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

/* Form layout */
.new-header-gradient .menu-search-form {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    align-items: center;
    width: 100%;
}

.new-header-gradient .menu-car-form {
    display: block;
    width: 100%;
}

/* Input fields styling */
.new-header-gradient .item-search {
    flex: 1;
    min-width: 0;
    background: #ffffff;
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 10px;
    padding: 14px 20px;
    font-size: 16px;
    color: #1e293b;
    transition: all 0.3s ease;
}

.new-header-gradient .zu2 {
    background: #ffffff;
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 10px;
    padding: 14px 20px;
    font-size: 16px;
    color: #1e293b;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 0;
}

.new-header-gradient .item-search::placeholder,
.new-header-gradient .zu2::placeholder {
    color: #94a3b8;
}

.new-header-gradient .item-search:focus,
.new-header-gradient .zu2:focus {
    border-color: #3b82f6;
    box-shadow: 
        0 0 0 4px rgba(59, 130, 246, 0.1),
        0 4px 12px rgba(59, 130, 246, 0.15);
    outline: none;
    transform: translateY(-1px);
}

/* Dark form inputs */
.new-header-gradient .menu-car-form .zu2 {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.new-header-gradient .menu-car-form .zu2::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.new-header-gradient .menu-car-form .zu2:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 0 0 4px rgba(255, 255, 255, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Input form layout */
.new-header-gradient .inputs_form {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    width: 100%;
}

.new-header-gradient .inputs_form .zu2 {
    flex: 1;
    min-width: 0;
}

/* Submit buttons */
.new-header-gradient button[type="submit"] {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    border: none;
    color: white;
    font-weight: 600;
    font-size: 16px;
    padding: 14px 32px;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 20px rgba(59, 130, 246, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    cursor: pointer;
    text-transform: none;
    letter-spacing: 0.3px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Full width button for car form */
.new-header-gradient .menu-car-form button[type="submit"] {
    width: 100%;
}

.new-header-gradient button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 30px rgba(59, 130, 246, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    background: linear-gradient(135deg, #2563eb 0%, #1e3a8a 100%);
}

.new-header-gradient button[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 
        0 2px 10px rgba(59, 130, 246, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

/* Button wrapper styling */
.new-header-gradient .btn-wrapper {
    margin-top: 30px;
}

.new-header-gradient .default-btn {
    display: inline-block;
    padding: 14px 32px;
    background: rgba(255, 255, 255, 0.95);
    color: #1e40af;
    font-weight: 600;
    font-size: 16px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 20px rgba(255, 255, 255, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.new-header-gradient .default-btn:hover {
    transform: translateY(-2px);
    background: #ffffff;
    box-shadow: 
        0 8px 30px rgba(255, 255, 255, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    color: #1e3a8a;
    text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .new-header-gradient {
        background-size: 200% 200%;
        min-height: 500px;
    }
    
    .new-header-gradient .main-title {
        font-size: 36px;
    }
    
    .new-header-gradient .info {
        font-size: 16px;
    }
    
    .new-header-gradient .search-bar,
    .new-header-gradient .menu-car-form {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .new-header-gradient {
        background-size: 150% 150%;
        min-height: 450px;
    }
    
    .new-header-gradient::after {
        opacity: 0.2;
    }
    
    .new-header-gradient .header-inner {
        padding: 20px 0;
    }
    
    .new-header-gradient .main-title {
        font-size: 28px;
        margin-bottom: 16px;
    }
    
    .new-header-gradient .info {
        font-size: 15px;
        margin-bottom: 20px;
    }
    
    .new-header-gradient .search-bar,
    .new-header-gradient .menu-car-form {
        padding: 16px;
        border-radius: 12px;
    }
    
    .new-header-gradient .menu-search-form {
        flex-direction: column;
        gap: 10px;
    }
    
    .new-header-gradient .item-search {
        width: 100%;
    }
    
    .new-header-gradient button[type="submit"] {
        width: 100%;
    }
    
    .new-header-gradient .item-search,
    .new-header-gradient .zu2 {
        padding: 12px 16px;
        font-size: 15px;
    }
    
    .new-header-gradient .inputs_form {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .new-header-gradient .main-title {
        font-size: 24px;
    }
    
    .new-header-gradient .info {
        font-size: 14px;
    }
}

/* Performance optimization */
.new-header-gradient {
    will-change: background-position;
}

/* Disable animation on reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .new-header-gradient {
        animation: none;
    }
}
