/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/*
 * TODO: yarilo - Hello Yarilo here you can set up your CSS
 */

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fade-in 0.5s ease-in;
}

.autocomplete-suggestions {
    position: absolute;
    background: white;
    max-height: 200px;
    overflow-y: auto;
    width: 100%;
    z-index: 1000;
}

.autocomplete-suggestions:not(:empty) {
    border: 1px solid #ddd;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

.suggestion-item:hover,
.suggestion-item.highlighted {
    background-color: #007bff;
    color: white;
}

.game-thumbnail {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.game-name {
    flex: 1;
    font-size: 14px;
}

.no-results {
    padding: 10px;
    color: #666;
    text-align: center;
}

.selected-game-preview {
    margin-top: 8px;
}

.selected-game-thumbnail {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid #007bff;
}

.selected-game-preview {
    margin-top: 12px;
}

.selected-game-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.selected-game-thumbnail {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.selected-game-title {
    flex: 1;
    font-size: 16px;
    font-weight: 500;
    color: #212529;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.user-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.5rem;
}

.top-games-list {
    max-width: 800px;
    margin: 0 auto;
}

.game-card {
    position: relative;
    background: #fff;
    border: 2px solid #dee2e6;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.position-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #007bff;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.game-content {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px;
}

.game-image {
    width: 200px;
    height: 133px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.game-info {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-title {
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
    margin: 0;
    text-align: center;
}
