/* Profile page specific styles */
.profile-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.profile-header {
    text-align: center;
    margin-bottom: 30px;
}

.profile-header h1 {
    margin: 20px 0 10px;
    font-size: 2.5em;
    color: #4F46E5;
    text-shadow: 2px 2px 4px rgba(99, 102, 241, 0.3);
    font-weight: 700;
}

.profile-card {
    background: white;
    border: 2px solid #C7D2FE;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
    margin-bottom: 30px;
    animation: fadeInUp 0.5s ease;
}

.profile-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .profile-info {
        grid-template-columns: 1fr;
    }
}

.profile-basic {
    text-align: center;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366F1, #4F46E5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: bold;
    margin: 0 auto 20px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.profile-name {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.profile-email {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.profile-joined {
    color: #666;
    font-size: 12px;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: linear-gradient(135deg, #EEF2FF, #E0E7FF);
    border-radius: 15px;
    border: 2px solid #C7D2FE;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.2);
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #6366F1;
    margin-bottom: 5px;
}

.stat-label {
    color: #666;
    font-size: 14px;
}

.profile-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.action-btn {
    padding: 12px 25px;
    border: 2px solid #E0E0E0;
    background: white;
    cursor: pointer;
    border-radius: 15px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: inline-block;
}

.action-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.action-btn.primary {
    background: linear-gradient(135deg, #6366F1, #4F46E5);
    color: white;
    border-color: #6366F1;
}

.action-btn.primary:hover {
    background: linear-gradient(135deg, #4F46E5, #4338CA);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

.loading {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #6366F1;
    font-weight: 600;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    border: 3px solid #C7D2FE;
    border-top-color: #6366F1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.error {
    text-align: center;
    padding: 40px;
    color: #dc3545;
    font-size: 18px;
}

.nav-links {
    text-align: center;
    margin-bottom: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
    border: 2px solid #C7D2FE;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 15px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    background: linear-gradient(135deg, #6366F1, #4F46E5);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-links a:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

.profile-empty {
    text-align: center;
    padding: 40px;
    color: #666;
}

.profile-empty h2 {
    color: #333;
    margin-bottom: 10px;
}

/* Edit profile styles */
.edit-name-input {
    padding: 8px 15px;
    border: 2px solid #6366F1;
    border-radius: 15px;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    width: 100%;
    max-width: 300px;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1);
}

.edit-name-input:focus {
    border-color: #4F46E5;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    transform: scale(1.02);
}

.edit-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.save-btn, .cancel-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.save-btn {
    background: linear-gradient(135deg, #6366F1, #4F46E5);
    color: white;
}

.save-btn:hover {
    background: linear-gradient(135deg, #4F46E5, #4338CA);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

.cancel-btn {
    background: linear-gradient(135deg, #F5F5F5, #E0E0E0);
    color: #666;
}

.cancel-btn:hover {
    background: linear-gradient(135deg, #E0E0E0, #BDBDBD);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.saving {
    background: #9E9E9E !important;
    cursor: not-allowed !important;
    opacity: 0.6;
}