/* GitHub Repos Display - Frontend Styles */

.github-repos-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
    margin: 20px 0;
}

.github-repo-item {
    background: #ffffff;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.github-repo-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.repo-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.repo-name {
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 600;
    color: #0366d6;
}

.repo-description {
    margin: 0 0 16px 0;
    color: #586069;
    font-size: 14px;
    line-height: 1.5;
    flex: 1;
}

.repo-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #586069;
}

.repo-language {
    display: flex;
    align-items: center;
    gap: 6px;
}

.language-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.repo-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.repo-topic {
    background: #f1f8ff;
    color: #0366d6;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.repo-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
}

.repo-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.repo-link {
    background: #0366d6;
    color: #ffffff !important;
}

.repo-link:hover {
    background: #0256c5;
    color: #ffffff !important;
}

.repo-download {
    background: #28a745;
    color: #ffffff !important;
}

.repo-download:hover {
    background: #239639;
    color: #ffffff !important;
}

.github-repos-empty {
    text-align: center;
    padding: 60px 20px;
    background: #f6f8fa;
    border-radius: 8px;
    margin: 20px 0;
}

.github-repos-empty p {
    font-size: 18px;
    color: #586069;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .github-repos-container {
        grid-template-columns: 1fr;
    }
    
    .repo-actions {
        flex-direction: column;
    }
    
    .repo-button {
        width: 100%;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .github-repo-item {
        background: #161b22;
        border-color: #30363d;
    }
    
    .repo-name {
        color: #58a6ff;
    }
    
    .repo-description,
    .repo-meta {
        color: #8b949e;
    }
    
    .repo-topic {
        background: #1c2d41;
        color: #58a6ff;
    }
    
    .github-repos-empty {
        background: #161b22;
        border: 1px solid #30363d;
    }
    
    .github-repos-empty p {
        color: #8b949e;
    }
}