/* Frontend Styles for Feiracasa BI */

/* --- Filtro de Inteligência --- */
.feiracasa-bi-filtro-container {
    background: linear-gradient(135deg, #ff9900 0%, #ff5500 100%);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.feiracasa-bi-filtro-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.fc-filtro-search {
    flex: 1;
    min-width: 250px;
    display: flex;
}

.fc-filtro-search input {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
    outline: none;
}

.fc-filtro-search .fc-btn-search {
    background: #34A853;
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fc-filtro-search .fc-btn-search:hover {
    background: #2a8a43;
}

.fc-filtro-selects {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 2;
}

.fc-filtro-selects select {
    flex: 1;
    min-width: 130px;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    background-color: white;
    cursor: pointer;
}

/* --- Catálogo de Feiras --- */
.feiracasa-bi-catalogo-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.fc-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.fc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.fc-card-image {
    height: 180px;
    background-size: cover;
    background-position: center;
}

.fc-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.fc-card-badges {
    display: flex;
    gap: 10px;
    margin-top: -35px; /* Overlaps the image slightly */
    margin-bottom: 15px;
}

.fc-badge {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    color: white;
}

.fc-badge-orange { background: #ff7b00; }
.fc-badge-green { background: #88c025; }

.fc-card-title {
    font-size: 18px;
    margin: 0 0 15px 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fc-card-info p {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fc-btn-conhecer {
    display: block;
    text-align: center;
    background: #50a834;
    color: white;
    padding: 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    margin-top: auto;
    transition: background 0.3s;
}

.fc-btn-conhecer:hover {
    background: #418c29;
    color: white;
}

.fc-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    font-size: 16px;
    color: #777;
    background: #f9f9f9;
    border-radius: 8px;
}

/* --- Feirantes (Dokan Vendors) --- */
.fc-feirantes-container {
    margin-top: 40px;
}

.fc-feirantes-header {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.fc-feirantes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.fc-vendor-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    text-align: center;
}

.fc-vendor-banner {
    height: 100px;
    background-size: cover;
    background-position: center;
}

.fc-vendor-avatar {
    margin-top: -40px;
}

.fc-vendor-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.fc-vendor-info {
    padding: 15px;
}

.fc-vendor-info h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #333;
}

.fc-vendor-address, .fc-vendor-phone {
    font-size: 13px;
    color: #777;
    margin: 0 0 5px 0;
}

.fc-vendor-actions {
    padding: 15px;
    background: #fcfcfc;
    border-top: 1px solid #eee;
}

.fc-btn-store {
    display: inline-block;
    background: #8b5cf6;
    color: white;
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    transition: background 0.3s;
}

.fc-btn-store:hover {
    background: #7c3aed;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .fc-filtro-search {
        min-width: 100%;
    }
    .fc-filtro-selects select {
        flex: 1 1 45%;
    }
}
