/**
 * 後台管理 - 遊戲列表視圖樣式
 * Admin Game List View Styles
 */

/* ==================== 遊戲列表視圖 ==================== */
.games-list {
    background-color: #1e1e1e;
    border-radius: 0.75rem;
    overflow: hidden;
}

.light-theme .games-list {
    background-color: #fff;
}

.games-list-header {
    display: grid;
    grid-template-columns: 4rem 5rem 1fr 10rem 10rem 12rem 6rem;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
    border-bottom: 1px solid #2a2a2a;
}

.light-theme .games-list-header {
    background-color: #f5f5f5;
    color: #666;
    border-bottom-color: #e0e0e0;
}

.game-list-item {
    display: grid;
    grid-template-columns: 4rem 5rem 1fr 10rem 10rem 12rem 6rem;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    align-items: center;
    border-bottom: 1px solid #2a2a2a;
    transition: background-color 0.2s ease;
}

.game-list-item:nth-child(odd) {
    background-color: rgba(255, 255, 255, 0.02);
}

.game-list-item:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.15);
}

.game-list-item:hover {
    background-color: rgba(212, 165, 32, 0.1);
}

.light-theme .game-list-item {
    border-bottom-color: #e0e0e0;
}

.light-theme .game-list-item:nth-child(odd) {
    background-color: #fff;
}

.light-theme .game-list-item:nth-child(even) {
    background-color: #f8f9fa;
}

.game-list-item:last-child {
    border-bottom: none;
}

.game-list-item.disabled {
    opacity: 0.6;
}

.game-list-item .list-col-sort {
    text-align: center;
}

.game-list-item .sort-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background-color: rgba(212, 165, 32, 0.15);
    color: #d4a520;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.game-list-item .list-col-image {
    display: flex;
    justify-content: center;
}

.game-list-item .list-col-image img {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
    border-radius: 0.375rem;
    background-color: #2a2a2a;
}

.light-theme .game-list-item .list-col-image img {
    background-color: #f0f0f0;
}

.game-list-item .list-col-name {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.game-list-item .game-display-name {
    font-weight: 500;
    font-size: 0.875rem;
}

.game-list-item .game-note-inline {
    font-size: 0.6875rem;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-list-item .list-col-code,
.game-list-item .list-col-project {
    font-size: 0.8125rem;
    color: #b0b0b0;
    font-family: 'Consolas', 'Monaco', monospace;
}

.light-theme .game-list-item .list-col-code,
.light-theme .game-list-item .list-col-project {
    color: #555;
}

.game-list-item .list-col-env {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.game-list-item .list-col-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

/* 響應式列表視圖 */
@media (max-width: 64rem) {
    .games-list-header {
        display: none;
    }
    
    .game-list-item {
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem;
        padding: 1rem;
    }
    
    .game-list-item .list-col-sort {
        order: 1;
    }
    
    .game-list-item .list-col-image {
        order: 2;
    }
    
    .game-list-item .list-col-name {
        order: 3;
        flex: 1;
        min-width: 10rem;
    }
    
    .game-list-item .list-col-code,
    .game-list-item .list-col-project {
        font-size: 0.75rem;
    }
    
    .game-list-item .list-col-env {
        order: 4;
        width: 100%;
    }
    
    .game-list-item .list-col-actions {
        order: 5;
    }
}

/* ==================== 設定頁面 ==================== */
.settings-container {
    max-width: 48rem;
}

.settings-section {
    background-color: #1e1e1e;
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.light-theme .settings-section {
    background-color: #fff;
}

.settings-section h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #d4a520;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.settings-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}
