/* All Products Page Styles */

/* Reset and base styles */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    margin: 0;
    line-height: 1.6;
}

/* Content Container */
.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Language Selector */
.language-selector {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 20px;
    color: white;
}

.language-selector label {
    font-weight: 500;
}

.language-selector select {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.9rem;
}

.language-selector select option {
    background: #2c3e50;
    color: white;
}

/* Header Section */
.header-section {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

/* Search and Filter Section */
.search-section {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.search-container {
    position: relative;
    margin-bottom: 20px;
}

.search-input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-input:focus {
    outline: none;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: #666;
}

.filter-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: rgba(255, 255, 255, 0.9);
    color: #2c3e50;
    border-color: rgba(255, 255, 255, 0.5);
}

/* Products Section */
.products-section {
    margin-bottom: 40px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.product-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border-color: #667eea;
}

.product-link {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 20px;
    height: 100%;
    transition: all 0.3s ease;
}

.product-link:hover {
    text-decoration: none;
    color: inherit;
}

.product-header {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: #2c3e50;
    line-height: 1.4;
    text-align: center;
    flex: 1;
    transition: color 0.3s ease;
}

.product-card:hover .product-name {
    color: #2c3e50;
    font-weight: 700;
}

/* Products Count */
.products-count {
    text-align: center;
    color: white;
    font-weight: 500;
    opacity: 0.9;
}

/* Error and Empty States */
.error-container,
.no-products {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    color: white;
    backdrop-filter: blur(10px);
}

.error-icon,
.no-products-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
}

.error-container h3,
.no-products h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.error-container p,
.no-products p {
    opacity: 0.9;
    margin: 0;
}

/* Help Section */
.help-section {
    margin-top: 40px;
}

.help-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.help-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.help-icon {
    font-size: 2rem;
}

.help-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.help-content p {
    margin-bottom: 20px;
    opacity: 0.9;
    line-height: 1.6;
}

.help-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.help-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.help-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.help-link-icon {
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-container {
        padding: 15px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .search-section {
        padding: 20px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .filter-container {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .help-actions {
        flex-direction: column;
    }
    
    .help-link {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .search-section {
        padding: 15px;
    }
    
    .product-card {
        padding: 15px;
    }
    
    .help-card {
        padding: 20px;
    }
    
    .language-selector {
        justify-content: center;
    }
}

/* Animation for smooth loading */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeInUp 0.5s ease forwards;
}

.product-card:nth-child(odd) {
    animation-delay: 0.1s;
}

.product-card:nth-child(even) {
    animation-delay: 0.2s;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .product-card {
        background: rgba(255, 255, 255, 0.1);
        color: white;
    }
    
    .product-name {
        color: white;
    }
    
    .app-id {
        background: rgba(25, 118, 210, 0.3);
        color: #90caf9;
    }
}

/* Print styles */
@media print {
    body {
        background: white;
    }
    
    .search-section,
    .help-section {
        display: none;
    }
    
    .product-card {
        break-inside: avoid;
        background: white;
        border: 1px solid #ddd;
    }
}

/* Special SteamUnlock Card Styling */
.steamunlock-card {
    background: #ff9500 !important;
}

.steamunlock-card .product-name {
    color: white !important;
}
