/* Modern Söksida - Professionell Design */

.search-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero-sektion för sökning */
.search-hero {
    text-align: center;
    padding: 40px 20px 30px;
    margin-top: 80px;
}

.search-hero h1 {
    font-size: 2.5rem;
    color: #1a4d3e;
    margin-bottom: 10px;
    font-weight: 700;
}

.search-hero p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
}

/* Sökbox */
.search-main {
    background: linear-gradient(135deg, #f8fffe 0%, #e8f5f1 100%);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.search-input-wrapper {
    position: relative;
    margin-bottom: 25px;
}

.search-input-wrapper input {
    width: 100%;
    padding: 18px 55px 18px 20px;
    font-size: 1.1rem;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    transition: all 0.3s ease;
    background: white;
}

.search-input-wrapper input:focus {
    outline: none;
    border-color: #4a9d7f;
    box-shadow: 0 0 0 4px rgba(74, 157, 127, 0.1);
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #4a9d7f;
    font-size: 1.3rem;
    pointer-events: none;
}

/* Filter-sektion */
.filters-section {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

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

.filter-group select {
    padding: 12px 40px 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a9d7f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
}

.filter-group select:hover {
    border-color: #4a9d7f;
}

.filter-group select:focus {
    outline: none;
    border-color: #4a9d7f;
    box-shadow: 0 0 0 3px rgba(74, 157, 127, 0.1);
}

/* Checkbox-filter */
.checkbox-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 28px;
}

.checkbox-filter:hover {
    border-color: #4a9d7f;
    background: #f8fffe;
}

.checkbox-filter input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #4a9d7f;
}

.checkbox-filter label {
    margin: 0;
    cursor: pointer;
    font-weight: 500;
    color: #2c3e50;
}

/* Resultaträknare */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 10px;
}

.results-count {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

.results-count strong {
    color: #4a9d7f;
    font-size: 1.2rem;
}

/* Resultat-cards */
.results-grid {
    display: grid;
    gap: 15px;
}

.plant-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
    position: relative;
}

.plant-card:hover {
    border-color: #4a9d7f;
    box-shadow: 0 8px 20px rgba(74, 157, 127, 0.15);
    transform: translateY(-2px);
}

.plant-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a4d3e;
    margin-bottom: 12px;
    transition: color 0.3s ease;
    pointer-events: none;
}

.plant-card:hover .plant-card-title {
    color: #4a9d7f;
}

.plant-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.9rem;
    pointer-events: none;
}

.meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #f0f9f6 0%, #e1f3ed 100%);
    border-radius: 20px;
    color: #2c5f4f;
    font-weight: 500;
}

.meta-tag.edible {
    background: linear-gradient(135deg, #d4f4e7 0%, #b8e8d4 100%);
    color: #1a4d3e;
}

.meta-tag.not-edible {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    color: #666;
}

/* Ingen resultat */
.no-results {
    text-align: center;
    padding: 60px 20px;
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.3;
}

.no-results h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.no-results p {
    color: #666;
    font-size: 1.1rem;
}

/* Loading animation */
.loading {
    text-align: center;
    padding: 40px;
    color: #4a9d7f;
}

/* Responsiv design */
@media (max-width: 768px) {
    .search-hero {
        padding: 30px 20px 20px;
        margin-top: 70px;
    }
    
    .search-hero h1 {
        font-size: 2rem;
    }
    
    .search-main {
        padding: 20px;
    }
    
    .filters-section {
        grid-template-columns: 1fr;
    }
    
    .checkbox-filter {
        margin-top: 0;
    }
    
    .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .filters-section {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

/* Ikoner för filter-labels */
.filter-icon {
    font-size: 1.1rem;
}
