/*
 * Copyright 2025 四川大学火锅战队
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
/* Styles for the open source projects page will go here. */

.projects-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: rgba(10, 10, 10, 0.7); /* Semi-transparent dark background */
    border-radius: 10px;
}

.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.projects-header h1 {
    font-size: 2rem;
    margin: 0;
}

#repo-search-input {
    padding: 0.5rem 1rem;
    background-color: #2a2a2a;
    border: 1px solid #444;
    color: #fff;
    border-radius: 6px;
    font-size: 0.9rem;
    width: 300px; /* Adjust width as needed */
    transition: all 0.3s ease;
}

#repo-search-input:focus {
    outline: none;
    border-color: #58a6ff;
    background-color: #1c1c1c;
}

.project-card {
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.project-repo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.repo-icon {
    height: 1.2rem;
}

.project-repo a {
    font-size: 1.2rem;
    font-weight: 500;
    color: #58a6ff;
    text-decoration: none;
}

.project-repo a:hover {
    text-decoration: underline;
}

.project-description {
    color: #ccc;
    margin-bottom: 1rem;
}

.project-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: #888;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.language-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #f1e05a; /* Default to JavaScript color */
}

.language-color.python {
    background-color: #3572A5;
}

.language-color.html {
    background-color: #e34c26;
}