/* Modern Lots Page Styles - Dark Gaming Theme */
.lots-page {
    --primary: #3cc30e;
    --primary-light: #00FF1E;
    --primary-dark: #209C29;
    --background: #000000;
    --surface: #0d0d0d;
    --border: #2a2a2a;
    --text: #FFFFFF;
    --text-muted: #999;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --radius: 10px;
}

/* Main Content */
.lots-main {
    background: #000000;
}

.lots-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 1rem 2rem 1.5rem 2rem;
}

/* Games Search Bar */
.games-search-container {
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.games-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.games-search-icon {
    position: absolute;
    left: 18px;
    color: #3cc30e;
    font-size: 16px;
    pointer-events: none;
    opacity: 0.8;
}

.games-search-input {
    width: 100%;
    height: 44px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0 20px 0 50px;
    color: #FFFFFF;
    font-size: 16px !important;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
    touch-action: manipulation;
}

.games-search-input:focus {
    outline: none;
    border-color: rgba(60, 195, 14, 0.4);
    background: #161616;
    box-shadow: 0 0 0 3px rgba(60, 195, 14, 0.08);
}

.games-search-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

/* Games Section */
.games-section {
    margin-bottom: 3rem;
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1400px) {
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .games-grid {
        grid-template-columns: 1fr;
    }
}

.game-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    animation: fadeInUp 0.5s ease both;
}

.game-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(60, 195, 14, 0.06) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: var(--radius);
}

.game-card:hover {
    border-color: rgba(60, 195, 14, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 20px rgba(60, 195, 14, 0.08);
}

.game-card:hover::before {
    opacity: 1;
}

.game-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 100%;
    padding: 1rem;
}

.game-card-image {
    position: relative;
    width: 56px;
    height: 56px;
    overflow: hidden;
    flex-shrink: 0;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.image-container {
    width: 100%;
    height: 100%;
    position: relative;
    background: var(--surface);
    border-radius: 6px;
    overflow: hidden;
}

.image-container.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: loading-shimmer 1.5s infinite;
    z-index: 1;
}

@keyframes loading-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.game-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
    opacity: 0;
    border-radius: 6px;
}

.image-container.loaded .game-image {
    opacity: 1;
}

.game-image.fallback-image {
    object-fit: contain;
    background: var(--surface);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 6px;
}

.game-card:hover .image-overlay {
    opacity: 1;
}

.image-overlay i {
    font-size: 1rem;
    color: white;
}

.game-card-content {
    flex: 1;
    min-width: 0;
}

.game-title {
    font-family: 'Chakra Petch', 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.game-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.offers-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #999;
    font-size: 0.9rem;
    font-weight: 500;
}

.offers-count i {
    color: var(--warning);
}

.view-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    background: linear-gradient(135deg, #c700ff 0%, #e040fb 50%, #aa00ea 100%);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(199, 0, 255, 0.3);
}

.game-card:hover .view-button {
    background: linear-gradient(135deg, #e040fb 0%, #c700ff 50%, #e040fb 100%);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(199, 0, 255, 0.5);
}

/* SEO Section (collapsible) */
.seo-section {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
}

.seo-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background 0.2s;
    border-radius: var(--radius);
}

.seo-toggle::-webkit-details-marker {
    display: none;
}

.seo-toggle:hover {
    background: rgba(60, 195, 14, 0.05);
}

.seo-toggle span {
    font-size: 1rem;
    font-weight: 600;
    color: #FFFFFF;
}

.seo-toggle-icon {
    font-size: 0.75rem;
    color: #999;
    transition: transform 0.3s ease;
}

.seo-section[open] .seo-toggle-icon {
    transform: rotate(180deg);
}

.seo-section[open] .seo-toggle {
    border-bottom: 1px solid var(--border);
    border-radius: var(--radius) var(--radius) 0 0;
}

.seo-content {
    color: #FFFFFF;
    line-height: 1.7;
    padding: 1rem 1.25rem;
}

.seo-content p {
    margin-bottom: 0.5rem;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.25rem 0;
    color: #FFFFFF;
}

.benefits-list i {
    color: #3cc30e;
    font-size: 1rem;
    flex-shrink: 0;
}


/* Loading Skeleton */
.games-loading {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.skeleton-card {
    height: 300px;
    background: var(--surface);
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
}

.skeleton-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: loading-shimmer 1.5s infinite;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .lots-container {
        padding: 0.75rem 1rem 2rem 1rem;
    }

    .games-search-input {
        height: 42px;
        font-size: 16px !important;
        padding: 0 15px 0 42px;
    }

    .games-search-icon {
        left: 15px;
        font-size: 14px;
    }

    .seo-section {
        padding: 0.75rem;
    }
}
