/**
 * MELHORIAS VISUAIS DO HEADER
 * Moderniza o botão "Cadastre seu imóvel" com o mesmo estilo dos filtros
 */

/* ===================================
   BOTÃO "CADASTRE SEU IMÓVEL" MODERNO
   =================================== */

.add__listing--btn {
    background: linear-gradient(135deg, var(--color-hover) 0%, #e67e22 100%);
    border: none;
    border-radius: 12px;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 11px;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(245, 169, 83, 0.3);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.add__listing--btn:hover {
    background: linear-gradient(135deg, #e67e22 0%, var(--color-hover) 100%);
    border-color: #e67e22;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 169, 83, 0.4);
    text-decoration: none;
}

.add__listing--btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(245, 169, 83, 0.3);
}

.add__listing--btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(245, 169, 83, 0.3), 0 4px 16px rgba(245, 169, 83, 0.3);
}

/* Efeito de brilho no hover */
.add__listing--btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.add__listing--btn:hover::before {
    left: 100%;
}

/* Ícone do botão */
.add__listing--btn svg {
    width: 18px;
    height: 18px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.add__listing--btn:hover svg {
    transform: scale(1.1) rotate(90deg);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

/* Texto do botão */
.add__listing--btn span {
    font-weight: 600;
    position: relative;
    z-index: 1;
}

/* Efeito de pulso para chamar atenção */
@keyframes pulse {
    0% {
        box-shadow: 0 4px 16px rgba(245, 169, 83, 0.3);
    }
    50% {
        box-shadow: 0 4px 16px rgba(245, 169, 83, 0.6);
    }
    100% {
        box-shadow: 0 4px 16px rgba(245, 169, 83, 0.3);
    }
}

.add__listing--btn {
    animation: pulse 2s infinite;
}

.add__listing--btn:hover {
    animation: none;
}

/* ===================================
   CORREÇÕES PARA MOBILE
   =================================== */

/* Esconder o botão "Cadastre seu imóvel" no header em mobile */
@media (max-width: 768px) {
    .main__header--right .add__listing--btn {
        display: none !important;
    }
    
    /* Mostrar apenas o botão de login no mobile */
    .main__header--right {
        justify-content: flex-end;
    }
}

/* Versão mobile do botão - MENU OFFCANVAS */
.offcanvas__listing--btn {
    background: linear-gradient(135deg, var(--color-hover) 0%, #e67e22 100%);
    border: 2px solid var(--color-hover);
    border-radius: 8px;
    padding: 8px 12px;
    font-weight: 600;
    font-size: 11px;
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(245, 169, 83, 0.3);
    margin: 4px 8px;
    width: calc(100% - 16px);
    max-width: 250px;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.1px;
    box-sizing: border-box;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.offcanvas__listing--btn:hover {
    background: linear-gradient(135deg, #e67e22 0%, var(--color-hover) 100%);
    border-color: #e67e22;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(245, 169, 83, 0.4);
    text-decoration: none;
}

.offcanvas__listing--btn svg {
    width: 12px;
    height: 12px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.offcanvas__listing--btn:hover svg {
    transform: scale(1.1);
}

.offcanvas__listing--btn span {
    font-size: 10px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

/* Melhorias para o menu offcanvas */
.offcanvas__menu {
    padding: 15px 0;
    width: 100%;
    box-sizing: border-box;
}

.offcanvas__menu_ul {
    margin-bottom: 15px;
    width: 100%;
}

/* Container para os botões do menu mobile */
.offcanvas__menu .offcanvas__listing--btn {
    margin: 4px 8px;
    width: calc(100% - 16px);
    max-width: none;
    box-sizing: border-box;
}

/* Container do offcanvas */
.offcanvas__inner {
    padding: 0 10px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Responsividade específica para mobile */
@media (max-width: 480px) {
    .offcanvas__listing--btn {
        padding: 6px 8px;
        font-size: 10px;
        gap: 3px;
        margin: 3px 6px;
        width: calc(100% - 12px);
        border-radius: 6px;
        letter-spacing: 0;
    }
    
    .offcanvas__listing--btn svg {
        width: 10px;
        height: 10px;
    }
    
    .offcanvas__listing--btn span {
        font-size: 9px;
    }
    
    .offcanvas__inner {
        padding: 0 8px;
    }
    
    .offcanvas__menu .offcanvas__listing--btn {
        margin: 3px 6px;
        width: calc(100% - 12px);
    }
}

@media (max-width: 360px) {
    .offcanvas__listing--btn {
        padding: 5px 6px;
        font-size: 9px;
        gap: 2px;
        margin: 2px 4px;
        width: calc(100% - 8px);
        border-radius: 4px;
    }
    
    .offcanvas__listing--btn svg {
        width: 8px;
        height: 8px;
    }
    
    .offcanvas__listing--btn span {
        font-size: 8px;
    }
    
    .offcanvas__inner {
        padding: 0 6px;
    }
    
    .offcanvas__menu .offcanvas__listing--btn {
        margin: 2px 4px;
        width: calc(100% - 8px);
    }
}

/* Efeito de sucesso */
.add__listing--btn.success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-color: #28a745;
    animation: successPulse 0.5s ease;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Melhorias para o header em geral */
.main__header--right {
    gap: 15px;
}

/* Efeito de destaque para o botão principal */
.add__listing--btn {
    position: relative;
    z-index: 10;
}

/* Efeito de sombra mais pronunciada no hover */
.add__listing--btn:hover {
    box-shadow: 0 8px 25px rgba(245, 169, 83, 0.4), 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Efeito de borda brilhante */
.add__listing--btn::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--color-hover), #e67e22, var(--color-hover));
    border-radius: 18px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.add__listing--btn:hover::after {
    opacity: 1;
}

/* Efeito de texto com gradiente */
.add__listing--btn span {
    background: linear-gradient(45deg, #ffffff, #f8f9fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.add__listing--btn:hover span {
    background: linear-gradient(45deg, #ffffff, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
} 