/**
 * WebCasinos SEO Slots - Hauptstylesheet
 * Datei: /wp-content/plugins/webcasinos-seo-slots/assets/style.css
 */

/* Container */
.wcss-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Filter Bar */
.wcss-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 10px;
}

.wcss-search {
    flex: 1;
    max-width: 500px;
}

.wcss-search-input {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    transition: all 0.3s ease;
}

.wcss-search-input:focus {
    outline: none;
    border-color: #212529;
    box-shadow: 0 0 0 3px rgba(33, 37, 41, 0.1);
}

.wcss-filter-buttons {
    display: flex;
    gap: 10px;
}

.wcss-filter-btn {
    padding: 10px 25px;
    border: 2px solid #212529;
    background: white;
    color: #212529;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wcss-filter-btn:hover {
    background: #212529;
    color: white;
}

.wcss-filter-btn.active {
    background: #212529;
    color: white;
}

/* Grid System */
.wcss-grid {
    display: grid;
    gap: 25px;
    margin-bottom: 40px;
}

.wcss-cols-2 { grid-template-columns: repeat(2, 1fr); }
.wcss-cols-3 { grid-template-columns: repeat(3, 1fr); }
.wcss-cols-4 { grid-template-columns: repeat(4, 1fr); }
.wcss-cols-5 { grid-template-columns: repeat(5, 1fr); }
.wcss-cols-6 { grid-template-columns: repeat(6, 1fr); }

/* Slot Card */
.wcss-slot-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
}

.wcss-slot-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.wcss-slot-image {
    position: relative;
    padding-bottom: 66.67%; /* 3:2 Aspect Ratio */
    overflow: hidden;
    background: #f8f9fa;
}

.wcss-slot-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.wcss-slot-card:hover .wcss-slot-image img {
    transform: scale(1.1);
}

.wcss-slot-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wcss-slot-card:hover .wcss-slot-overlay {
    opacity: 1;
}

.wcss-play-btn {
    background: #212529;
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.wcss-slot-card:hover .wcss-play-btn {
    transform: scale(1);
}

.wcss-slot-info {
    padding: 20px;
}

.wcss-slot-title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.wcss-slot-title a {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.3s ease;
}

.wcss-slot-title a:hover {
    color: #000;
    text-decoration: underline;
}

.wcss-slot-provider {
    font-size: 14px;
    color: #6c757d;
}

.wcss-slot-provider a {
    color: #495057;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.wcss-slot-provider a:hover {
    color: #000;
    text-decoration: underline;
}

/* Provider Grid */
.wcss-providers-grid {
    display: grid;
    gap: 20px;
    margin: 40px 0;
}

.wcss-provider-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

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

.wcss-provider-card a {
    text-decoration: none;
    color: inherit;
}

.wcss-provider-logo {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.wcss-provider-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.wcss-provider-info h4 {
    margin: 0 0 5px;
    font-size: 16px;
    color: #2d3748;
}

.wcss-provider-count {
    display: inline-block;
    background: #212529;
    color: white;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

/* Pagination */
.wcss-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 40px 0;
}

.wcss-pagination a,
.wcss-pagination span {
    display: inline-block;
    padding: 10px 18px;
    background: white;
    color: #212529;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.wcss-pagination a:hover {
    background: #212529;
    color: white;
    border-color: #212529;
}

.wcss-pagination .current {
    background: #212529;
    color: white;
    border-color: #212529;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .wcss-cols-6 { grid-template-columns: repeat(4, 1fr); }
    .wcss-cols-5 { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 992px) {
    .wcss-cols-6,
    .wcss-cols-5,
    .wcss-cols-4 { grid-template-columns: repeat(3, 1fr); }
    
    .wcss-filter-bar {
        flex-direction: column;
        gap: 20px;
    }
    
    .wcss-search {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .wcss-cols-6,
    .wcss-cols-5,
    .wcss-cols-4,
    .wcss-cols-3 { grid-template-columns: repeat(2, 1fr); }
    
    .wcss-filter-buttons {
        width: 100%;
        justify-content: space-between;
    }
    
    .wcss-filter-btn {
        flex: 1;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .wcss-cols-6,
    .wcss-cols-5,
    .wcss-cols-4,
    .wcss-cols-3,
    .wcss-cols-2 { grid-template-columns: 1fr; }
    
    .wcss-filter-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .wcss-filter-btn {
        width: 100%;
    }
}

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

.wcss-loading:after {
    content: '';
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #212529;
    border-radius: 50%;
    animation: wcss-spin 1s linear infinite;
}

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

/* No Results */
.wcss-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #718096;
    font-size: 18px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Accessibility */
.wcss-slot-card:focus-within {
    outline: 3px solid #212529;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .wcss-filter-bar,
    .wcss-pagination {
        display: none;
    }
    
    .wcss-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* --- Live-Suche Ergänzungen --- */
.wcss-slot-card[hidden] { display: none !important; }

/* Treffer-Highlight */
mark.wcss-hi {
    background: #ffea8a;
    padding: 0 0.15em;
    border-radius: 3px;
}

/* Loading Overlay */
.wcss-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.65);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.wcss-loading-overlay .wcss-spinner {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid #ced4da;
    border-top-color: #212529;
    animation: wcss-spin 0.8s linear infinite;
}

@keyframes wcss-spin {
    to { transform: rotate(360deg); }
}
