/**
 * e42CatCreator Filter Style
 * Version: 1.1
 */

.e42-filter-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
}

/* Filter Widget */
.e42-filter-widget {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .e42-filter-widget {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .e42-filter-widget {
        grid-template-columns: repeat(4, 1fr);
        padding: 1rem;
    }
}

.e42-filter-group {
    display: flex;
    flex-direction: column;
}

.e42-filter-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 0.5rem;
}

.e42-filter-group select {
    width: 100%;
    border: 1px solid #cbd5e0;
    border-radius: 0.5rem;
    background-color: #fff;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
}

.e42-filter-group select:focus {
    outline: none;
    border-color: #FC0059;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.e42-filter-group select:disabled {
    background-color: #f7fafc;
    cursor: not-allowed;
}

.e42-clear-button {
    width: 100%;
    height: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 0.5rem;
    background-color: #4A4A4A;
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
    align-self: flex-end;
}

.e42-clear-button:hover {
    background-color: #F0E6C5;
    color: #4A4A4A;
}

/* Results Area */
.e42-loading, .e42-no-results {
    text-align: center;
    padding: 4rem 1rem;
    color: #6b7280;
}
.e42-no-results h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #F0E6C5;
}
.e42-spinner {
    animation: rotate 2s linear infinite;
    width: 2.5rem;
    height: 2.5rem;
    margin: 0 auto 1rem;
}
.e42-spinner .path {
    stroke: #FC0059;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}
@keyframes rotate { 100% { transform: rotate(360deg); } }
@keyframes dash { 0% { stroke-dasharray: 1, 150; stroke-dashoffset: 0; } 50% { stroke-dasharray: 90, 150; stroke-dashoffset: -35; } 100% { stroke-dasharray: 90, 150; stroke-dashoffset: -124; } }

/* Results Grid */
.e42-results-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
}
@media (min-width: 768px) {
    .e42-results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .e42-results-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Card Styling */
.e42-card {
    background-color: #fff;
    border-radius: 0.75rem; /* 12px */
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.e42-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}
.e42-card-image-link {
    display: block;
}
.e42-card-image {
    width: 100%;
    height: 13rem; /* 208px */
    object-fit: cover;
}
.e42-card-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.e42-card-category {
    display: inline-block;
    background-color: #e5e7eb;
    color: #4b5563;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    margin-bottom: 0.75rem;
    align-self: flex-start;
}
.e42-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
    flex-grow: 1;
}
.e42-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}
.e42-card-title a:hover {
    color: #FC0059;
}
.e42-card-location {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: #6b7280;
}
.e42-card-location svg {
    width: 0.875rem;
    height: 0.875rem;
    margin-right: 0.5rem;
    stroke: #9ca3af;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Vue Transition */
.list-enter-active, .list-leave-active { transition: all 0.5s ease; }
.list-enter-from, .list-leave-to { opacity: 0; transform: translateY(20px); }
