/* Spiele Fanpage Haupt-Styles */
.spiele-datenbank {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header und Suche */
.datenbank-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    color: white;
}

.search-container {
    max-width: 600px;
    margin: 0 auto 20px;
}

.search-box {
    display: flex;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.search-input {
    flex: 1;
    border: none;
    padding: 15px 25px;
    font-size: 16px;
    outline: none;
}

.search-button {
    background: #4CAF50;
    border: none;
    color: white;
    padding: 0 30px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-button:hover {
    background: #45a049;
}

.search-button .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

/* Filter Tabs */
.filter-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-tab {
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.filter-tab:hover {
    background: rgba(255,255,255,0.3);
}

.filter-tab.active {
    background: white;
    color: #764ba2;
    border-color: white;
}

.view-toggle {
    display: flex;
    gap: 5px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 5px;
}

.view-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    padding: 8px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s;
}

.view-btn:hover,
.view-btn.active {
    background: white;
    color: #764ba2;
}

.view-btn .dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
}

/* Ergebnisse Container */
.results-container {
    transition: all 0.3s;
}

/* Grid View */
.grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* List View */
.list-view .entry-card {
    display: flex;
    margin-bottom: 20px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.list-view .entry-image {
    width: 200px;
    flex-shrink: 0;
}

.list-view .entry-content {
    flex: 1;
    padding: 20px;
}

/* Table View */
.table-view {
    display: table;
    width: 100%;
    border-collapse: collapse;
}

.table-view .entry-card {
    display: table-row;
    border-bottom: 1px solid #eee;
}

.table-view .entry-card > * {
    display: table-cell;
    padding: 15px;
    vertical-align: middle;
}

/* Entry Cards */
.entry-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.entry-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.entry-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.entry-image {
    height: 200px;
    overflow: hidden;
}

.entry-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.no-image {
    height: 100%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.no-image .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
}

.entry-content {
    padding: 20px;
}

.entry-title {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.2em;
}

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.9em;
    color: #666;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-item .dashicons {
    color: #764ba2;
}

.entry-excerpt {
    color: #777;
    line-height: 1.6;
    font-size: 0.95em;
}

.entry-type-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(118, 75, 162, 0.9);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 500;
    text-transform: uppercase;
}

.entry-item .entry-type-badge { background: rgba(76, 175, 80, 0.9); }
.entry-fisch .entry-type-badge { background: rgba(33, 150, 243, 0.9); }
.entry-gewaesser .entry-type-badge { background: rgba(255, 152, 0, 0.9); }

/* Detail Page */
.spiele-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.detail-header {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    margin-bottom: 40px;
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

.detail-image {
    border-radius: 10px;
    overflow: hidden;
}

.detail-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.detail-info h1 {
    margin-top: 0;
    color: #333;
    font-size: 2.5em;
}

.detail-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.meta-item {
    font-size: 1.1em;
}

.meta-item strong {
    color: #764ba2;
    margin-right: 5px;
}

.rarity.legendär { color: #ff9800; font-weight: bold; }
.rarity.episch { color: #9c27b0; font-weight: bold; }
.rarity.selten { color: #2196f3; font-weight: bold; }
.rarity.ungewöhnlich { color: #4caf50; }
.rarity.gewöhnlich { color: #666; }

.gewaesser-liste,
.fische-liste {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.gewaesser-liste h3,
.fische-liste h3 {
    margin-top: 0;
    color: #333;
}

.gewaesser-grid,
.fische-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.gewaesser-link,
.fisch-link {
    background: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    color: #764ba2;
    border: 2px solid #764ba2;
    transition: all 0.3s;
}

.gewaesser-link:hover,
.fisch-link:hover {
    background: #764ba2;
    color: white;
}

.detail-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

.detail-content h2 {
    color: #333;
    border-bottom: 3px solid #764ba2;
    padding-bottom: 10px;
    margin-top: 0;
}

.content-text {
    line-height: 1.8;
    font-size: 1.1em;
    color: #555;
}

.detail-regions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.region-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.region-tag {
    background: #e3f2fd;
    color: #1976d2;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
}

/* Mini Suche */
.spiele-mini-suche {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.spiele-mini-suche.compact {
    padding: 10px;
}

.search-wrapper {
    display: flex;
    gap: 10px;
}

.search-form .search-input {
    flex: 1;
    border: 2px solid #eee;
    border-radius: 25px;
    padding: 12px 20px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.search-form .search-input:focus {
    border-color: #764ba2;
    outline: none;
}

.search-submit {
    background: #764ba2;
    color: white;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-submit:hover {
    background: #667eea;
}

.search-hints {
    margin-top: 10px;
    color: #666;
    font-size: 0.9em;
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 40px;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #764ba2;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

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

/* Responsive */
@media (max-width: 768px) {
    .detail-header {
        grid-template-columns: 1fr;
    }
    
    .filter-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .grid-view {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .list-view .entry-image {
        width: 150px;
    }
}

@media (max-width: 480px) {
    .list-view .entry-card {
        flex-direction: column;
    }
    
    .list-view .entry-image {
        width: 100%;
        height: 200px;
    }
}