/* GitHub Ecosystem Banner and Modal */

/* Stats Grid */
.gh-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .gh-stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.gh-stat-card {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.3s ease;
}

.gh-stat-card:hover {
    border-color: rgba(234, 179, 8, 0.3);
    background: rgba(255,255,255,0.02);
}

.gh-stat-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.5);
}

.gh-stat-value {
    font-size: 28px;
    font-weight: 900;
    color: #fff;
}

.github-ecosystem-section {
    padding: 60px 0 20px;
}

.gh-banner {
    background: rgba(20, 20, 20, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-wrap: wrap;
    gap: 30px;
}

.gh-banner:hover {
    border-color: rgba(249, 115, 22, 0.4);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transform: translateY(-2px);
}

.gh-banner-left {
    flex: 1;
    min-width: 300px;
}

.gh-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #f97316;
    margin-bottom: 16px;
}

.gh-title {
    font-size: 32px;
    font-weight: 900;
    line-height: 1.2;
    color: #fff;
    margin: 0;
}

.gh-banner-right {
    flex: 0.8;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    gap: 20px;
}

.gh-expand-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gh-banner:hover .gh-expand-icon {
    transform: scale(1.1);
}

.gh-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
    max-width: 250px;
}

/* Modal Overlay */
.gh-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.gh-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.gh-modal {
    width: 100%;
    max-width: 1200px;
    max-height: 95vh;
    background: #0f0f11;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.8);
}

.gh-modal-overlay.active .gh-modal {
    transform: scale(1) translateY(0);
}

/* Modal Header */
.gh-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 40px 40px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.gh-title-small {
    font-size: 24px;
    font-weight: 900;
    color: #fff;
    margin: 0;
}

.gh-close-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.gh-close-icon:hover {
    transform: scale(1.1);
}

/* Modal Body */
.gh-modal-body {
    display: flex;
    flex-direction: column;
    padding: 30px 40px 40px;
    gap: 30px;
    overflow-y: auto;
}

@media (min-width: 992px) {
    .gh-modal-body {
        flex-direction: row;
    }
}

.gh-col-left {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.gh-col-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Common Box Style */
.gh-box {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gh-box-tag {
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.4);
}

.gh-box-title {
    display: inline-flex;
    background: #fff;
    color: #000;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 900;
    align-self: flex-start;
}

/* Heatmap Grid */
.gh-heatmap-wrap {
    overflow-x: auto;
    padding-bottom: 10px;
}

.gh-heatmap-grid {
    display: grid;
    grid-template-rows: repeat(7, 1fr);
    grid-auto-flow: column;
    gap: 4px;
    min-width: max-content;
}

.gh-heat-cell {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    background: rgba(255,255,255,0.05);
}

.gh-heat-cell.l1 { background: rgba(249, 115, 22, 0.3); }
.gh-heat-cell.l2 { background: rgba(249, 115, 22, 0.6); }
.gh-heat-cell.l3 { background: rgba(249, 115, 22, 0.8); }
.gh-heat-cell.l4 { background: #f97316; }

/* Repos Grid */
.gh-repos-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 600px) {
    .gh-repos-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.gh-repo-card {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.2s ease;
    text-decoration: none;
    color: #fff;
}

.gh-repo-card:hover {
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.gh-repo-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 15px;
}

.gh-repo-header svg {
    color: #f97316;
}

.gh-repo-desc {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    line-height: 1.4;
    flex-grow: 1;
}

.gh-repo-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    margin-top: 10px;
}

.gh-repo-footer span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Skills List */
.gh-skills-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 10px;
}

.gh-skill-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gh-skill-header {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gh-skill-bar-bg {
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
}

.gh-skill-bar-fill {
    height: 100%;
    background: #f97316;
    border-radius: 2px;
}

/* Achievements Row */
.gh-achievements-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    padding: 20px 0;
}

.gh-achievement-badge {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: transform 0.2s ease;
}

.gh-achievement-badge:hover {
    transform: scale(1.1) rotate(5deg);
    border-color: rgba(249, 115, 22, 0.4);
}
