/**
 * Tollhaus Event-Suche Widget Styles
 */

.tollhaus-search-widget {
    font-family: inherit;
    width: 100%;
}

/* Suchformular */
.tollhaus-search-form {
    margin-bottom: 1.5rem;
}

.tollhaus-search-input-wrapper {
    display: flex;
    gap: 0.5rem;
    max-width: 500px;
}

.tollhaus-search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s ease;
}

.tollhaus-search-input:focus {
    border-color: #e30613;
}

.tollhaus-search-input::placeholder {
    color: #999;
}

.tollhaus-search-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    background: #e30613;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.tollhaus-search-button:hover {
    background: #c00510;
}

/* Status */
.tollhaus-search-status {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.tollhaus-search-status.has-results {
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.tollhaus-search-count strong,
.tollhaus-search-no-results strong {
    color: #333;
}

.tollhaus-search-loading {
    color: #e30613;
}

/* Ergebnis-Grid */
.tollhaus-search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Event-Karte */
.tollhaus-search-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tollhaus-search-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.tollhaus-search-card.sold-out {
    opacity: 0.7;
}

.tollhaus-search-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Bild */
.tollhaus-search-card-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #f0f0f0;
}

.tollhaus-search-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tollhaus-search-card:hover .tollhaus-search-card-image img {
    transform: scale(1.05);
}

.tollhaus-search-card-category {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
}

/* Inhalt */
.tollhaus-search-card-content {
    padding: 1rem;
}

.tollhaus-search-card-date {
    font-size: 0.8rem;
    color: #e30613;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.tollhaus-search-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    color: #222;
}

.tollhaus-search-card-subtitle {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
}

/* Highlighting */
.tollhaus-search-card-title mark,
.tollhaus-search-card-subtitle mark {
    background: #fff3cd;
    color: inherit;
    padding: 0 2px;
    border-radius: 2px;
}

/* Footer */
.tollhaus-search-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid #eee;
}

.tollhaus-search-card-price {
    font-weight: 600;
    color: #333;
}

.tollhaus-search-card-status {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.tollhaus-search-card-status.available {
    background: #d4edda;
    color: #155724;
}

.tollhaus-search-card-status.sold-out {
    background: #f8d7da;
    color: #721c24;
}

/* Responsive */
@media (max-width: 600px) {
    .tollhaus-search-grid {
        grid-template-columns: 1fr;
    }
    
    .tollhaus-search-input-wrapper {
        max-width: 100%;
    }
}
