/**
 * LuckyMCP GitHub Status - Frontend Styles
 */

/* Container */
.github-issues-container,
.github-commits-container,
.github-stats-container {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Header */
.github-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.github-icon {
    font-size: 24px;
}

.github-title {
    font-size: 18px;
    font-weight: 600;
    color: #e1e1e6;
    flex: 1;
}

.github-link {
    color: #667eea;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}

.github-link:hover {
    color: #f093fb;
}

/* Issues List */
.github-issues-list {
    max-height: 500px;
    overflow-y: auto;
}

.github-issue {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s;
}

.github-issue:hover {
    background: rgba(255, 255, 255, 0.03);
}

.github-issue:last-child {
    border-bottom: none;
}

.issue-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}

.issue-state {
    font-size: 14px;
    flex-shrink: 0;
}

.issue-title {
    color: #e1e1e6;
    text-decoration: none;
    font-weight: 500;
    line-height: 1.4;
    flex: 1;
}

.issue-title:hover {
    color: #667eea;
}

.issue-number {
    color: #6c6c8a;
    font-size: 13px;
    flex-shrink: 0;
}

/* Labels */
.issue-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
    margin-left: 24px;
}

.issue-label {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
}

/* Meta */
.issue-meta,
.commit-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #6c6c8a;
    margin-left: 24px;
}

.issue-avatar,
.commit-avatar {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    vertical-align: middle;
}

.issue-author,
.commit-author {
    display: flex;
    align-items: center;
    gap: 6px;
}

.issue-comments {
    color: #667eea;
}

/* Commits List */
.github-commits-list {
    max-height: 400px;
    overflow-y: auto;
}

.github-commit {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.github-commit:last-child {
    border-bottom: none;
}

.commit-message {
    margin-bottom: 6px;
}

.commit-message a {
    color: #e1e1e6;
    text-decoration: none;
    font-weight: 500;
    line-height: 1.4;
}

.commit-message a:hover {
    color: #667eea;
}

.commit-sha {
    font-family: 'SFMono-Regular', Consolas, monospace;
    background: rgba(102, 126, 234, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    color: #667eea;
}

/* Stats */
.github-description {
    padding: 15px 20px 0;
    color: #a3a3c2;
    margin: 0;
}

.github-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 20px;
}

.github-stat {
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-icon {
    font-size: 24px;
    display: block;
    margin-bottom: 8px;
}

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #e1e1e6;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: #6c6c8a;
    margin-top: 4px;
}

/* Error & Empty States */
.github-error,
.github-empty {
    padding: 30px;
    text-align: center;
    color: #a3a3c2;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.github-error {
    color: #ef4444;
}

/* Scrollbar */
.github-issues-list::-webkit-scrollbar,
.github-commits-list::-webkit-scrollbar {
    width: 8px;
}

.github-issues-list::-webkit-scrollbar-track,
.github-commits-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.github-issues-list::-webkit-scrollbar-thumb,
.github-commits-list::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.5);
    border-radius: 4px;
}

.github-issues-list::-webkit-scrollbar-thumb:hover,
.github-commits-list::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.8);
}

/* Responsive */
@media (max-width: 768px) {
    .github-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .issue-meta,
    .commit-meta {
        flex-wrap: wrap;
        margin-left: 0;
        margin-top: 8px;
    }

    .issue-header {
        flex-wrap: wrap;
    }

    .issue-number {
        order: -1;
        width: 100%;
        margin-bottom: 5px;
    }
}

@media (max-width: 480px) {
    .github-header {
        flex-wrap: wrap;
    }

    .github-link {
        width: 100%;
        margin-top: 10px;
    }
}
