/* Auth Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: none;
}

.modal-overlay.modal-show {
    opacity: 1;
}

.modal-content {
    background: var(--card-bg, #ffffff);
    border-radius: 16px;
    width: 90%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 8px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.1));
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.modal-show .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px 16px;
    border-bottom: 1px solid var(--border-color, rgba(0, 0, 0, 0.1));
}

.modal-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-logo .logo-icon {
    font-size: 24px;
    font-family: 'Georgia', serif;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: speedWithinAlgorithms 3s ease-in-out infinite;
}

.modal-logo .logo-text {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--text-primary, #000);
}

/* Dark theme modal logo */
[data-theme="dark"] .modal-logo .logo-text {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-secondary, #666);
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    line-height: 1;
}

.modal-close:hover {
    background: var(--hover-bg, rgba(0, 0, 0, 0.05));
    color: var(--text-primary, #000);
}

.modal-body {
    padding: 24px;
}

.modal-body h2 {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary, #000);
    text-align: center;
}

.modal-body p {
    margin: 0 0 32px 0;
    color: var(--text-secondary, #666);
    text-align: center;
    line-height: 1.5;
}

.auth-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.auth-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border: 2px solid var(--border-color, rgba(0, 0, 0, 0.1));
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary, #000);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--card-bg, #ffffff);
    position: relative;
    overflow: hidden;
}

.auth-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.auth-option:hover::before {
    left: 100%;
}

.auth-option:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 24px rgba(0, 0, 0, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.05);
}

.github-option:hover {
    border-color: #333;
    background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 100%);
}

.linkedin-option:hover {
    border-color: #0077B5;
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
}

[data-theme="dark"] .github-option:hover {
    border-color: #58a6ff;
    background: linear-gradient(135deg, rgba(88, 166, 255, 0.1) 0%, rgba(88, 166, 255, 0.05) 100%);
}

[data-theme="dark"] .linkedin-option:hover {
    border-color: #0077B5;
    background: linear-gradient(135deg, rgba(0, 119, 181, 0.1) 0%, rgba(0, 119, 181, 0.05) 100%);
}

.auth-option-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--surface-bg, #f8f9fa);
    color: var(--text-primary, #000);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.github-option .auth-option-icon {
    background: linear-gradient(135deg, #333 0%, #24292e 100%);
    color: white;
}

.linkedin-option .auth-option-icon {
    background: linear-gradient(135deg, #0077B5 0%, #005885 100%);
    color: white;
}

.auth-option:hover .auth-option-icon {
    transform: scale(1.1);
}

.auth-option-content {
    flex: 1;
}

.auth-option-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary, #000);
    margin-bottom: 4px;
}

.auth-option-subtitle {
    font-size: 13px;
    color: var(--text-secondary, #666);
    line-height: 1.4;
}

.auth-option-arrow {
    font-size: 18px;
    color: var(--text-secondary, #666);
    transition: all 0.3s ease;
    transform: translateX(0);
}

.auth-option:hover .auth-option-arrow {
    transform: translateX(4px);
    color: var(--text-primary, #000);
}

.modal-footer {
    padding-top: 16px;
    border-top: 1px solid var(--border-color, rgba(0, 0, 0, 0.1));
}

.privacy-note {
    font-size: 12px;
    color: var(--text-secondary, #666);
    text-align: center;
    margin: 0;
    line-height: 1.4;
}

/* Make auth buttons work as buttons with proper styling */
.auth-btn {
    background: none;
    border: 2px solid var(--border-color, rgba(0, 0, 0, 0.1));
    padding: 12px 20px;
    border-radius: 8px;
    color: var(--text-primary, #000);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: inherit;
}

.auth-btn:hover {
    background: var(--hover-bg, rgba(0, 0, 0, 0.05));
    border-color: var(--text-primary, #000);
    transform: translateY(-1px);
}

/* Style button elements to look like the original btn-primary */
.btn-primary {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 20px;
        max-height: calc(100vh - 40px);
    }
    
    .modal-header,
    .modal-body {
        padding: 20px;
    }
    
    .auth-option {
        padding: 16px;
    }
    
    .auth-option-icon {
        width: 40px;
        height: 40px;
    }
    
    .modal-body h2 {
        font-size: 20px;
    }
}
