/* Search styles */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

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

.search-box i {
    position: absolute;
    left: 12px;
    color: #64748b;
    font-size: 14px;
}

.search-box input {
    width: 220px;
    padding: 10px 12px 10px 36px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    color: #1e293b;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
}

.search-box input::placeholder {
    color: #94a3b8;
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent, #0ea5e9);
    background: #ffffff;
    width: 280px;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 360px;
    max-height: 400px;
    overflow-y: auto;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    padding: 8px 0;
}

.search-dropdown.active {
    display: block;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.15s ease;
    text-decoration: none;
    color: inherit;
}

.search-result-item:hover {
    background: rgba(14, 165, 233, 0.1);
}

.search-result-item img {
    width: 60px;
    height: 36px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-name {
    font-weight: 600;
    font-size: 14px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-meta {
    font-size: 12px;
    color: var(--muted, #94a3b8);
    margin-top: 2px;
}

.search-result-count {
    font-size: 12px;
    color: var(--accent, #0ea5e9);
    font-weight: 500;
}

.search-no-results {
    padding: 20px;
    text-align: center;
    color: var(--muted, #94a3b8);
    font-size: 14px;
}

.search-loading {
    padding: 20px;
    text-align: center;
    color: var(--muted, #94a3b8);
    font-size: 14px;
}

/* Game page styles */
.game-hero {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
    padding: 60px 0;
    margin-top: 64px;
}

.game-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

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

.game-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.3) 0%, rgba(15, 23, 42, 0.9) 70%, #0f172a 100%);
}

.game-hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
}

.game-info h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.game-info > p {
    font-size: 18px;
    color: var(--muted, #94a3b8);
    margin-bottom: 20px;
}

.game-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #e2e8f0;
}

.stat i {
    color: var(--accent, #0ea5e9);
}

.game-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-tag {
    padding: 6px 14px;
    background: rgba(14, 165, 233, 0.15);
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: 20px;
    font-size: 13px;
    color: var(--accent, #0ea5e9);
}

.mods-section {
    padding: 40px 0 80px;
}

.loading {
    text-align: center;
    padding: 40px;
    color: var(--muted, #94a3b8);
}

/* Update catalog cards to be clickable - static style, no hover effects */
.cat-card-v {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

/* Add spacing between search and buttons */
.header-actions {
    gap: 20px;
}

.header-actions .btn {
    margin-left: 0;
}

.header-actions .btn-outline,
.header-actions .btn-primary {
    margin-left: 8px;
}

/* User Menu in Header - Compact layout */
.user-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 4px 4px 4px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    height: 42px;
    box-sizing: border-box;
}

.user-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    padding: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.user-avatar:hover {
    opacity: 0.8;
}

.user-avatar img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.user-avatar span {
    font-size: 12px;
    font-weight: 500;
    max-width: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1;
}

@media (max-width: 900px) {
    .user-avatar span {
        display: none;
    }
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    height: 34px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

@media (max-width: 768px) {
    .search-container {
        display: none;
    }

    .game-info h1 {
        font-size: 28px;
    }

    .game-stats {
        flex-direction: column;
        gap: 12px;
    }

    .game-hero {
        min-height: 300px;
        padding: 40px 0;
    }
}
