/**
 * Venues List - Professional styling for venue providers
 * Color scheme: Purple/Violet for venues
 */

/* Header della pagina locali - colori viola/purple */
.services-header {
    background: linear-gradient(135deg, #6a1b9a 0%, #8e24aa 100%);
    color: white;
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.services-header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.services-header-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.services-header-content p {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* Container principale */
.services-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    align-items: start;
}

/* Grid per locali */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

/* Card del locale - layout più professionale */
.service-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
    position: relative;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    border-color: rgba(142, 36, 170, 0.2);
}

/* Immagine del locale */
.service-image-container {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image {
    transform: scale(1.05);
}

/* Badge categoria locale */
.service-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(142, 36, 170, 0.95);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

/* Informazioni locale */
.service-info {
    padding: 20px;
}

.service-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-owner {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 12px;
    font-weight: 500;
}

.service-details {
    margin-bottom: 20px;
}

.service-detail {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: #5a6c7d;
}

.service-detail i {
    width: 16px;
    margin-right: 8px;
    color: #8e24aa;
    flex-shrink: 0;
}

.service-description {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #ecf0f1;
}

.service-description p {
    font-size: 0.85rem;
    color: #5a6c7d;
    line-height: 1.4;
    margin: 0;
}

/* Azioni locale */
.service-actions {
    padding: 0 20px 20px;
    display: flex;
    gap: 10px;
}

.service-actions .btn-action {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    background: #fff;
    color: #5a6c7d;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-actions .btn-favorite {
    background: var(--gray-100);
    color: var(--gray-700);
}

.service-actions .btn-favorite.active {
    background: var(--pink-primary);
    color: white;
}

.service-actions .btn-favorite:hover {
    background: var(--pink-primary);
    color: white;
}

.service-actions .btn-message:hover {
    border-color: #8e24aa;
    color: #8e24aa;
    background: rgba(142, 36, 170, 0.05);
}

.service-actions .btn-action i {
    font-size: 0.9rem;
}

/* Link al profilo locale */
.service-link {
    text-decoration: none;
    color: inherit;
}

/* Sidebar filtri - stile più pulito per locali */
.filter-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 25px;
    position: sticky;
    top: 20px;
    border: 1px solid rgba(0,0,0,0.06);
}

.filter-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #ecf0f1;
}

.filter-header i {
    color: #8e24aa;
    font-size: 1.1rem;
}

.filter-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

/* Stili per i form di ricerca */
.filter-group {
    margin-bottom: 20px;
}

.filter-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.filter-group label i {
    color: #8e24aa;
    width: 16px;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: #fff;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #8e24aa;
    box-shadow: 0 0 0 3px rgba(142, 36, 170, 0.1);
}

/* Bottoni ricerca */
.btn-search,
.btn-reset {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
}

.btn-search {
    background: #8e24aa;
    color: white;
}

.btn-search:hover {
    background: #7b1fa2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(142, 36, 170, 0.4);
}

.btn-reset {
    background: #95a5a6;
    color: white;
}

.btn-reset:hover {
    background: #7f8c8d;
}

/* Sezioni in evidenza */
.featured-section {
    margin-bottom: 50px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ecf0f1;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title i {
    color: #8e24aa;
    font-size: 1.2rem;
}

.section-title h2 {
    font-weight: 700;
    color: #2c3e50;
}

.view-all {
    color: #8e24aa;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.view-all:hover {
    color: #7b1fa2;
}

/* Risultati ricerca */
.results-section {
    display: none;
}

.results-section.active {
    display: block;
}

.results-count {
    background: rgba(142, 36, 170, 0.1);
    color: #8e24aa;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Stati di caricamento e errore */
.loading,
.error-message,
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #ecf0f1;
    border-top: 3px solid #8e24aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-message i,
.no-results i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #bdc3c7;
}

.no-results h3 {
    margin-bottom: 10px;
    color: #5a6c7d;
}

/* Paginazione */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ecf0f1;
}

.pagination button {
    padding: 8px 16px;
    border: 2px solid #8e24aa;
    background: white;
    color: #8e24aa;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.pagination button:hover {
    background: #8e24aa;
    color: white;
}

.pagination span {
    font-size: 0.9rem;
    color: #5a6c7d;
    font-weight: 500;
}

/* Login prompt */
.login-prompt {
    margin-top: 25px;
    padding: 20px;
    background: rgba(142, 36, 170, 0.05);
    border-radius: 8px;
    border-left: 4px solid #8e24aa;
}

.login-prompt p {
    margin: 0;
    font-size: 0.85rem;
    color: #5a6c7d;
    line-height: 1.4;
}

.login-prompt a {
    color: #8e24aa;
    text-decoration: none;
    font-weight: 600;
}

.login-prompt a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .services-container {
        grid-template-columns: 1fr 300px;
        gap: 30px;
    }
}

@media (max-width: 968px) {
    .services-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .filter-box {
        position: static;
        order: -1;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 640px) {
    .services-header {
        padding: 1rem 0;
    }

    .services-header-content {
        padding: 0 15px;
    }

    .services-header-content h1 {
        font-size: 2rem;
    }

    .services-container {
        padding: 0 15px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .service-card {
        margin-bottom: 0;
    }

    .filter-box {
        padding: 20px;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    .service-actions {
        flex-direction: column;
    }

    .service-actions .btn-action {
        width: 100%;
    }
}
