/* GitHub Premium Modal Styles */

.github-modal-premium {
    max-width: 900px;
    background: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
    border: 1px solid rgba(48, 54, 61, 0.8);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    overflow: hidden;
}

.github-header {
    background: linear-gradient(135deg, #1f6feb 0%, #0969da 100%);
    border-bottom: none;
    padding: 20px 24px;
}

.github-header .header-content {
    display: flex;
    align-items: center;
    color: white;
}

.github-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: white;
}

.github-body {
    padding: 32px;
    background: #0d1117;
}

/* Auth Card */
.github-auth-card {
    text-align: center;
    padding: 48px 32px;
    background: linear-gradient(135deg, rgba(31, 111, 235, 0.05) 0%, rgba(9, 105, 218, 0.05) 100%);
    border: 1px solid rgba(31, 111, 235, 0.2);
    border-radius: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.auth-icon {
    margin-bottom: 24px;
    color: #58a6ff;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

.github-auth-card h3 {
    margin: 0 0 12px 0;
    font-size: 24px;
    font-weight: 600;
    color: #e6edf3;
}

.auth-description {
    margin: 0 0 32px 0;
    color: #7d8590;
    font-size: 14px;
    line-height: 1.6;
}

.btn-github-login {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #238636 0%, #2ea043 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(35, 134, 54, 0.3);
}

.btn-github-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(35, 134, 54, 0.4);
    background: linear-gradient(135deg, #2ea043 0%, #238636 100%);
}

.btn-github-login:active {
    transform: translateY(0);
}

.btn-github-login i {
    font-size: 20px;
}

.auth-features {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(31, 111, 235, 0.08);
    border-radius: 6px;
    color: #e6edf3;
    font-size: 14px;
}

.feature-item i {
    color: #3fb950;
    font-size: 16px;
}

/* User Info Card */
.github-user-info {
    margin-bottom: 32px;
}

.github-user-info > div {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(35, 134, 54, 0.1) 0%, rgba(46, 160, 67, 0.1) 100%);
    border: 1px solid rgba(35, 134, 54, 0.3);
    border-radius: 12px;
}

.github-user-info img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #3fb950;
}

.github-user-info strong {
    font-size: 18px;
    color: #3fb950;
}

/* Section Premium */
.github-section-premium {
    margin-bottom: 32px;
    padding: 24px;
    background: rgba(22, 27, 34, 0.6);
    border: 1px solid rgba(48, 54, 61, 0.6);
    border-radius: 12px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(48, 54, 61, 0.6);
}

.section-header i {
    font-size: 20px;
    color: #58a6ff;
}

.section-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #e6edf3;
}

/* Repos Grid */
.repos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
    max-height: 400px;
    overflow-y: auto;
    padding: 4px;
}

.repo-card {
    padding: 16px;
    background: rgba(13, 17, 23, 0.8);
    border: 1px solid rgba(48, 54, 61, 0.6);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.repo-card:hover {
    border-color: #58a6ff;
    background: rgba(31, 111, 235, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(31, 111, 235, 0.2);
}

.repo-card.selected {
    border-color: #3fb950;
    background: rgba(35, 134, 54, 0.1);
}

.repo-card h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: #58a6ff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.repo-card p {
    margin: 0;
    font-size: 12px;
    color: #7d8590;
    line-height: 1.5;
}

.repo-meta {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    font-size: 12px;
    color: #7d8590;
}

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

/* Cloned Repos Grid */
.cloned-repos-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.cloned-repo-item {
    padding: 16px;
    background: rgba(13, 17, 23, 0.8);
    border: 1px solid rgba(48, 54, 61, 0.6);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.cloned-repo-item:hover {
    border-color: #58a6ff;
    background: rgba(31, 111, 235, 0.05);
}

.cloned-repo-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cloned-repo-info i {
    font-size: 20px;
    color: #3fb950;
}

.cloned-repo-details h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
    color: #e6edf3;
}

.cloned-repo-details p {
    margin: 0;
    font-size: 12px;
    color: #7d8590;
}

/* Action Buttons */
.btn-action-primary,
.btn-action-success {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
}

.btn-action-primary {
    background: linear-gradient(135deg, #1f6feb 0%, #0969da 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(31, 111, 235, 0.3);
}

.btn-action-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(31, 111, 235, 0.4);
}

.btn-action-success {
    background: linear-gradient(135deg, #238636 0%, #2ea043 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(35, 134, 54, 0.3);
}

.btn-action-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(35, 134, 54, 0.4);
}

.btn-action-primary:disabled,
.btn-action-success:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Scrollbar */
.repos-grid::-webkit-scrollbar {
    width: 8px;
}

.repos-grid::-webkit-scrollbar-track {
    background: rgba(13, 17, 23, 0.4);
    border-radius: 4px;
}

.repos-grid::-webkit-scrollbar-thumb {
    background: rgba(88, 166, 255, 0.3);
    border-radius: 4px;
}

.repos-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(88, 166, 255, 0.5);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: #7d8590;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    margin: 0;
    font-size: 14px;
}

/* Loading State */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(88, 166, 255, 0.3);
    border-top-color: #58a6ff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
