/* Header Integration Styles - Logo to Banner Fade */

/* Adjust header layout for seamless integration */
.fred-header {
    background: linear-gradient(135deg, #2E7D32 0%, #388E3C 50%, #43A047 100%);
    position: relative;
    overflow: visible;
    display: flex;
    align-items: center;
}

/* Logo container adjustments */
.fred-header .fred-logo {
    position: relative;
    z-index: 10;
    margin-right: 0;
    display: flex;
    align-items: center;
    height: 100%;
}

/* Remove the overlay fade - let mask handle it */
.fred-logo::after {
    display: none;
}

/* Adjust logo image for better integration */
.fred-logo-img {
    height: 70px; /* Slightly smaller to avoid overlap */
    width: auto;
    object-fit: contain;
    position: relative;
    z-index: 4;
    margin: 0 20px 0 0;
    display: block;
    /* Subtle fade effect on right edge only */
    mask-image: linear-gradient(to right, 
        black 0%, 
        black 85%, 
        rgba(0,0,0,0.8) 95%,
        transparent 100%);
    -webkit-mask-image: linear-gradient(to right, 
        black 0%, 
        black 85%, 
        rgba(0,0,0,0.8) 95%,
        transparent 100%);
    /* Color adjustment to match header green */
    filter: 
        drop-shadow(0 0 10px rgba(255, 215, 0, 0.3))
        brightness(0.95)
        contrast(1.1)
        hue-rotate(-8deg)
        saturate(1.3);
}

/* Farm name banner integration */
.farm-name {
    margin-left: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

/* Enhanced banner with metallic effect */
.farm-name-banner {
    background: 
        /* Metallic shine overlay */
        linear-gradient(180deg,
            rgba(255, 255, 255, 0.4) 0%,
            rgba(255, 255, 255, 0.1) 20%,
            rgba(255, 255, 255, 0) 50%,
            rgba(0, 0, 0, 0.1) 80%,
            rgba(0, 0, 0, 0.2) 100%),
        /* Premium gradient */
        linear-gradient(135deg, 
            #2E7D32 0%, 
            #388E3C 25%,
            #43A047 50%,
            #4CAF50 75%,
            #388E3C 100%);
    position: relative;
    box-shadow: 
        /* Outer glow */
        0 0 40px rgba(76, 175, 80, 0.3),
        /* Depth shadows */
        0 8px 32px rgba(46, 125, 50, 0.25),
        0 4px 16px rgba(0, 0, 0, 0.15),
        /* Inner highlights */
        inset 0 2px 4px rgba(255, 255, 255, 0.4),
        inset 0 -2px 4px rgba(0, 0, 0, 0.2),
        /* Top edge highlight */
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .fred-logo-img {
        height: 60px;
        margin: 0 15px 0 0;
    }
    
    .fred-logo::after {
        width: 60px;
        right: -30px;
    }
    
    .farm-name {
        margin-left: -20px;
    }
}

@media (max-width: 480px) {
    .fred-logo-img {
        height: 50px;
        margin: 0 10px 0 0;
    }
    
    .fred-header {
        padding: 0.75rem 1rem;
    }
    
    .farm-name-banner {
        padding: 0.5rem 2rem;
    }
}