/* Game Search Page Styles */

.search-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.search-header {
    text-align: center;
    margin-bottom: 40px;
}

.search-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-text-main);
}

.search-description {
    color: var(--color-text-minor);
    font-size: 1.1rem;
}

.search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
}

.input-wrapper {
    position: relative;
    flex: 1;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-minor);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding-left: 45px;
}

.search-btn {
    height: auto;
    font-weight: 600;
    font-size: 1rem;
}

.search-results-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--color-bg-hover);
    padding-bottom: 10px;
    color: var(--color-text-main);
}

.game-list {
    display: grid;
    gap: 20px;
}

.game-card {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-bg-hover);
    border-radius: 12px;
    padding: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    gap: 20px;
}

.game-thumbnail {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    background: var(--color-bg);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-bg-hover);
}

.game-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-icon {
    font-size: 2rem;
    color: var(--color-text-minor);
    opacity: 0.3;
}

.game-info {
    flex: 1;
}

.game-title {
    margin: 0 0 5px 0;
    font-size: 1.3rem;
}

.game-title-link {
    text-decoration: none;
    color: var(--color-primary);
}

.edition-meta {
    font-size: 0.95rem;
    color: var(--color-text-minor);
    margin-bottom: 15px;
}

.edition-meta-item {
    margin-bottom: 4px;
}

.game-stats {
    margin-bottom: 4px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.barcode-info {
    margin-top: 4px;
    font-size: 0.85rem;
    color: var(--color-text-minor);
    opacity: 0.8;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: var(--color-text-minor);
    background: var(--color-bg-alt);
    border-radius: 12px;
}

.no-results-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.release-year {
    font-weight: normal;
    font-size: 0.7em;
}

.featured-editions {
    margin-bottom: 40px;
}

.featured-title {
    font-size: 1.3rem;
    margin-bottom: 16px;
    color: var(--color-text-main);
}

.featured-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.featured-card {
    display: block;
    width: 100%;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-bg-hover);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}

@media (max-width: 768px) {
    .featured-list {
        grid-template-columns: 1fr;
    }
}

.featured-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.featured-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.featured-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-name {
    padding: 12px 14px;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--color-text-main);
}
