/* Contributors Page Styles */

.contributors-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0rem 0rem;
}

.contributors-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contributors-header h1 {
    font-size: 2.5rem;
    color: var(--color-text-primary, #24292e);
    margin-bottom: 0.5rem;
}

.contributors-header .subtitle {
    font-size: 1.1rem;
    color: var(--color-text-secondary, #586069);
    margin-bottom: 1rem;
}

.contributors-header .last-update {
    font-size: 0.9rem;
    color: var(--color-text-tertiary, #6a737d);
    font-style: italic;
}

/* Summary Cards */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.summary-card {
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

/* Julia colors */
.summary-card.card-repos {
    background: linear-gradient(135deg, #CB3C33 0%, #a02f28 100%);
}

.summary-card.card-contributors {
    background: linear-gradient(135deg, #389826 0%, #2d7a1e 100%);
}

.summary-card.card-commits {
    background: linear-gradient(135deg, #9558B2 0%, #7a4690 100%);
}

.summary-card .card-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-card .card-value {
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1;
}

/* Section Styles */
.contributors-section {
    margin-bottom: 3rem;
}

.contributors-section h2 {
    font-size: 1.8rem;
    color: #24292e;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #9558B2;
}

.contributors-section h3 {
    font-size: 1.4rem;
    color: #24292e;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Inline Contributors List */
.contributors-inline {
    background: #f6f8fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #9558B2;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contributors-inline .contributor-item {
    display: inline;
    margin-right: 0.5rem;
}

.contributors-inline .contributor-name {
    font-weight: 600;
    color: #0366d6;
}

.contributors-inline .contributor-count {
    color: #586069;
}

/* Table Styles */
.contributors-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.contributors-table thead {
    background: linear-gradient(135deg, #9558B2 0%, #7a4690 100%);
    color: white;
}

.contributors-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.contributors-table th:nth-child(1) {
    width: 80px;
}

.contributors-table th:nth-child(2) {
    width: auto;
}

.contributors-table th:nth-child(3) {
    width: 150px;
}

.contributors-table th:nth-child(4) {
    width: 300px;
}

.contributors-table tbody tr {
    border-bottom: 1px solid #e1e4e8;
    transition: background-color 0.2s ease;
}

.contributors-table tbody tr:hover {
    background-color: #f6f8fa;
}

.contributors-table tbody tr:nth-child(even) {
    background-color: #fafbfc;
}

.contributors-table tbody tr:nth-child(even):hover {
    background-color: #f6f8fa;
}

.contributors-table td {
    padding: 1rem;
}

.contributors-table .rank-badge {
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    border-radius: 50%;
    font-weight: bold;
    color: white;
}

.contributors-table .rank-badge.top-1 {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333;
    box-shadow: 0 2px 4px rgba(255, 215, 0, 0.4);
}

.contributors-table .rank-badge.top-2 {
    background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
    color: #333;
    box-shadow: 0 2px 4px rgba(192, 192, 192, 0.4);
}

.contributors-table .rank-badge.top-3 {
    background: linear-gradient(135deg, #cd7f32 0%, #e8a87c 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(205, 127, 50, 0.4);
}

.contributors-table .rank-badge.top-10 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.contributors-table .rank-badge.other {
    background: #6a737d;
}

.contributors-table .contributor-link {
    color: #0366d6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.contributors-table .contributor-link:hover {
    color: #0256c7;
    text-decoration: underline;
}

.contributors-table .contribution-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contributors-table .bar-container {
    flex: 1;
    height: 8px;
    background: #e1e4e8;
    border-radius: 4px;
    overflow: hidden;
}

.contributors-table .bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.contributors-table .percentage-text {
    font-size: 0.9rem;
    color: #586069;
    min-width: 50px;
    text-align: right;
}

/* Top Contributors Highlight */
.top-contributors-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.top-contributors-list li {
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #9558B2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.top-contributors-list li:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.top-contributors-list li:nth-child(1) {
    border-left-color: #ffd700;
}

.top-contributors-list li:nth-child(2) {
    border-left-color: #c0c0c0;
}

.top-contributors-list li:nth-child(3) {
    border-left-color: #cd7f32;
}

.top-contributors-list .contributor-name {
    font-weight: 600;
    color: #0366d6;
    text-decoration: none;
}

.top-contributors-list .contributor-name:hover {
    text-decoration: underline;
}

.top-contributors-list .contributor-stats {
    color: #586069;
    font-size: 0.95rem;
}

/* Repository List */
.repo-list {
    display: block;
}

.repo-list h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #24292e;
    font-weight: 600;
}

.repo-list ul {
    margin-bottom: 1.5rem;
    margin-left: 1.5rem;
}

.repo-list li {
    margin-bottom: 0.5rem;
}

.repo-list a {
    color: #0366d6;
    text-decoration: none;
    transition: color 0.2s ease;
}

.repo-list a:hover {
    color: #0256c7;
    text-decoration: underline;
}

/* Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-item {
    background: #f6f8fa;
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid #9558B2;
}

.stat-item strong {
    display: block;
    color: #24292e;
    margin-bottom: 0.25rem;
}

.stat-item span {
    color: #586069;
    font-size: 0.95rem;
}

/* Note/Info Box */
.info-box {
    background: #fff8dc;
    border-left: 4px solid #ffa500;
    padding: 1rem 1.5rem;
    border-radius: 4px;
    margin: 1.5rem 0;
}

.info-box p {
    margin: 0;
    color: #856404;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contributors-header h1 {
        font-size: 2rem;
    }
    
    .summary-cards {
        grid-template-columns: 1fr;
    }
    
    .contributors-table {
        font-size: 0.9rem;
    }
    
    .contributors-table th,
    .contributors-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .repo-list {
        columns: 1;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Dark Mode Support - Disabled to avoid visibility issues */
/* Users can enable it manually if needed */
