/* Products Page Specific Styles */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
    margin-top: 80px;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Filter Section */
.filter-section {
    background: white;
    padding: 30px 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 80px;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 150px;
}

.filter-group label {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.filter-select {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #ff6b35;
}

.search-group {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    min-width: 250px;
}

.search-input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #ff6b35;
}

.search-btn {
    padding: 10px 15px;
    background: #ff6b35;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-btn:hover {
    background: #f7931e;
}

/* Products Section */
.products-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Product Card */
.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    opacity: 1;
    transform: scale(1);
}

.product-card.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 107, 53, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.product-actions button {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.play-now-btn {
    background: white;
    color: #ff6b35;
}

.play-now-btn:hover {
    background: #ff6b35;
    color: white;
}

.demo-btn, .check-btn {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.demo-btn:hover, .check-btn:hover {
    background: white;
    color: #ff6b35;
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
}

.product-badge.hot {
    background: #ff4757;
    color: white;
}

.product-badge.new {
    background: #2ed573;
    color: white;
}

.product-badge.jackpot {
    background: #ffa502;
    color: white;
}

.product-badge.live {
    background: #ff3838;
    color: white;
    animation: pulse 2s infinite;
}

.product-badge.popular {
    background: #3742fa;
    color: white;
}

.product-badge.daily {
    background: #7bed9f;
    color: white;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    color: #333;
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.product-provider {
    color: #ff6b35;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.product-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.rtp, .volatility, .prize {
    font-weight: 600;
}

.rtp {
    color: #2ed573;
}

.volatility {
    color: #ffa502;
}

.prize {
    color: #ff3838;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature {
    background: #f0f0f0;
    color: #666;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Load More */
.load-more-container {
    text-align: center;
    margin-top: 40px;
}

#load-more-btn {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* No Results */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.no-results h3 {
    color: #666;
    margin-bottom: 1rem;
}

.no-results p {
    color: #999;
    margin-bottom: 2rem;
}

.no-results .btn {
    margin: 0 auto;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #ff6b35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design for Products */
@media (max-width: 768px) {
    .filter-controls {
        flex-direction: column;
        gap: 15px;
    }

    .filter-group,
    .search-group {
        min-width: auto;
        width: 100%;
    }

    .search-group {
        flex-direction: column;
        gap: 10px;
    }

    .search-input {
        width: 100%;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-actions {
        flex-direction: column;
        width: 100%;
    }

    .product-actions button {
        width: 100%;
        max-width: 200px;
    }

    .product-stats {
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 60px 0 40px;
        margin-top: 80px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .filter-section {
        padding: 20px 0;
    }

    .product-info {
        padding: 15px;
    }

    .product-info h3 {
        font-size: 1.1rem;
    }
}

/* Grid Animation */
.products-grid {
    animation: fadeInUp 0.6s ease-out;
}

.product-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }
.product-card:nth-child(7) { animation-delay: 0.7s; }
.product-card:nth-child(8) { animation-delay: 0.8s; }
.product-card:nth-child(9) { animation-delay: 0.9s; }
.product-card:nth-child(10) { animation-delay: 1.0s; }

/* Filter Animation */
.filter-section {
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Product Card Hover Effects */
.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(247, 147, 30, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.product-card:hover::before {
    opacity: 1;
}

.product-info {
    position: relative;
    z-index: 2;
}

/* Search Highlight */
.search-highlight {
    background: #fff3cd;
    padding: 2px 4px;
    border-radius: 3px;
}
