/* Profile Module Styles */

.profile-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.profile-header {
    text-align: center;
    margin-bottom: 2rem;
}

.profile-header h2 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    font-size: 2rem;
}

.profile-header p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.profile-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

/* Profile Card */
.profile-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-light);
}

.profile-avatar-section {
    flex-shrink: 0;
}

.profile-avatar-wrapper {
    position: relative;
    display: inline-block;
}

.profile-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--accent-blue);
    object-fit: cover;
    background: var(--bg-secondary);
}

.avatar-upload-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--accent-blue);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid var(--bg-primary);
}

.avatar-upload-btn:hover {
    background: var(--accent-dark);
    transform: scale(1.05);
}

.profile-info-section {
    flex: 1;
}

.profile-name {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
    font-size: 1.8rem;
    font-weight: 600;
}

.profile-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.profile-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
}

.profile-detail:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.detail-value {
    color: var(--text-primary);
    font-weight: 600;
}

.detail-value.subscription-tier {
    background: var(--accent-blue);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
}

/* Profile Form */
.profile-form-section {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-light);
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.form-header h4 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.3rem;
}

.btn-toggle-edit {
    background: var(--accent-blue);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.btn-toggle-edit:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-form:not(.editing) .form-group input {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    cursor: default;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input {
    padding: 0.875rem;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    font-size: 1rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(74,144,226,0.1);
}

.input-with-prefix {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.2s ease;
}

.input-with-prefix:focus-within {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(74,144,226,0.1);
}

.input-prefix {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 0.875rem 1rem;
    font-size: 1rem;
    white-space: nowrap;
    border-right: 1px solid var(--border-medium);
}

.input-with-prefix input {
    border: none;
    flex: 1;
    box-shadow: none !important;
}

.form-hint {
    color: var(--text-light);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.btn-save {
    background: var(--accent-blue);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.875rem 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
}

.btn-save:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

.btn-cancel {
    background: none;
    color: var(--text-secondary);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    padding: 0.875rem 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cancel:hover {
    color: var(--text-primary);
    border-color: var(--text-secondary);
}

/* Sidebar */
.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-quick-actions,
.account-info {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-light);
}

.profile-quick-actions h4,
.account-info h4 {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.quick-action-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

.quick-action-btn:hover {
    background: var(--accent-blue);
    color: white;
    border-color: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.info-value {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

/* Login Required State */
.profile-login-required {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.login-prompt {
    text-align: center;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-medium);
    max-width: 400px;
}

.login-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.login-prompt h3 {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
    font-size: 1.5rem;
}

.login-prompt p {
    margin: 0 0 2rem 0;
    color: var(--text-secondary);
    line-height: 1.5;
}

.login-prompt .login-btn {
    background: var(--accent-blue);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 1rem 2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    font-size: 1rem;
}

.login-prompt .login-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .profile-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .profile-details {
        align-items: center;
    }
    
    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .profile-container {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .profile-avatar-large {
        width: 80px;
        height: 80px;
    }
    
    .profile-name {
        font-size: 1.4rem;
    }
    
    .profile-card {
        padding: 1rem;
    }
    
    .profile-form-section,
    .profile-quick-actions,
    .account-info {
        padding: 1rem;
    }
}

/* Theme-specific overrides */
.theme-crimson-gamer .profile-card {
    border-color: #dc2626;
}

.theme-crimson-gamer .profile-avatar-large {
    border-color: #dc2626;
}

.theme-dark-purple-tech .profile-card {
    border-color: #8b5cf6;
}

.theme-dark-purple-tech .profile-avatar-large {
    border-color: #8b5cf6;
}