/* Button Improvements for Better UX */

/* Make "Publicar un trabajo" button more prominent and visible */
.btn-post-job {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
    text-transform: none;
    position: relative;
    overflow: hidden;
}

.btn-post-job::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;
}

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

.btn-post-job:hover {
    background: linear-gradient(135deg, #20c997, #28a745);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    color: white;
}

.btn-post-job i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

/* Differentiate "Más filtros" from "Filtrar trabajos" */

/* Advanced filters - Text link style (like most job sites) */
.filter-toggle-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #6c757d;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    padding: 0.5rem 0;
    border: none;
    background: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
}

.filter-toggle-link:hover {
    color: #0069DA;
    text-decoration: none;
    border-bottom-color: #0069DA;
}

.filter-toggle-link i {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.filter-toggle-link.active i.toggle-icon {
    transform: rotate(180deg);
}

.filter-toggle-link.active {
    color: #0069DA;
}

/* Container for the filter toggle - center it subtly */
.filter-toggle-container {
    display: flex;
    justify-content: center;
    margin: 0.5rem 0;
    padding: 0.25rem 0;
    border-top: 1px solid #f1f3f4;
}

/* Filtrar trabajos - Primary search button */
.btn-search {
    background: linear-gradient(135deg, #0069DA, #0052cc);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    box-shadow: 0 3px 12px rgba(0, 105, 218, 0.3);
    transition: all 0.2s ease;
    min-width: 160px;
}

.btn-search:hover {
    background: linear-gradient(135deg, #0052cc, #003d99);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 105, 218, 0.4);
    color: white;
}

.btn-search i {
    margin-right: 0.5rem;
}

/* Container improvements */
.hero .btn-post-job {
    margin-top: 1.5rem;
}

/* Make the post job button stand out in the hero section */
.hero {
    position: relative;
}

.hero .btn-post-job {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(40, 167, 69, 0.5);
    }
    100% {
        box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    }
}

/* Search container layout improvements */
.search-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.search-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
}

.filter-toggle-container {
    display: flex;
    align-items: center;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .btn-post-job {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
        width: 100%;
        text-align: center;
    }
    
    .search-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn-search,
    .btn-filter-toggle {
        width: 100%;
        justify-content: center;
    }
}

/* Additional visual improvements */
.btn-post-job .icon {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

/* Make buttons more accessible */
.btn-post-job:focus,
.btn-search:focus,
.btn-filter-toggle:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Navigation post job button (smaller, less prominent) */
.nav-link {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background-color: rgba(0, 105, 218, 0.1);
}