/* GitHub项目动态展示样式 - 黑白主题 */

.github-loading {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.github-error {
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 0;
    padding: 1rem;
    text-align: center;
    margin: 1rem 0;
}

.error-message h4 {
    color: #000;
    margin: 0 0 0.5rem 0;
}

.error-message p {
    margin: 0.25rem 0;
    color: #666;
}

.github-no-projects {
    text-align: center;
    padding: 1rem;
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 0;
}

.github-no-projects h4 {
    color: #000;
    margin: 0 0 0.5rem 0;
}

.github-no-projects p {
    color: #666;
    margin: 0 0 1rem 0;
}

.github-projects-header {
    margin-bottom: 1.5rem;
}

.github-projects-header h3 {
    color: #000;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.github-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.github-project-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 0;
    padding: 1rem;
}

.github-project-card:hover {
    background: #f8f8f8;
    border-color: #000;
}

.project-header {
    margin-bottom: 0.5rem;
}

.project-link {
    color: #000;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
}

.project-link:hover {
    text-decoration: none;
}

.project-description {
    color: #666;
    line-height: 1.4;
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
}

.project-footer {
    font-size: 0.8rem;
    color: #666;
}

/* 技术栈样式已移至ios-book-theme.css */

/* 响应式设计 */
@media (max-width: 768px) {
    .github-projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* 技术栈响应式样式已移至ios-book-theme.css */
}
    
    .project-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .project-stats {
        align-self: flex-start;
    }
    
    .project-footer {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .github-project-card {
        padding: 1rem;
    }
    
    .github-projects-header h3 {
        font-size: 1.3rem;
    }
}

/* 夜间模式样式 */
.dark-theme .github-loading {
    color: #999;
}

.dark-theme .github-error {
    background: rgba(255, 255, 255, 0.05);
    border-color: #333;
}

.dark-theme .error-message h4 {
    color: #fff;
}

.dark-theme .error-message p {
    color: #999;
}

.dark-theme .github-no-projects {
    background: rgba(255, 255, 255, 0.05);
    border-color: #333;
}

.dark-theme .github-no-projects h4 {
    color: #fff;
}

.dark-theme .github-no-projects p {
    color: #999;
}

.dark-theme .github-projects-header h3 {
    color: #fff;
}

.dark-theme .github-project-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: #333;
}

.dark-theme .github-project-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #555;
}

.dark-theme .project-link {
    color: #fff;
}

.dark-theme .project-description {
    color: #999;
}

.dark-theme .project-footer {
    color: #999;
}

.dark-theme .project-footer .updated {
    color: #999 !important;
}